Skip to content
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

OneWire not working on ESP32-S2 #5865

Closed
dhalbert opened this issue Jan 16, 2022 · 3 comments
Closed

OneWire not working on ESP32-S2 #5865

dhalbert opened this issue Jan 16, 2022 · 3 comments
Assignees
Labels
bug espressif applies to multiple Espressif chips
Milestone

Comments

@dhalbert
Copy link
Collaborator

User here noticed that OneWire is not working on ESP32-S2: https://forums.adafruit.com/viewtopic.php?f=19&t=187286

Two problems:

  1. Open drain outputs not working: Open Drain outputs don't work (also breaks bitbangio.I2C) #3845. I have a simple fix for this.
  2. Onewire times seem to be somewhat too long. Still researching that.
@dhalbert dhalbert self-assigned this Jan 16, 2022
@dhalbert dhalbert added espressif applies to multiple Espressif chips bug labels Jan 16, 2022
@dhalbert dhalbert added this to the 7.x.x milestone Jan 16, 2022
@dhalbert
Copy link
Collaborator Author

dhalbert commented Jan 16, 2022

There are various Onewire implementations for Espressif chips.
This one uses delays, and is similar to what we do, including using the same ldeay mechanism:
https://github.com/UncleRus/esp-idf-lib/blob/master/components/onewire/onewire.c

This one uses RMT. The README says the original implementation used bitbanging and delays, but it was too unreliable:
https://github.com/DavidAntliff/esp32-owb

Another RMT implementation:
https://github.com/mongoose-os-libs/onewire-rmt

RMT is a better idea.

@dhalbert
Copy link
Collaborator Author

We think we'll turn off OneWire on ESP for now and move to long-term.

@dhalbert
Copy link
Collaborator Author

Also see #3822 for a specific example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug espressif applies to multiple Espressif chips
Projects
None yet
Development

No branches or pull requests

1 participant