Ds18b20/ nodemcu fluctuations in temp
-
I have two DS18B20 connected to an nodemcu on pin d6. They have a pull up resistor across data and VIC of 4k7. Nodemcu is running tasmota. I am able to see both sensor temps but temp-1 has continuous temp errors. It will show the current temp then shows 85c, then back to the correct temp. This shows on the tasmota main menu as well as through mqtt and node red. I created a 5 and 12 hour chart which showed temp-1 fluctuating constantly.
Please help
-
-
@mjdula
The 85 reading is actually an error message used by the ds18b20 to indicate it has not had time to complete the processing of the reading. Most commonly this is only seen when the node first boots up and can be ignored or fixed by adding a small delay. You will find a lot of information on this if you do a google search. I have never experienced it myself but from other posts on the net it seems power supply problems and long cable runs to the sensor can also cause the error. Some have also had success by using a different resistor value. Note you only need one resistor fitted near your nodemcu not a resistor at each ds18b20.
If the 85 reading is well outside your expected reading you could just filter out any readings over 84 as well.
Suggested Topics
-
pool/spa temperature sensor for VeraLite???
Vera • 28 Oct 2014, 07:57 • callagga 31 Oct 2014, 06:30 -
[SOLVED] s17021 vs HTU21
Hardware • 30 Apr 2021, 20:22 • 4994james 3 May 2021, 05:54 -
Binary / Temp sensor help - sleep time
Development • 16 Nov 2014, 05:21 • niccodemi 17 Nov 2014, 05:08 -
💬 NModule
OpenHardware.io • 23 May 2017, 14:38 • openhardware.io 10 May 2020, 05:43 -
RGBW LED Controller
OpenHardware.io • 26 Jan 2016, 14:35 • openhardware.io 20 Mar 2016, 16:51 -
💬 Wirsbo/uponor thermostat
OpenHardware.io • 18 Dec 2016, 19:16 • openhardware.io 13 Nov 2019, 10:37 -
💬 Floor heating controller
OpenHardware.io • 14 Oct 2017, 18:26 • openhardware.io 15 Oct 2017, 09:49