Can you swap out a TMP36 with a DS18B20?
-
Wondering if it’s possible to switch out a TMP36 with a DS18B20 for temperature sensors? Working on the project with the adc expansion:
https://onion.io/2bt-python-iot-sensors/
So, thinking about switching out the TMP36 with the
DS18B20 because it’s available with longer wires and water proof connections to its pins.Using this other project for reference on the DS18B20 for code and necessary update to schematics, such as adding a resistor to it.
https://docs.onion.io/omega2-starter-kit/starter-kit-temp-sensor.html
Thanks in advance!
-
@CoffeeCat DS18B20 is a 1-Wire device. You should connect it to Omega2's 1-Wire Bus - ie. directly to an Omega2(+) GPIO.
Have you ever read this Reading a 1-Wire Temperature Sensor