-
Notifications
You must be signed in to change notification settings - Fork 1.3k
OneWireBus does not seem to detect a DS18B20 on featherS2 #3822
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
Comments
OneWire is bit banged so it might be digitalio or timing related. |
Seems to be the same issue with STM32F405 Cortex M4 CPU on Adafruit Feather STM32F405 Express. Perhaps stm32duino / Arduino_Core_STM32 group is working on something similar (no. 412)? Maybe this post is helpful even it is not CircuitPython related: Support OneWire device (ex: DS1822) #412 |
For STM32F405 I filed a fresh issue #3935 |
Hello, with this simple code reset() returns always false: import board
from adafruit_onewire.bus import OneWireBus
ow_bus = OneWireBus(board.XXX)
print("Resetting bus...", end="")
if ow_bus.reset():
print("OK.")
else:
print("Nothing found on bus.") When i probe the bus (on nucleoG7), timing is not correct. According to source there should be common_hal_mcu_delay_us(480); with BUS low. Then bus is switched to input followed by common_hal_mcu_delay_us(70); After that the bus level is read. |
Closing in favor of #5865, but will xref to here. |
Tested a DS18B20 temperature sensor (with the appropriate resistor) on a Feather S2 and other boards (like Feather M0 express) and the device is not found on the S2. I think I correctly checked it's connected to the right pin (it throws an error otherwise).
Feather S2:
Feather M0 Express
The text was updated successfully, but these errors were encountered: