I have 22 lights that I am trying to control. Each light consists of a resistor and LED, and the manufacurer recommends running the lights at 12V. I want to be able to switch these lights on and off indivdually from a Raspberry Pi. I am aware that there are LED driver ICs, but I am trying to make a circuit out of components that I have access to.
Below is the circuit I have designed and following that is a description.
I have a 12V power supply that I will convert to 3.3V using a ld1117v33 regulator. The shift registers will run on 3.3V as the Raspberry Pi GPIOs opperate on 3.3V, and this voltage is within the tollereance of the 74hc595 shift register. The Raspberry Pi's ground pin will be tied to the ground of the 12V power supply, and the Pi will be powered by its own power supply. To control the light, there is a transistor operating as a switch. \$A_{R1}=\frac{3.3V}{1000}=3.3mA\$, which is within the tollerance per pin of the shift register.
I intend daisy chaining 3 shift registers together, and will have a transistor and resistor pair per light.
Will this circuit work as I intend? I am worried about damaging my expensive Raspberry Pi.