Skip to content

OneWire on STM32F405 not working #3935

@notDIRK

Description

@notDIRK

DS18B20 OneWire sensors connected to STM32F405 Pin D5 (I tried also D6, etc.) failed. Pull Up resistor is not the issue.

ow_bus.scan() shows different behavior in case of:
a) pin is not connected or
b) sensor or multiple sensors are connected

Case a) IndexError: list index out of range
Case b) nothing is showing up

Same code (with different pins) and same sensors with Metro Express and Playground Express boards is working well.

Tried "Simple Test" for one wire from GitHub

Even the pull up resistor is not the issue because it works on other boards the result is:

code.py output:
Resetting bus...Traceback (most recent call last):
  File "code.py", line 14, in <module>
RuntimeError: Nothing found on bus.

If I remove the one wire sensors the result is:

code.py output:
Resetting bus...OK.
Scanning for devices...Traceback (most recent call last):
  File "code.py", line 18, in <module>
  File "adafruit_onewire/bus.py", line 158, in scan
RuntimeError: Maximum device count of 10 exceeded.

Perhaps stm32duino / Arduino_Core_STM32 group is working on something similar (no. 412) and maybe the link is helpful even it is not CircuitPython related: Support OneWire device (ex: DS1822) #412

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions