You are reading a single comment by @HubieKimber and its replies. Click here to read the full conversation.
  • 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?

    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'm getting null for sensor.getTemp();

    >ow.search();
    =[  ]
    

    thanks,
    HyGy

  • 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.

About

Avatar for HubieKimber @HubieKimber started