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?
Read valve status (cannot get Switch input to work)
Moderators: grovkillen, Stuntteam, TD-er
Read valve status (cannot get Switch input to work)
- Attachments
-
- esp switch.JPG (50.6 KiB) Viewed 12597 times
Re: Read valve status (cannot get Switch input to work)
No one?
Stupid question or wrong place?
Any advice or reference would be appreciated!
Thanks.
Stupid question or wrong place?
Any advice or reference would be appreciated!
Thanks.
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Read valve status (cannot get Switch input to work)
You might want to be more to the point, I didn't follow you. You may want to use a newer version too.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Read valve status (cannot get Switch input to work)
Clear and thanks.
Will look at newer version and clarify my question.
Will look at newer version and clarify my question.
Re: Read valve status (cannot get Switch input to work)
According to https://www.letscontrolit.com/wiki/inde ... le=ESPEasy
Release R120 is the last stable version.
Do you recommend to use mega?
Thanks
Release R120 is the last stable version.
Do you recommend to use mega?
Thanks
- Attachments
-
- 433A6B2B-7EB9-433D-B148-DA07B5C50BFE.jpeg (192.86 KiB) Viewed 12491 times
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: Read valve status (cannot get Switch input to work)
Yes I know we're still promoting R120 but latest mega (found on GitHub) is very stable.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: Read valve status (cannot get Switch input to work)
Thanks, will try the new version.
In the meantime, I'm able to read the input. Simplified the setup by using a simple 3 wire switch (common, pos1 and pos2), connected to 3V to pos1, GND to pos2 and common to GPIOs.
When flipping the switch, I see the result straight in the browser. Although, I don't know what I did wrong, I now know how to use the switch option!
Will continue the journey, including trying the new software.
In the meantime, I'm able to read the input. Simplified the setup by using a simple 3 wire switch (common, pos1 and pos2), connected to 3V to pos1, GND to pos2 and common to GPIOs.
When flipping the switch, I see the result straight in the browser. Although, I don't know what I did wrong, I now know how to use the switch option!
Will continue the journey, including trying the new software.
Who is online
Users browsing this forum: No registered users and 27 guests