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
-
Permaproto MySensor
My Project • 22 Jul 2014, 17:01 • tannewt 23 Jul 2014, 12:22 -
💬 BEEP base v2
OpenHardware.io • 18 Sept 2018, 07:39 • openhardware.io 10 Dec 2018, 22:53 -
💬 Floor heating controller
OpenHardware.io • 14 Oct 2017, 18:26 • openhardware.io 15 Oct 2017, 09:49 -
Simple Temp/Light/Time setup with LCD 1.4 (no beta anymore)
My Project • 13 Aug 2014, 12:00 • John 31 Aug 2014, 21:47 -
PIR sensor with nRF24L01+ transmitter gives false alarms if supply voltage over 2,98 volts
Troubleshooting • 15 Jan 2015, 19:26 • ruxu 18 Jan 2015, 08:10 -
RGBW LED Controller
OpenHardware.io • 26 Jan 2016, 14:35 • openhardware.io 20 Mar 2016, 16:51 -
Openhab 2 Mysensors smart chicken coop
My Project • 1 Mar 2017, 02:08 • Ticupolu 8 Mar 2017, 15:48