Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pir sensor wiring for nodemcu esp32
#9
> you can use any voltage with NO, NC, it just a relay contact.

Then i am not sure what do you want me to check with the `multimeter`

can you be more specific ? do you want me to check

* voltage when NO
* voltage when NC
* Resistance when NO
* Restistance when NC

?

Never mind, i moved the sensor to another board where i don't have such a mess of connections and configuration, simply configured as

```
binary_sensor:
- platform: gpio
pin:
number: 5
inverted: false
mode:
input: true
pullup: true # So that it fires when the sensor is disconnected and stop flapping
name: "PIR 1"
id: pir1_motion
device_class: motion
filters:
- delayed_on_off: $sensor_debounce_time
```

and it works as expected.

* When there is no sensor connected to GPIO5 -> Binary sensor is ON ( Good )
* When the NO is connected to GPIO5 -> Binary sensor is always ON and turn off when movement is detected ( Good )
* When the NC is connected to GPIO5 -> Binary sensor is always OFF and tunr ON when movement is detected ( which is what i need )


Thanks
Reply


Messages In This Thread
Pir sensor wiring for nodemcu esp32 - by primeroz - 04-23-2023, 11:42 AM
RE: Pir sensor wiring for nodemcu esp32 - by primeroz - 04-29-2023, 09:12 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)