I have PIN 22 of the GPIO going to the base of the TIP-120 via a 4.7kOhm resistor. I am using a 12 volt supply (these are 12 volt LEDs). I have provided a schematic image
The code I am using is very simple. It is listed below, but the LED doesn't light up. any ideas? Is the 3.3V of the GPIO pins to little to trip the TIP-120? is my resistor value wrong?
Code: Select all
import RPi.GPIO as io
io.setmode(io.BCM)
pin = 22
io.setup(pin, io.OUT)
io.output(pin, io.HIGH)