Electrical – RGB LED common cathode with 3.3V GPIO +single transistor

analogcircuit-designled

You can control a RGB common anode like this with only one transistor and 3.3V GPIO sources:

enter image description here

How can you do this with a common cathode LED array using only one transistor per LED and 3.3V GPIOs?

The forward voltage of the LEDs are 3.6V

Best Answer

The temptation is to invert the circuit but this will fail.

enter image description here

Figure 1. The protection diodes on most logic chips creates a sneak-path to positive supply. This will keep the PNP transistor permanently turned on and may damage the chip. Source: High-side fail.

You need to add a second transistor.

enter image description here

Figure 2. To drive a high-side transistor from a GPIO pin we need a level translator. An NPN transistor does the job nicely.

There is a little more information in my article in the link.