Connecting 3-digit 7-segment display (common cathode) to stm32
Hi everyone,
I’m planning to connect a 3-digit 7-segment common cathode display to my STM32 MCU. The display will be multiplexed, and I intend to use 2N2222 NPN transistors to switch each digit (common cathode). Each segment will have its own current-limiting resistor.
For safety, I’m designing for If = 10 mA per segment instead of 20 mA. I’ve attached my resistor and transistor current calculations (see attachment). I used 3.3 V as Vcc, because GPIO Output HIGH is 3.3 V. Ignore resistor value on shematic.
Could you please check if my calculations and connection approach are correct, and confirm whether using 2N2222 transistors is suitable in this case? I’m also a bit concerned whether 3.3 V will be enough to properly drive the display.



