How to add a second DS18b20 temp sensor to raspberry pi


#1

hi all,

how do i add a second DS18b20 temp sensor to raspberry pi, i have the first one wired to GPIO 4 for automatic detection, how do i find out the slave address for the second sensor?


#2

Add your second (third, fourth, etc.) to the same 5v, Gnd, and GPIO4. Make sure you have your 4.7k ohm resistor. Auto discovery should find it under your raspi device.


#4


#5

thanks for your reply i found this drawing online


#6

So how many of these temp sensors can be powered off the raspberry pi?


#7

You can connect as many as you want but use an external power source to power the temp sensor.