November 2011
Intermediate to advanced
392 pages
13h 3m
English
An Arduino Uno can light up about 20 LEDs individually. In the absence of a driver circuit, as many LEDs as you want can be driven directly by the Arduino's I/O pins, as long as the total power drawn remains less than 200mA. This can be guaranteed by limiting the current to each LED to 10mA or less, or by limiting the duty cycle of the LEDs in software so that no more than 200mA is drawn at any given time.
Here is a simple circuit that connects 20 LEDs in the form of a bar graph, implemented as an Arduino shield. See Figure 8-10 for the schematic and Figure 8-11 for an example PCB layout.
Figure ...
Read now
Unlock full access