- Order number: MIKROE-1840
- Manufacturer product ID: MIKROE-1840
THERMO 2 click carries DS1825, a programmable resolution digital thermometer IC with a unique 64-bit address. The click is designed to run on a 3.3V power supply. The board communicates with the target microcontroller through a 1-wire interface. Using the onboard jumper you can select between two outputs: GP1 (default mikroBUS™ AN pin), and GPO (default PWM pin).
Temperature range
The sensor aboard THERMO 2 click measures temperature within a range from –10°C to 85°C with ±0.5°C accuracy.
DS1825 digital thermometer
You can specify the resolution of the measurements, from 9 to 12-bit, depending on the application. Because each DS1825 has a unique 64-bit serial code, many of them can function on the same 1-wire bus.
The 4-bit location address lets you set up a unique ID for up to 16 sensors that operate on a single 1-Wire bus.
Onboard jumpers
The board features a set of four onboard jumpers (zero ohm resistors) for specifying a unique address for the sensor.
A separate jumper lets you select the sensor’s output between GP1 and GP0 pins.
THERMO 2 click also features four Address Select jumpers for setting a unique ID for the sensor (allowing for up to 16 sensors to operate on a single 1-Wire bus).
Key features
- DS1825 digital thermometer
- ±0.5°C accuracy from -10°C to +85°C
- Thermometer Resolution is User-Selectable from 9 to 12 Bits
- Alarm function (user-programmable)
- Interface: AN, PWM
- 3.3V power supply
Specification
Type | Temperature,Humidity |
Applications | HVAC systems, weather stations… especially suitable for connecting multiple sensors to a single MCU |
On-board modules | DS1825 digital thermometer IC |
Key Features | 1-Wire interface. Sensitivity: -10°C to 85°C with ±0.5°C accuracy. User selectable 9 to 12-bit measurement resolution |
Key Benefits | Four onboard jumpers for specifying sensor ID |
Interface | GPIO |
Input Voltage | 3.3V |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Pinout diagram
This table shows how the pinout on THERMO click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Programming
Code examples for THERMO 2 click, written for MikroElektronika hardware and compilers are available on Libstock.
This code snippet initializes the display and the digital thermometer, and starts the conversion in an enless loop, reads the scratch pad and displays the temperature.
01 void main() { 02 Display_Init(); 03 DS1825_Init(12); 04 delay_ms(100); 05 while(1) { 06 DS1825_StartConversion(); 07 DS1825_ReadScratchPad(); 08 Display_Temperature(); 09 delay_ms(500); 10 } 11 }