Raspberry pi 4, Onewire not working

I’m using a raspberry pi 4 and 3 ds18b20 sensors.
Had this hooked up and it was working perfectly. Then one day it gave me no readings on all sensor. Removed them and tried to add them again, no go. Replaced the sensors, no go. Replaced the wires, breadboard, T cobbler. I even replaced the Raspberry Pi. NO GO.

When I go to configuration is the setting menu (on pc), it has options to turn on things like I2C and Onewire. I can turn everything on but when I turn on Onewire it gives me an alert saying I’m missing ‘thingId’ and other things.

Someone please advise. This has my entire system down.

can you run the following command in the pi terminal and share the log here:

tail -f /var/log/myDevices/cayenne.log

2020-03-04 09:14:45 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:296000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}, {‘channel’: ‘dev:5a982c4567014ed’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 1 Pump’}, {‘channel’: ‘dev:6d4b6b6a39204fa’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 2 Pump’}, {‘channel’: ‘dev:c96000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}]
2020-03-04 09:14:45 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 14.6}, {‘sys:cpu;temp’: 49.173}, {‘sys:ram;usage’: 622194688}, {‘sys:storage:/;usage’: 5906964480}]
2020-03-04 09:14:58 - myDevices - INFO - Temperature - DS18S20(slave=10-a96000800000) a96000800000 added
2020-03-04 09:14:58 - myDevices - INFO - 1-wire device does not exist: DS18S20, 10-c96000800000
2020-03-04 09:14:59 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:296000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}, {‘channel’: ‘dev:5a982c4567014ed’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 1 Pump’}, {‘channel’: ‘dev:6d4b6b6a39204fa’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 2 Pump’}, {‘channel’: ‘dev:a96000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}]
2020-03-04 09:14:59 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 3.3}, {‘sys:cpu;temp’: 47.225}, {‘sys:ram;usage’: 621305856}, {‘dev:a96000800000’: 0.0}]
2020-03-04 09:15:14 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:296000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}, {‘channel’: ‘dev:5a982c4567014ed’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 1 Pump’}, {‘channel’: ‘dev:6d4b6b6a39204fa’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 2 Pump’}, {‘channel’: ‘dev:a96000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}]
2020-03-04 09:15:14 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 84.0}, {‘sys:cpu;temp’: 51.608}, {‘sys:ram;usage’: 678854656}, {‘sys:storage:/;usage’: 5912174592}, {‘sys:net;ip’: ‘192.168.0.72’}, {‘dev:296000800000’: 0.0}, {‘dev:5a982c4567014ed’: 0}, {‘dev:6d4b6b6a39204fa’: 0}, {‘dev:a96000800000’: 0.0}] + sys:gpio
2020-03-04 09:15:29 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:296000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}, {‘channel’: ‘dev:5a982c4567014ed’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 1 Pump’}, {‘channel’: ‘dev:6d4b6b6a39204fa’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 2 Pump’}, {‘channel’: ‘dev:a96000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}]
2020-03-04 09:15:29 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 3.5}, {‘sys:cpu;temp’: 48.199}, {‘sys:ram;usage’: 681103360}, {‘sys:storage:/;usage’: 5907755008}]
2020-03-04 09:15:43 - myDevices - INFO - Temperature - DS18S20(slave=10-696000800000) 696000800000 added
2020-03-04 09:15:45 - myDevices - INFO - Sensors info: [{‘channel’: ‘dev:296000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}, {‘channel’: ‘dev:5a982c4567014ed’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 1 Pump’}, {‘channel’: ‘dev:696000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}, {‘channel’: ‘dev:6d4b6b6a39204fa’, ‘value’: 0, ‘type’: ‘digital_actuator’, ‘unit’: ‘d’, ‘name’: ‘Cabinet 2 Pump’}, {‘channel’: ‘dev:a96000800000’, ‘value’: 0.0, ‘type’: ‘temp’, ‘unit’: ‘c’, ‘name’: ‘DS18S20’}]
2020-03-04 09:15:45 - myDevices - INFO - Send changed data: [{‘sys:cpu;load’: 0.0}, {‘sys:ram;usage’: 680534016}, {‘sys:storage:/;usage’: 5907746816}, {‘dev:696000800000’: 0.0}]

After I ran that, Ds18b20 starting showing up. Multiple ones, none giving any actual readings. There was only one hooked up.

it maybe issue with the sensor, as it is giving value 0.

try this code and see if you get reading from the sensor https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/software

This is working now. I switched from 3.3V to 5V and they came right up.

1 Like