Arduino-Temperature-Control-Library icon indicating copy to clipboard operation
Arduino-Temperature-Control-Library copied to clipboard

DS18S20 does not work on parasitic power.

Open fdobrovolny opened this issue 1 year ago • 2 comments

When I run the DS18S20 in normal mode, everything works as expected with the 4k7 Ohm. When I try to run it in parasitic mode, the library does not detect the sensor. But when I manually ask for the power mode of the device via sensors.readPowerSupply(sensorAddress) I get True. When I try to read the temperature manually via sensors.getTempC(sensorAddress), it returns -127. I tried to change the resistor to 5k Ohms and even tried the second constructor with a pullup, but nothing worked.

Any idea what to try next?

fdobrovolny avatar Jul 21 '22 20:07 fdobrovolny

Did you try a smaller pull up e.g 1K? That would give a higher current ..

RobTillaart avatar Jul 22 '22 06:07 RobTillaart

Is it possible that the sensor is a counterfeit? At least DS18B20 has many. See https://github.com/cpetrich/counterfeit_DS18B20.

isaul32 avatar Sep 05 '22 06:09 isaul32

As @isaul32 I found out it's a counterfeit sensor. Thank you for the help.

fdobrovolny avatar Nov 07 '22 17:11 fdobrovolny