-
• #2
Do you have a pullup resistor on
A0
? There could be some instability if not.Also are you powering the DS18B20 on the 3rd pin, or trying to run it parasitically?
-
• #3
Ah yes, pullup resistor that's sorted it, thanks :)
Are there internal pullups I can use in this scenario?
Sam
-
• #4
Yes and no... So as far as I remember the nRF52 can do it, but the ST parts had some strange behaviour where it was really hard to keep the pullup on something that was an output so I don't think they could...
Been doing some experiments with a DS18B20 sensor on an Espruino WiFi, I've had a couple of successful reads but mostly I'm getting this error:
(Sorry for the screenshot I can't figure out how to copy/paste from the console!
My code is just this for now:
1 Attachment