I've been tinkering with common anode LED 4 digit 7 segment display with success, but one thing bothers me - I know I should use a transistor to drive the common anode pin of the display, because you shouldn't use GPIO pins to drive large current consuming things, but what about using transistor on the individual segment pins, if I use 5V to drive the display?
Here's the simplified version with only one digit:
The GPIO far to the right when switched high, powers the base of the NPN transistor through 10k ohm resistor, which passes through 5V to power the common anode of the display. Then I set low appropriate other GPIOs to turn on respective display segments (connected throught 330 ohm resistor).
But, I read somewhere, that you shouldn't connect 5V to 3.3V GPIO pins. That means, shouldn't I also use transistors to drive the individual segments? And, isn't that too much for the raspberry pi, to sink 72mA if all segments are turned on? (7 segments + dp, 9mA through each, which gives us 8*9mA=72mA). The documentation says that the total current sink/draw from all GPIOs shouldn't exceed 50mA.
And sorry for all stupid mistakes and assumptions I might have done there, I'm newbie at electronics ;]