Different methods of controlling multiple LED's

I am currently working on a project in which i want to light up multiple LEDS with the constraints of using the minimum amount of pins and not using a led matrix, i have been looking for different methods to do this; so far Charlieplexing or using transistors and relays seems to be the best for my needs what do you guys think is the most efficient in terms of pin to led ratio

transistors example https://www.youtube.com/watch?v=9BM-itpwLyA

Charlieplexing example: https://www.youtube.com/watch?v=-cOvCoulvUc


Why do you say

not using a led matrix

Did you mean not using a pre-made rectangular led matrix (eg. 8x8 or 5x7)?

Or did you mean not arranging the leds electrically in a matrix, even if it does not look physically like a matrix?

If the latter, are you sure your youtube examples are not arranged in a matrix, even if they don't look like it?

There are many chips that will drive many leds with a few Arduino outputs. They mostly arrange the leds in a matrix electrically speaking, but you can lay them out physically in any form you want.

Tell us more about what you are trying to do.


hello yes i do not want a pre made matrix I basically want to put the less in an arrow shape > and make them blink all at the same time i just want to use the most efficient method of lighting multiple leds with minimum pins

and make them blink all at the same time

Just connect them to a transistor in parallel with their own current limiting resistor:-
If you only have 5V then just have one LED in series instead of three.