Can an Arduino turn on multiple leds at the same time?. I want make a home made lamp with several less controlled with an Arduino UNO light sensor and i already have the light sensor, also i know how to turn on one led.
But do not know if i can power several less.
Any advise?, thanks in advance.
Best Answer
The Atmega328 chip used in many Arduinos has a limit on the amount of current it can provide directly. You can find this in the datasheet section 28.1 page 313.
simulate this circuit – Schematic created using CircuitLab
If you are using the Atmega IO pins to turn on transistors (FETs or BJTs) and use the 5V or 3.3V supply to provide current to the LEDs through these transistors then there is no problem with the Atmega328 current limits.
simulate this circuit
FET circuits are simpler. For larger numbers of LEDs it may be better to use a suitable LED-driver IC instead of using large numbers of transistors.
The voltage regulator on the Arduino board that is providing regulated 5V or 3.3V power will itself have a limit which may also prevent you using it to drive a large number of LEDs (or a lower number of high-power LEDs).