I have a garage door/gate opener almost completed. I'm using a raspberry pi 2, SainSmart 2-ch relay, chamberlain/LiftMaster remote control. All of the software that I've written is working perfectly. The raspberry sends me a lot of info/pictures through text messages and email. I have multiple web pages that allow me to control and run scripts on the raspberry(webiopi, javascript and python) from my iphone. As you can see in the attachment, I have white and black wires attached from the gate/garage buttons on the remote control and going into the relay. From the relay I have green and blue wires going to GPIO's 17 and 27 respectively. When I press the garage button on my iPhone, the correct LED turns off on the relay for one second. When I press the gate button on my iPhone, the correct LED turns off on the relay for one second. This is what should happen since I specified in my javascript:
button = webiopi().createSequenceButton("gate", "Operate GATE", 17, 1000, "10");
button = webiopi().createSequenceButton("garage", "Operate GARAGE", 27, 1000, "10");
There is obviously more to the script, just pasting the relevant parts that tell the GPIO's how to behave.
Now, if I remove the white and black wires from the relay and cross them the gate and/or garage will operate depending on which ones I cross. So, the relay seems to be working, the remote control works by itself, but when I tell it to operate by clicking the buttons on my iPhone (while everything is plugged in) the relay activates but the gate/door does not. Can anybody here tell me where I'm going wrong? All I can think is I have something wired incorrectly on the garage remote control. I just can't figure this out.
Thanks all!!