Perhaps a easy question, I have the most common relay board on the world here in a espeasy/domoticz setup.
But maybe other's had the same instability.

I thought everything was working fine, but sometimes the relay is not switching on/off when I send commands through domoticz.
I thought a connection issue or whatever.
But when looking deeper, I have the same issue when sending the commands by hand.
Code: Select all
http://<ESP IP address>/control?cmd=GPIO,<pin>,0
So I was thinking about
- upgraded espeasy from R120 to 2.0.0-dev8
- configured the output as output high or low, but does not help.
- I am thinking that the level of 1/0 is wrong towards the relay, should it be connected with a pull down? (did not see something about that in the https://www.letscontrolit.com/wiki/index.php/Relais)
- Onother thing in the wiki is the level shifter, could the TTL vs 3.3v cause this issue?
- Last thing (not tried yet) is the separate power source to power the board,could that cause the 'instability'? /edit In the meantime, connected 5v to the vcc pin on the relay, same issue
- any other suggestions?
And it's fixed!
Don't hit me, le dumb me found the easy fix...
I experimented with breadboards with external PSU and everything worked fine in test.
But in my wall switch setup, I was using an 5v 2Amps usb power supply.
Never thought that could be the issue, but there must be a power regulator or something like that on my nodeMCU board.
So I was draining power from the 5V pin on the nodeMCU board, thinking I was taking direct psu power....
That caused the strange behaviour.
After giving 5v power directly to the relay board, everything was working fine (stupid me)

See youtube illustration before/after:
https://www.youtube.com/watch?v=K6xgu1o1jh0