I'm trying to wire up a nodemcu with ds18s20, but it is not found the sensor. DS18S20 is connected to 3.3V and GND between the 3.3V and DATA line I connected a 4k7 resistor. Data line connected to ~D3 port (pin0).
What i'm doing wrong?
var GPIO0 = new Pin(0); // GPIO0 | ~D3 port
var ow = new OneWire(GPIO0);
var sensor = require("DS18B20").connect(ow);
console.log('sensor getting data');
setInterval(function() {
console.log(sensor.getTemp());
}, 1000);
I want to know that if OneWire work with the ESP8266? As per my observation someone had got it working?
You must try a different pin. GPIO could be one of the pins that is used for something else.
One thing you must try to mirror or replicate the setup on a Pico.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hi,
I'm trying to wire up a nodemcu with ds18s20, but it is not found the sensor. DS18S20 is connected to 3.3V and GND between the 3.3V and DATA line I connected a 4k7 resistor. Data line connected to ~D3 port (pin0).
What i'm doing wrong?
I'm getting null for sensor.getTemp();
thanks,
HyGy