-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example Onewire DS18B20 does not work (IDFGH-9422) #10790
Comments
For me, the RMT onewire driver fails on boot constantly. During device searching I wrap the search in a for loop and it exits until device count is satisfied otherwise retry. |
For me it goes even further, I can never pick up a DS18B20. It works fine with an Arduino Uno. The workaround and loops didn't work for me. I (330) onewire_rmt: RMT Tx channel created for 1-wire bus
I (340) gpio: GPIO[5]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0
I (340) onewire_rmt: RMT Rx channel created for 1-wire bus
I (350) example: 1-wire bus installed
E (360) onewire: no devices participating in search
I (360) example: 0 device found on 1-wire bus
E (1170) onewire: no devices participating in search
I (1170) example: 0 device found on 1-wire bus
E (1970) onewire: no devices participating in search
I (1970) example: 0 device found on 1-wire bus``` |
Turns out my probe needed some more voltage! The vanilla example still doesn't work, but the fix by @d3ads1lence worked for me. |
This example works somehow strangely. Может кому-нибудь это поможет. |
I have the same issue on ESP32-DevKitC V4: ESP32-WROOM-32E using ESP-IDF v5.0.1: 0 device found on 1-wire bus. |
@d3ads1lence Thank you for reporting this issue! indeed, I can reproduce the issue on my local side. And thanks for sharing your workaround! That also worked. Some follow-up work that we will take time to do in the soon future:
|
Answers checklist.
IDF version.
v5.0
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
Custom board
Power Supply used.
USB
What is the expected behavior?
I have a custom board to which one DS18B20 sensor is connected and I assumed that I would take an example how to work with the DS18B20 sensor load it into the device and see the temperature in the log.
What is the actual behavior?
But instead of this sensor is not detected on the bus.
Steps to reproduce.
Debug Logs.
More Information.
Using a logic analyzer, I found that before ESP sends the sensor reset signal, the bus signal is set to zero at 32 ms.
I google this strange behavior and have found that is well know issue.
✅ I have workaround, that works for me: add
onewire_bus_write_bit(handle, 0);
in the end of onewire_new_bus_rmt function.I created this report because:
The text was updated successfully, but these errors were encountered: