Q:

Simple Relay Control Pi Zero W

I have a Pi Zero W and a Velleman VMA406. Wired like this
Pi Pin 2 (5v) - Relay "+"
Pi Pin 6 (GND) - Relay "-"
Pi Pin 11 (GPIO 17) - Relay "S"
When I run the following script I see a faint flicker on the Relay LED but I do not here the relay "Click"
#!/usr/bin/env python

import time
import RPi.GPIO as GPIO

GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
GPIO.output(17, GPIO.LOW)

time.sleep(0.25)

GPIO.output(17, GPIO.HIGH)
GPIO.cleanup()

When I "jumper" across the "+" and the "S" on the relay I here the relay click. But I cannot seem to get my code to "click" the Relay. I am not super familiar with the python program and it was copied from another site. Is my problem in the code or in the wiring?

A:

The relay was designed to be operated with a +5V signal, according to its specification.  The Raspberry Pi GPIO outputs 3.3V signals.
So, this relay is not usable as is with the Raspberry Pi.  You will need to either create an external transistor circuit that will control a 5V signal, or use a different relay board.

