This circuit is going to have 1 input and 5 outputs to the Arduino board. Using the 10K resistor, the board will be able to read when the button is pushed and when it isn't. If the button is not pushed, then pin number 2 will essentially be at 0V. When it is pushed, it will be brought up to +5V.
The 220 ohm resistor is current limiting. LED's require around 20mA of current to light up. Using ohm's law, if the output of pin 2 is put to 5V then 5V/220 = 23mA which will light up our LED.
When you have multiple LED's turned on, they will be dimmer. If you find that your LED's are too dim, add another current limiting resistor and separate the nodes. It would be best practice for each LED to have its own 220 ohm current limiting resistor, however, since this is such a simple circuit I tried to use as few as possible for the sake of easy wiring.
|
|
Scooped by
Gumersindo Fernández
onto tecno4 June 27, 2015 1:10 PM
|
Your new post is loading...