Trübungs-Click-Board
Trübungs-Click-Board
Overview
Das Turbidity Click Board™ ist ein Adapter Click Board™, das verwendet wird, um einen kompatiblen Trübungssensor mit der Host-MCU zu verbinden. Dieses Board verfügt über einen 1x3 2,5-mm-Anschluss, der für den Anschluss eines Trübungssensors über ein zusätzliches 3-adriges Stecker-Stecker-Kabel geeignet ist – 15 cm für das speziell für diesen Zweck hergestellte Turbidity Click Board™ . Es ermöglicht Benutzern, ihre Projekte mit einem Sensor aufzurüsten, der die Trübung oder Verschwommenheit einer Flüssigkeit erkennt, die durch eine große Anzahl einzelner Partikel verursacht wird, die für das bloße Auge unsichtbar sind. Dieser Sensor misst auch Temperatur und Trübung.How Does The Turbidity Click Board™ Work?
The Turbidity Click Board™ is an adapter that simplifies the interface of a Turbidity Sensor with a host MCU. This Click board™ represents a small-size PCB that can be connected to the mikroBUS™ socket like any other Turbidity Click Board™, with a 1x3 2.5mm pitch vertical type board connector placed on itself used for the turbidity sensor connection. Each of the connector pins corresponds to a pin of the turbidity sensor. Each of the connector pins corresponds to the turbidity sensor pins connected to this same connector via an additional 3-wire cable for the Turbidity Click Board™, specially made for this purpose. This way allows easy pin access and manipulation while retaining a perfect connection quality at all times.
The Turbidity Click Board™ allows users to upgrade their projects with a sensor that senses the cloudiness or haziness of a liquid caused by large numbers of individual particles invisible to the naked eye. The turbidity level is determined based on a comparison between clean water measurements and later based on the used water at the end of usage; more precisely, the turbidity sensor measures the amount of transmitted light to determine the turbidity of the liquid. As well as turbidity, this sensor also measures liquid temperature.
The analog output voltage of the Turbidity Sensor can be converted to a digital value using MCP3221, a successive approximation A/D converter with a 12-bit resolution from Microchip, using a 2-wire I2C compatible interface. Using MCP3221 and I2C interface, data transfers at rates of up to 100kbit/s in the Standard and 400kbit/s in the Fast Mode.
The Turbidity Click Board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the I2C communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
SPECIFICATIONS
Type | Adapter, Environmental |
Applications | The Turbidity Click Board™ can be used to senses the cloudiness or haziness of a fluid caused by large numbers of individual particles invisible to the naked eye |
On-board modules | The Turbidity Click Board™ is adapter with socket for the TSD-10 Turbidity Sensor |
Key Features | Low power consumption, high performance, allowing sensing of the cloudiness or haziness of a fluid, I2C configurable analog-to-digital converter, suitable for both mikroBUS™ power rails, and more |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V or 5V |
PINOUT DIAGRAM
This table shows how the pinout of the Turbidity Click Board™ corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | NC | ||
NC | 2 | RST | INT | 15 | NC | ||
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | 5V | Power Supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
TURBIDITY CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
Nephelometric Turbidity Unit | 0 | - | 4500 | NTU |
Operating Temperature Range | -10 | +25 | +90 | °C |
Software Support
We provide a library for the Turbidity Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe Github account.
Library Description
This library contains API for the Turbidity Click Board™ driver.
Key functions
-
turbidity_get_ntu
Turbidity get NTU function. -
turbidity_read_adc
Turbidity read ADC function. -
turbidity_get_adc_voltage
Turbidity get voltage function.
Example Description
This library contains API for the Turbidity Click Board™ driver. The demo application reads ADC value, ADC voltage and Nephelometric Turbidity Units ( NTU ).
void application_task ( void )
{
static float ntu;
turbidity_get_ntu( &turbidity, &ntu );
log_printf( &logger, "tNTU : %.2frn", ntu );
log_printf( &logger, "----------------------------rn" );
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Turbidity
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.
MIKROSDK
The Turbidity Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
We provide a library for the Turbidity Click Board™ as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe Github account.
Library Description
This library contains API for the Turbidity Click Board™ driver.
Key functions
-
turbidity_get_ntu
Turbidity get NTU function. -
turbidity_read_adc
Turbidity read ADC function. -
turbidity_get_adc_voltage
Turbidity get voltage function.
Example Description
This library contains API for the Turbidity Click Board™ driver. The demo application reads ADC value, ADC voltage and Nephelometric Turbidity Units ( NTU ).
void application_task ( void )
{
static float ntu;
turbidity_get_ntu( &turbidity, &ntu );
log_printf( &logger, "tNTU : %.2frn", ntu );
log_printf( &logger, "----------------------------rn" );
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe Github account.
Other MikroE Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Turbidity
Additional Notes and Information
Depending on the development board you are using, you may need a USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.
MIKROSDK
The Turbidity Click Board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.