I am having a bit of an issue with the current setup. Im trying to run multiple solenoid valves of a 16 channel relay optocoupler (http://www.ebay.com.au/itm/16-Channel-12V-Relay-Shield-Module-wiht-optocoupler-LM2576-Power-supply-Arduino-/141815612900?_trksid=p2141725.m3641.l6368). I am using a 19VAC 3 amp power supply. Currently my issue is that i can't seem to get the relay to activate when controlled by the relay. I can hear the relay module tick when i run my program, but the solenoid dosen't open. When i run the solenoid directly from the power source it works. Anyone have any idea where i went wrong?
#!/usr/bin/python
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
# init list with pin numbers
pinList = [2]
# loop through pins and set mode and state to 'low'
for i in pinList:
GPIO.setup(i, GPIO.OUT)
GPIO.output(i, GPIO.HIGH)
# time to sleep between operations in the main loop
SleepTimeL = 2
# main loop
try:
GPIO.output(2, GPIO.LOW)
print "ONE"
time.sleep(20);
GPIO.cleanup()
print "Good bye!"
# End program cleanly with keyboard
except KeyboardInterrupt:
print " Quit"
# Reset GPIO settings
GPIO.cleanup()
# find more information on this script at
# http://youtu.be/oaf_zQcrg7g
