Page 1 of 1

1-Wire example problem

Posted: Sun Mar 10, 2024 12:06 pm
by Jimis1
Hi,
I'm trying to setup a DS18B20 thermometer and use the 1Wire library from here
https://github.com/espressif/esp-idf/tr ... mt/onewire

My hardware setup is with a pull-up 4k7 like it suggests and I assume it's ok. I can't read the thermometer, I get the errors
E (77649) 1-wire.device: onewire_device_iter_get_next(76): read rom_bit_complement error
E (78649) 1-wire.rmt: onewire_bus_rmt_read_bit(486): 1-wire bit receive timeout

as shown in the picture and the second picture shows the logic analyzer output. I have setup the correct GPIO pin since I get the reset pulse out. Any ideas?
Screenshot_1.jpg
Screenshot_1.jpg (281.1 KiB) Viewed 1501 times
Screenshot_2.jpg
Screenshot_2.jpg (36.96 KiB) Viewed 1501 times

Re: 1-Wire example problem

Posted: Sun Mar 10, 2024 12:37 pm
by MicroController
There doesn't seem to be a response to the reset ("presence pulse") from the DS18B20. Check the wiring and power supply of the sensor.

Re: 1-Wire example problem

Posted: Wed Mar 13, 2024 12:53 pm
by Jimis1
Yeap, stupid mistake I had mistakenly soldered a 100nF in Data line instead of 33pF