QT Py ESP32-S2 - CircuitPython - OneWire

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mwg72
 
Posts: 19
Joined: Thu Nov 26, 2015 2:31 pm

QT Py ESP32-S2 - CircuitPython - OneWire

Post by mwg72 »

I'm sure I'm missing something simple here but, I'm trying to get a ds18b20 to work on a QT Py Esp32-S2.

Works as expected on a Feather M0 however, on the QT Py I get no responses back, below are the outputs from my tests on both of the devices.

Any suggestions?

Adafruit CircuitPython 7.1.1 on 2022-01-14; Adafruit Feather M0 Express with samd21g18
--------------------------------------------
import board
from adafruit_onewire.bus import OneWireBus

ob = OneWireBus(board.A0)
ob.scan()
[<OneWireAddress object at 0x20003a50>]

devices = ob.scan()
for device in devices:
print("ROM = {} \tFamily = 0x{:02x}".format([hex(i) for i in device.rom], device.family_code))

ROM = ['0x28', '0x87', '0xbb', '0x3f', '0x46', '0x20', '0x1', '0xe3'] Family = 0x28


Adafruit CircuitPython 7.1.1 on 2022-01-14; Adafruit QT Py ESP32S2 with ESP32S2
--------------------------------------------
import board
from adafruit_onewire.bus import OneWireBus

ob = OneWireBus(board.A0)
ob.scan()
[] <-- Empty return

devices = ob.scan()
for device in devices:
print("ROM = {} \tFamily = 0x{:02x}".format([hex(i) for i in device.rom], device.family_code))
>>>


Thanks

Matt

User avatar
danhalbert
 
Posts: 4613
Joined: Tue Aug 08, 2017 12:37 pm

Re: QT Py ESP32-S2 - CircuitPython - OneWire

Post by danhalbert »

Just to check, is it wired as indicated here: https://learn.adafruit.com/using-ds18b2 ... -2979775-1
with a 4.7K pull-up resistor?

User avatar
mwg72
 
Posts: 19
Joined: Thu Nov 26, 2015 2:31 pm

Re: QT Py ESP32-S2 - CircuitPython - OneWire

Post by mwg72 »

Yes it is.

Thanks

User avatar
danhalbert
 
Posts: 4613
Joined: Tue Aug 08, 2017 12:37 pm

Re: QT Py ESP32-S2 - CircuitPython - OneWire

Post by danhalbert »

This turns out to be a bug, or at least two bugs. Tracking the problem here: https://github.com/adafruit/circuitpython/issues/5865.

Thanks for encountering this, and for the testing!

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”