-
Notifications
You must be signed in to change notification settings - Fork 50
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
DS18b20 and Pico W causing decode error #677
Comments
@tyeth Could you attempt to reproduce this issue this week? |
Will do! |
Just to add we may have a destructor missing issue, which presents itself when removing and adding DS18b20 devices. Note to self, retest with fix in pstolarz/OneWireNg#71 Note to Brent, we might want to switch to the bitbanged driver for rp2040, so we can support more ds18b20 devices. There is a requirement to supply the pio number to the ds18b20 constructor, with 2 pins per pio at 4max (we might even find it crashes with 3 devices without pio num argument to constructor), whereas the bitbang implementation supports many pins (>4). |
I don't recommend the bit-bang driver since it blocks interrupts during bus transmission. There are observed UART problems with PicoSDK while using the BB driver. While properly configured the PIO driver supports up to 8 object services - details how to create them will be available in the updated OneWireNg's README soon. |
Retested the destructor PR and works, resolves the inability to re-add DS18b20 devices to the pico. I haven't seen the not connected / connection lost read message, so not sure if the original bug was truly recreated rather than a second symptom / bug fixed. |
Describe the bug
Pico W connected to a ds18b20 is causing a crash
Arduino board
Raspberry Pi Pico W
Logs
Connecting a new DS18b20 to a Pico W, attempt #1
Connecting a new DS18b20 to a Pico W, attempt #2
@tyeth I think this is from within the DS18 driver used on PicoW?
Which components are connected to your device
DS18b20 from Aliexpress
The text was updated successfully, but these errors were encountered: