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
-
DS18B20 Sketch from Examples doesn't brings Node to sleep.
Troubleshooting • 20 Oct 2016, 22:08 • Floca 22 Oct 2016, 17:23 -
Custom Interrupt routine for door sensor
Development • 11 Jan 2015, 16:27 • funksoulbrother 11 Jan 2015, 22:00 -
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 -
💬 Floor heating controller
OpenHardware.io • 14 Oct 2017, 18:26 • openhardware.io 15 Oct 2017, 09:49 -
Dallas sensors puzzle - sensors.begin()
Troubleshooting • 1 Dec 2019, 14:28 • zboblamont 2 Dec 2019, 11:49 -
💬 Sensebender Micro mk2
OpenHardware.io • 16 Nov 2016, 22:30 • openhardware.io 10 Jul 2018, 19:37 -
💬 LoRa ESP32 Low Power Lerning Board
OpenHardware.io • 8 May 2019, 08:49 • openhardware.io 8 May 2019, 08:49 -
Binary / Temp sensor help - sleep time
Development • 16 Nov 2014, 05:21 • niccodemi 17 Nov 2014, 05:08