Thermo 7 Click Board
Thermo 7 Click Board
The Thermo 7 Click Board™ is equipped with the sensor IC, which can digitize temperature measurements between -55°C and +125°C so that the temperature measurement data can be processed by the host MCU. The Thermo 7 Click Board™ provides an accuracy of 1°C in the range from -10°C to +85°C. The sensor used on this Click Board™ has a great combination of features that make it a perfect choice for any temperature measurement application: low power consumption, selectable sampling resolution, programmable interrupt engine, compact sensor size, alert output pin, and more. The sensor itself requires almost no external components, which simplifies the design, reducing the cost and cutting the time to market.
Software Support
We provide a library for the Thermo 7 Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
The library initializes and defines I2C bus drivers and driver functions that offer a choice for writing data in registers and reading data from registers. The library offers the possibility of setting the upper and lower temperature limits, and the main thing is reading the ambient temperature.ADC resolution can be set to 9bit, 10bit, 11bit or 12bit, with an accuracy of 0.5 C, 0.25 C, 0.125 C or 0.0625 C. The user can adjust the state and behavior of interrupt pins in the set modes. Modes that can be set are Interrupt mode and Comparator mode..
Key Functions
float thermo7_readAmbientTemperature()
- Function reads ambient temperature
void thermo7_setConfiguration(uint8_t configuration)
- Function for configuration chip and measurement
void thermo7_setResolution(uint8_t resolution)
- Function sets ADC resolution measurement
Example Description
The application is composed of three sections:
- System Initialization - Initializes I2C module and sets INT pin as INPUT.
- Application Initialization - Initializes driver init and configuration chip and measurement resolutions.
- Application Task - (code snippet) - Reads ambient temperature and logs to USBUART every 1 second.
void applicationTask() { AmbientTemperature = thermo7_readAmbientTemperature(); FloatToStr( AmbientTemperature, tempText ); mikrobus_logWrite( " Ambient temperature : ", _LOG_TEXT ); mikrobus_logWrite( tempText, _LOG_TEXT ); mikrobus_logWrite( " °C", _LOG_LINE ); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our Libstock page.
Other mikroE Libraries used in the example:
- I2C
- UART
- Conversions
Additional Notes and Information
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The Thermo 7 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.
Thermo 7 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.