I am making a LED touch setup made by qs, but I want to make it so that the Arduino activates a transistor to turn on a string of lights that the arduino could not power on its own.
Here is the setup of the LED string. I want to replace the TIP31 in the wiring diagram with a NPN transistor (like this one). By replacing it, which pins go to which wire and do it have to add anything else to the setup? Will the new setup also work with PWM signals?