Hi, I’m trying to control a common-cathode RGB LED strip with an arduino. The LED strip uses 12V, so I am trying to use an NPN transistor (2N2222A) to step the voltage up to 12V, which is then used to switch the MOSFET (IRF540), since the IRF540 needs 10V at the gate to switch.
This is my problem…
When I apply 12V to the gate of the IRF540 directly from the power supply, the LED strip lights, but when I try to apply 12V from the 2N2222A, the strip does not turn on. I’m not sure if it’s a problem with how I’ve setup the 2N2222A of if something else needs to be done with the IRF540.
I’ve included my schematic and the datasheets of the transistors as attachments on this post.
Thanks in advance for any help.
IRF540.pdf (277 KB)
2N2222A.pdf (298 KB)