Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Measuring temperatures with Raspberry Pi and multiple DS18B20 Sensors

Measuring temperatures with Raspberry Pi and multiple DS18B20 Sensors

The DS18B20 temperature sensor is easy to use, inexpensive and has a repeatable level of accuracy which makes it a top choice for measuring temperatures in all sorts of environments. However using multiple units with a Raspberry Pi may have seemed too difficult – until now. 

Thanks to the efforts of Malcolm Maclean the process is quite simple. Only one GPIO pin is required as each DS18B20 has a unique 1-wire bus address, and with the example code running under Raspbian you can poll all the sensors in one hit and receive the temperature in Celsius along with the individual sensor’s address.

Fore more information, visit Malcolm’s interesting website. And for more, we’re on facebookGoogle+, and twitter – so follow us for news and product updates as well. 

If you’re interested in measuring temperature with a reliable sensor – consider using our TEMP: DS18B20-based temperature sensor module:

The TEMP: uses the Dallas DS18B20 1-wire digital temperature sensor, with a wide measurement range of -55 to +125°C at an accuracy of +/- 0.5°C. For more information, tutorials and to order – visit the TEMP: page

 

More Articles to Read

Single-Sided USB Charger
Single-Sided USB Charger
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
A FPGA controlled RGB LED MATRIX for Incredible Effects – the Hardware
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Using Nanotimers to Reduce IoT System Power Consumption by an Order of Magnitude
Replace a microwave’s beeping with the Windows XP startup sound
Replace a microwave’s beeping with the Windows XP startup sound
A DIY Laser Scanning Microscope
A DIY Laser Scanning Microscope
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
Reverse-engineering the surprisingly advanced ALU of the 8008 microprocessor
ESP8266 LED lighting: QuinLED v2.6 PCB
ESP8266 LED lighting: QuinLED v2.6 PCB
Switching LVDS Graphics in a Laptop Computer
Switching LVDS Graphics in a Laptop Computer
Teleknitting: TV-based string art
Teleknitting: TV-based string art
DIY Bubble Machine
DIY Bubble Machine
Start your day with Nerf target practice!
Start your day with Nerf target practice!
Teardown of a Peaktech 6225A
Teardown of a Peaktech 6225A

Top




Shares