Electronic – arduino – Multiplexing with or without transistors

arduinoledmultiplexer

I'm doing something in where I need to multiplex 6 7-segment displays. About doing it, I found things like this:

enter image description here

And things in where the same thing is done without the transistors, just by connecting the cathodes directly to pins of the microcontroller. What's the difference? When should I need the transistors? Is it because the microcontroller couldn't handle current for all the LEDs?

I'm using an Arduino with an ATMEGA328, if that's needed for something.

Best Answer

Many MCUs won't handle the current for seven segments unless a transistor is used. You might be OK with the AVR (40 mA maximum per output, IIRC), but you need to check it, and the total current.