Hi, I purchased a 5V Single Channel Relay Module 10A (SKU: CE05137) and am trying to get it working o a raspberry pi 3. I connected 5v from raspberry to VCC, GND to GND and GPIO 17 to IN.
I then ran a program that turned it on and off but it just comes on. I replace the relay with a LED and ran the program and the LED turned on and off as expected.
Any help please
Program is below
import time
import RPi.GPIO as GPIO
GPIO.setwarnings(False)
GPIO.setmode(GPIO.BCM)
GPIO.setup(17, GPIO.OUT)
while True:
GPIO.output(17, GPIO.LOW)
time.sleep(10)
GPIO.output(17, GPIO.HIGH)
time.sleep(10)
GPIO.cleanup()