Step 2: Wiring the LEDs and Buttons
For this step you will need the Arduino, your LEDs, both types of resistors, buttons, and wire.
Follow the instructions on the images for details on connections (You'll have to click on them, or just continue reading). If it is hard to understand, I apologize in advance; just comment and I will try my best to help you solve your problems.
You will need at least 4 tactile buttons and they will need to be placed on the middle of the breadboard spaced out. Then the buttons need to be connected to the 5V rail on the breadboard with regular hookup wire. Next to this pin, on the button, a 10K Ohm resistor needs to connect the button to the GND rail. Then directly opposite the GND pin a jumper, or regular wire, needs to be connected to the correct pins on the Arduino. The buttons are out of order as to placement and pins. They need to be placed, not in any particular order, on pins 4, 7, 8, and 13. Then you are done with the button portion of the setup!
For the LEDs I chose to use three red, and one blue and one green. These need to be placed in the correct order for the program to work!! Connect each LED's anode (short lead) to the GND rail on the breadboard. Then connect each one's cathode to a 1K Ohm resistor and connect it to the opposite side of the breadboard. The resistor's opposite lead needs to be connected to either a jumper or any other wire. Then this wire must be connected, IN ORDER FROM LEFT TO RIGHT, to pins 3, 5, 6, 9, and 10. Each of those pins is a PWM pin, meaning Pulse Width Modulation, this will allow the LEDs to be controlled in many different ways.
Next, the 5V, red, rail on the breadboard needs to be connected to the 5V pin on the analog side of the Arduino. And the GND, blue, rail needs to be connected to the Arduino's GND pin on the digital side.