How does it work?
Thermo 4 Click is based on the LM75A, a digital temperature sensor and thermal watchdog from NXP Semiconductor. It is a temperature-to-digital converter that uses an on-chip band gap temperature sensor and Sigma-delta analog-to-digital conversion technique. It is also a thermal detector that provides an overtemperature detection output. The sensor can be configured for different operation conditions, in normal mode to periodically monitor the ambient temperature or in shutdown mode to minimize power consumption. In normal mode, the temperature-to-digital conversion is executed every 100ms, while in shutdown mode, the device becomes idle, still holding the last temperature readings.
Thermo 4 Click uses a standard 2-Wire I2C interface to communicate with the host MCU. The I2C address can be changed over the ADDR SEL jumper while the 0’s are set by default. The LM75A sensor has an overtemperature shutdown output pin that can interrupt the host MCU over the INT pin. The sensor can work in comparator mode or interrupt mode on this output pin. In comparator mode, LM75A behaves like a thermostat, while in interrupt mode, the output is used for thermal interruption.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the 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
Temperature & humidity
Applications
Can be used for the development of system thermal management, personal computers, electronic equipment, industrial controllers, and more
On-board modules
LM75A – digital temperature sensor and thermal watchdog from NXP Semiconductor
Key Features
Wide operating temperature range, 11-bit ADC resolution offers a precise temperature resolution, programmable temperature threshold, and hysteresis set points, stand-alone operation as thermostat at power-up, comparator, or interrupt on overtemperature shutdown pin, and more
Interface
I2C
Feature
No ClickID
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 on Thermo 4 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
– | PWR | – | Power LED Indicator |
– | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
ADD0-ADD2 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
Thermo 4 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Temperature Measuring Range | -55 | – | 125 | °C |
ADC Resolution | – | 11 | – | bit |
Temperature Resolution | – | 0.125 | – | °C |
Software Support
We provide a library for the Thermo 4 Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE 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 Thermo 4 Click driver.
Key functions
-
This function reads temperature values in Celsius format.
-
This function reads temperature values in Farenheit format.
-
This function is used to reset the sensor.
Example Description
This demo example returns temperature values in three different format.
void application_task ( void )
{
temp_in_celsius = thermo4_read_temperature_c( thermo4 );
temp_in_faren = thermo4_read_temperature_f( thermo4 );
temp_in_kelvin = thermo4_read_temperature_k( thermo );
log_printf(" Temperature celsius : %f %crn", temp_in_celsius, deg_cel);
log_printf(" Temperature farenheit : %f %crn", temp_in_faren, deg_far);
log_printf(" Temperature kelvin : %f Krn", temp_in_kelvin);
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Thermo4
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 MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE 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.
For more information about mikroSDK, visit the official page.