Relay Wiring - notkevinjohn/PiGarageDoor GitHub Wiki

The Wiring of the Relay to the Raspberry Pi is very simple. We connect the power (VCC) pin to the 3.3V power pin on the Raspberry Pi (pin 1). We connect the ground (GND) pin to the ground pins of the Raspberry Pi (pin 6). Finally, we attach the input pin, which will be driven either high or low to control the relay to one the Raspberry Pi's GPIO pins (pin 17).

If you've already written the Python code to drive this, you can execute it now by logging into the Pi and typing:

./garageDoor.py

You should hear a very satisfying CLICK sound and the LED should light up.