Re: GPIO not switching..code issue?
Posted: Mon Jan 13, 2020 4:22 am
I’ve been playing with the code to see if there is some reason why the gpio isn’t going low when it should be. So ignor the fact that they do the same thing, I’m just try to get a relay switching at the moment.
I have 4 relays, 3.3v Like these- https://tinyurl.com/sya845m
One each for the four buttons on a remote control that need operating, up, down, select and stop. I want to say to alexa ‘blinds up’, blinds down to fully open and close respectively. (I also want to say ‘light block’ to set the blinds to stop at certain positions when I get that far.)
I have the vcc of the relays going to the 3.3v pins on the lolin nodemcu board, same with the ground and the trigger pin going to the gpio pins on the board.
The relays all light up as if appropriately powered (the red led lights up), and if I set the initial status of the gpio as LOW rather than HIGH, they all trigger fine!
Most odd, no idea what’s going on.
Cheers
Steve
I have 4 relays, 3.3v Like these- https://tinyurl.com/sya845m
One each for the four buttons on a remote control that need operating, up, down, select and stop. I want to say to alexa ‘blinds up’, blinds down to fully open and close respectively. (I also want to say ‘light block’ to set the blinds to stop at certain positions when I get that far.)
I have the vcc of the relays going to the 3.3v pins on the lolin nodemcu board, same with the ground and the trigger pin going to the gpio pins on the board.
The relays all light up as if appropriately powered (the red led lights up), and if I set the initial status of the gpio as LOW rather than HIGH, they all trigger fine!
Most odd, no idea what’s going on.
Cheers
Steve