Thermo 4 Click Board
Thermo 4 Click Board
The Thermo 4 Click Board™ is based on the LM75A digital temperature sensor and thermal watchdog from NXP. The sensor has a range from -55 °C to +125 °C.
The Thermo 4 Click Board™ is designed to run on either a 3.3V or 5V power supply. It communicates with the target microcontroller over the I2C interface, with additional functionality provided by the INT pin on the MikroBUS line.
Software Support
Code examples for the Thermo Click Board™, written for MikroElektronika hardware and compilers are available on Libstock.
CODE SNIPPET
The following code snippet shows the main function of the example, which initializes the system, then writes data into the register, then reads that data for confirmation, and then reads the current temperature value, and shows that value in degrees Fahrenheit.
01 void main() 02 { 03 04 system_init(); 05 thermo_init(0x55); 06 Delay_ms (100); 07 i=5; 08 09 10 /*sets the temperature limit to specified float value*/ 11 thermo_write_temperature (65.5, THERMO_TOS); 12 /*reads stored temperature limit*/ 13 thermo_read_temperature_text (uart_text, THERMO_TOS); 14 Delay_ms (100); 15 16 UART_Write_Text("rn Current temperature limit for output signal: "); 17 UART_Write_Text(uart_text); 18 Delay_ms( 1000 ); 19 20 /*reads current temperature in fahrenheit*/ 21 _fh_value = thermo_read_temperature_fh (THERMO_TEMP); 22 FloatToStr (_fh_value , uart_text); 23 uart_text [5] = 0; 24 Delay_ms (100); 25 UART_Write_Text("rn rn Current temperature in Fahrenheit: "); 26 UART_Write_Text(uart_text); 27 Delay_ms( 1000 );
Thermo 4 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.