thermo18
2.0.0.0
|
Thermo 18 Click is a compact add-on board that provides an accurate temperature measurement. This board features the WSEN-TIDS, a silicon-based, high-precision digital temperature sensor with embedded analog and digital signal processing unit from Würth Elektronik.
We provide a library for the Thermo18 Click 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 way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Thermo18 Click driver.
thermo18_cfg_setup
Config Object Initialization function. thermo18_init
Initialization function. thermo18_default_cfg
Click Default Configuration function. thermo18_read_temperature
Reads and calculates temperature value. thermo18_set_temperature_threshold
Sets temperature threshold. thermo18_reset
Resets device. The example application showcases ability of device
to read temperature and detect and assert interrupt on undertemperature or overtemperature thresholds.
The demo application is composed of two sections :
Initialization of communication modules and interrupt pin.
Reads device ID to check comunication. Then resets device, and sets undertemperature and overtemperature thresholds on 24 and 30 degrees Celsius. In the end enables OneShot temperature conversion.
Checks status to see if the temperature conversion is finished.
When it's finished reads and logs calculated temperature data. Then checks if status is asserted for threshold detection, and logs if detected. In the end re-enables OneShot conversion.
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:
Additional notes and informations
Depending on the development board you are using, you may need 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.