Hi,
I am using raspberry pi 3 and an external source of 12v to pwm RGB LED strip using transistor PN2222 6E .But when I connect the external source to transistor and LED is remains ON all the time irrespective of the GPIO output connect to base of transistor and emitter grounded and collector with LED. Also I common grounded extrernal source with raspberry pi. Does anyone know what is the problem.