Search found 35 matches
- Fri Jun 17, 2022 1:10 am
- Forum: ESP8266 boards
- Topic: Getting 85C/185F readings with DS18B20 sensor at lower temperatures
- Replies: 5
- Views: 2811
Re: Getting 85C/185F readings with DS18B20 sensor at lower temperatures
Will try and see if that helps, thanks. The reason for the extra delay time is that I wanted the frequency of the updates to be approximately every 15 seconds vs 750ms.
- Thu Jun 16, 2022 9:27 pm
- Forum: ESP8266 boards
- Topic: Getting 85C/185F readings with DS18B20 sensor at lower temperatures
- Replies: 5
- Views: 2811
Getting 85C/185F readings with DS18B20 sensor at lower temperatures
For some strange reason, when the temperature gets around -24C/-12F (monitoring the temperature of a freezer) I occasionally get an invalid 85C/185F reading (happens around every handful or so of hours.) I originally believed it to be an issue with the cable I made up, so I made another assembly wit...
- Thu Apr 01, 2021 2:53 am
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319
Re: Having issues with trying to catch "OneWireError" exception
I'm using a D1 board with the Arduino Uno form-factor and powering it with a 12V wall wart thru the barrel jack. I've also taken to opportunity to update the firmware to the latest version.
- Tue Mar 30, 2021 11:37 am
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319
Re: Having issues with trying to catch "OneWireError" exception
Just to clarify ... swap sensors and see if the problem moves to the other pin. Have you also tried setting up just one 1-wire pin and seeing if that specific sensor still faults? 4K7 pull-up and normal mode? Good luck! Yes to both 4K7 pull-up and normal mode. Up until recently I was just using one...
- Tue Mar 30, 2021 11:32 am
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319
Re: Having issues with trying to catch "OneWireError" exception
That works! Thanks!
- Tue Mar 30, 2021 1:43 am
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319
Re: Having issues with trying to catch "OneWireError" exception
IIRC I had the same issue when using another sensor some time ago before I swapped it out for the current one (think the reason for swapping was that I wanted a longer cable.)
- Mon Mar 29, 2021 10:37 pm
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319
Re: Having issues with trying to catch "OneWireError" exception
With the catch-all exception handling? Nope, it handles failed reads without a problem (I'm triggering read failures by disconnecting a data lead running to a sensor as it can be quite some time for it occur on its own.) Here's what I get when I leave out the exception handling and trigger a read fa...
- Mon Mar 29, 2021 10:19 pm
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319
Re: Having issues with trying to catch "OneWireError" exception
Might try putting the scan in the loop. I have each sensor on a different i/o pin.
I initially had the exception handling as a catch-all:
But apparently, a major side-effect of that is that I can't kill it with CTRL+C.
I initially had the exception handling as a catch-all:
Code: Select all
except:
pass
- Mon Mar 29, 2021 9:34 pm
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319
Re: Having issues with trying to catch "OneWireError" exception
I'm taking readings every 15 seconds. Anyways I'll go ahead and post the entire code if that's of help: def go(): import time import machine import urequests import network import onewire, ds18x20 sta_if = network.WLAN(network.STA_IF) dat = machine.Pin(12) ds = ds18x20.DS18X20(onewire.OneWire(dat)) ...
- Mon Mar 29, 2021 9:24 pm
- Forum: ESP8266 boards
- Topic: Having issues with trying to catch "OneWireError" exception
- Replies: 21
- Views: 10319