Thermo 4 Click-Platine
Thermo 4 Click-Platine
Overview
Das Thermo 4 Click Board™ basiert auf dem digitalen Temperatursensor und Thermo-Watchdog LM75A von NXP. Der Sensor hat einen Bereich von -55 °C bis +125 °C.
Das Thermo 4 Click Board™ ist für den Betrieb mit einer 3,3-V- oder 5-V-Stromversorgung ausgelegt. Es kommuniziert mit dem Zielmikrocontroller über die I2C-Schnittstelle, wobei zusätzliche Funktionen durch den INT-Pin auf der MikroBUS-Leitung bereitgestellt werden.
The Thermo Click Board™ carries the NXP LM75A digital temperature sensor and thermal watchdog. The sensor has the range from −55 °C to +125 °C . The click is designed to run on either 3.3V or 5V power supply. It communicates with the target microcontroller over I2C interface, with additional functionality provided by the INT pin on the mikroBUS™ line.
LM75A Features
The NXP LM75A is a temperature-to-digital converter using an on-chip band gap temperature sensor and Sigma-delta A-to-D conversion technique. The device is also a thermal detector providing an overtemperature detection output.
The sensor can be configured for different operation conditions. It can be set in normal mode to periodically monitor the ambient temperature, or in shutdown mode to minimize power consumption.
The temperature register always stores an 11-bit 2's complement data giving a temperature resolution of 0.125 °C. This high temperature resolution is particularly useful in applications of measuring precisely the thermal drift or runaway.
SPECIFICATIONS
Type | Temperature & humidity |
Applications | System thermal management, personal computers, electronics equipment, industrial controllers |
On-board modules | LM75A |
Key Features | Temperature range: from −55 °C to +125 °C |
Interface | GPIO,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 on the Thermo 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 | INT | Overtemp Shutdown output | |
NC | 3 | CS | TX | 14 | NC | ||
NC | 4 | SCK | RX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C-bus serial clock input | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C-bus serial bidirectional data line | |
Power supply | +3.3V | 7 | 3.3V | 5V | 10 | +5V | Power supply |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
JUMPERS AND SETTINGS
Designator | Name | Default Position | Default Option | Description |
---|---|---|---|---|
JP1 | VCC.SEL. | Left | 3V3 | Power Supply Voltage Selection 3V3/5V, left position 3V3, right position 5V |
JP2 | ADD0 | Left | 0 | I2C address select bit 2 |
JP3 | ADD1 | Left | 0 | I2C address select bit 1 |
JP4 | ADD2 | Left | 0 | I2C address select bit 0 |
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 );
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 );
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.