-
Notifications
You must be signed in to change notification settings - Fork 487
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
ESP32-S2 not finding DS18B20 #245
Comments
Have you tried the example sketch (Simple one)? |
Just ran the
|
So it looks like a hardware problem |
Sorry for the delay, been on holiday. Q1: It's all on a breadboard at the moment so no wires longer than 5cm |
A few 4K7 in parallel mode will lower the effective R too |
I have been having weird problems on my esp82666 and I honestly put it down to 3.3v, I swapped pins off D0 to D15. These are purchased from an extremely reputable supplier so I'm fairly sure they're genuine. Some times one would be found, sometimes all 5, sometimes only 4, often zero. I have however found a work around that works very reliably for myself. sensors.begin(); // Start up the library
delay(100);
sensors.begin(); // REStart up the library I tried a whole bunch of other things like manually querying the bus for the first device then resetting the search and that was somewhat reliable but still wouldn't always return 5 devices. I suspect my 3.3v rail isn't actually that stable but adding 100 uf didn't help at all. |
Do you have a pull up on the data line? |
I do a 4.7k, this isn't my first go at 1-Wire, I still have some original in sample packaging devices around here somewhere from back before redis was a thing :D. Once I order my PCBs I'll be inclined to swap more around but I gave up entirely on the breadboard and I cbf swapping it on the prototyping board, I will also have new esp's coming with hopefully more stable 3.3v rails from a more reputable non-ebay supplier. I got around to plugging it into my scope and watching it. I was just offering up my work around for the other fella to see if that helped his situation. |
I have been having basically the same problem with the sensors not starting. I thought it might be a timing issue after the "sensors.begin()" so I added a "delay(500);" and that didn't solve anything. I then added a " Serial.print(sensors.getDeviceCount(), DEC);" after the "sensors.begin()" and things worked. I found this ticket and changed the print to another "sensors.begin()" and that worked as well. Wonder what is going on... |
@madmacks59 |
Using an Adafruit QTPy ESP32-S2 and Arduino IDE 2.0.0,
DS18B20 non-parasitic, wired with 4.7K pull up on DQ
Compiles & uploads fine but just keep getting the
No more addresses.
message over & over.The text was updated successfully, but these errors were encountered: