DS18S20 Temperature Sensor
The Dallas (now Maxim) DS18S20 one-wire temperature sensor is quite famous in the DIY/hobbyist community for its flexibility and ease of use. This is a completely digital, serial interface temperature sensor with an accuracy of 0.5 degrees and a range of -55 to +85 degrees Celsius. Each DS18S20 also contains a unique serial number so can coexist on the same one-wire bus.
- Power supply voltage: 3.0V to 5.5V.
- Temperature range: -55 to +85 degrees Celsius
- Accuracy: ± 0.5°C
- Unique serial numbers enable multiple DS18S20 to be connected to the same bus, so only 1 microcontroller I/O pin is used.
- The DS18S20 can be damaged easily by reversing power and ground pins. Please ensure these are connected the right way round.
- The one-wire bus has a maximum length before line inductance and resistance start being a detriment to the serial communications. As long as the wire linking your temperature sensor with your micro is not longer than a metre or so, you should be fine, but longer than that you may need protection diodes and/or shielded cables.
Interfacing to Arduino
Arduino has great support for the one-wire bus. For more information, libraries and test code:
Interfacing to Raspberry Pi
The Raspberry Pi also has built-in support for reading 1-wire devices. For more information: