-->
Page 2 of 2

Re: NodeMCU Only pin D4 working with onewire ds18b20

PostPosted: Mon May 29, 2017 2:15 pm
by marcelstoer
jamief wrote:I've made a simple script in arduino ide


This is the NodeMCU Lua Firmware subforum, not Arduino.

Re: NodeMCU Only pin D4 working with onewire ds18b20

PostPosted: Tue Dec 21, 2021 2:42 pm
by jtburgess
I've been trying to upgrade my entire system to the latest:
Arduino 1.8.16, ESP core 3.0 2, DallasTemperature 3.9.0
checking to make sure my project works after each change.

BUT when I upgrade OneWire from 2.3.0 to 2.3.6, it stops seeing any sensors.
Downgrade again and everything works. Something is wrong.
Any ideas? As I said, I made ONE change, and one change back.
What is it about the newer OneWire libraries???

PS I've also tried 2.3.1 ... 2.3.5 in the past with identical results.

Re: NodeMCU Only pin D4 working with onewire ds18b20

PostPosted: Sun Feb 20, 2022 6:25 am
by rpiloverbd
I also came across this tutorial regarding temperature monitoring using ESP8266 and DS18B20.

https://www.theengineeringprojects.com/ ... 18b20.html
Surprisingly, this tutorial has also used D4 pin. But they have mentioned that any other I/O pin can be used. Have you succeeded using any other pin?

Re: NodeMCU Only pin D4 working with onewire ds18b20

PostPosted: Thu Sep 29, 2022 2:34 pm
by barish
I can confirm that here too only D4/GPIO2 is usable with OneWire library > 2.3.0 . If the pin is used otherwise, I need to use OneWire library 2.3.0 to run OneWire on a different pin of ESP8266 (NodeMCU clone).