DS18B20 Temperature Sensor Module
The PCB includes the required resistor, no other components are required to connect to a microcontroller board like an Arduino Uno. This is a great sensor that allows you to connect many of these sensors using only one digital pin.
There are some options which can be programmed when using the device such as choosing between a number of bits of resolution vs conversion time, but those can be ignored for establishing basic operation.
Hookup is straightforward. Just supply power, ground and connect the 1-Wire bus pin to a digital pin on the microcontroller. The part is compatible with 3.3 or 5V power.
Technical Specification:
Communication Interface | 1-Wire | |
Input | Logic High | > 2.2V |
Logic Low | < 0.8V | |
Supply Voltage | Maximum | 5.5V |
Minimum | 3V | |
Temperature | Maximum Range | -55°C to +85°C |
Accuracy (-10°C to 85°C) | +/- 0.5°C | |
Package | SS Encapsulated TO-92 | |
Dimensions | L x W (PCB) | 20 x 15mm (0.8 x 0.6″) |
Pinout:
- ‘-‘ or ‘G’ = Ground
- Center Pin or ‘R‘ = Vcc (3.3 – 5V)
- ‘S’ or ‘Y’ = 1-wire bus. Connects to a digital pin on MCU
Datasheet for DS18B20
DS18B20 Temperature Sensor Module Arduino Code
You can find the code here : DS18B20 Arduino Code