Read valve status (cannot get Switch input to work)
Posted: 19 Sep 2019, 19:31
I would like to read the status of 4 24VDC central heating valves. In parallel with the valves I bring the signal to an Opto coupler (https://www.tinytronics.nl/shop/nl/dive ... -4-kanalen). The Opto output is connected to NodeMcu ground and the signal is going to a GPIO pin and I have added a pull-up 10 k resistor to VCC. Tried this with a simple battery and this is working. The output signal line is depicting 0.8 or 3.3 VDC depending on the input.
I have flashed ESPEasy on a NODEMCU board and configured 4 GPIOs for switch input (see enclosed screenshot). Unfortunately, it does not reflect the input status. Also if I simply connect VCC or GND to the GPIO pin the NodeMcu is not triggered. So I must do something wrong but I’m running out of options.
What I would like to achieve is valve on = input Opto 24 VDC. Result output Opto board high. Switch input function (NodeMcu) is reading high input and sends 1. Once the valve is off = input Opto = 0. Result output low. Switch input function is reading low input and sends 0. Is my understanding correct that a change in GPIO should immediately be reflected in the status? No 1-minute delay?
I have flashed ESPEasy on a NODEMCU board and configured 4 GPIOs for switch input (see enclosed screenshot). Unfortunately, it does not reflect the input status. Also if I simply connect VCC or GND to the GPIO pin the NodeMcu is not triggered. So I must do something wrong but I’m running out of options.
What I would like to achieve is valve on = input Opto 24 VDC. Result output Opto board high. Switch input function (NodeMcu) is reading high input and sends 1. Once the valve is off = input Opto = 0. Result output low. Switch input function is reading low input and sends 0. Is my understanding correct that a change in GPIO should immediately be reflected in the status? No 1-minute delay?