In this instructable, I'm going to show you how to make a simple circuit/code with an arduino, which will make an LED connected to it flash from off to on, with 1-second intervals, as shown below.
This is a very easy, basic idea, however it leads to many more complicated codes and circuits.
Step 1: What You Will Need
1 x LED
3 x Cables
1 x 330 Ω Resistor
1 x Arduino board (it can be any kind, but for this instructable i used the UNO board).
1 x USB cable
1 x Computer with Arduino software installed (http://www.arduino.cc/en/Main/software
if you haven't already got it)
1 x BreadboardOptional
Step 2: Attaching the Power Cables and Resistor to the Breadboard
Firstly you will need to plug one end of a wire into the '5v' Power output on the arduino, and the other end into the positive section of the breadboard.
Then you need to plug one end of a wire into the ground ('GND') Power output, and the other end into the Negative section of the Breadboard.
Finally, you need to plug one end of the resistor from the Negative section of the Breadboard, to any horizontal line on the main section. (NOTE- It is very important to use AT LEAST a 330 ohm resistor with this circuit. If you don't, then you will almost certainly blow the LED.)
Step 3: Attach the Control Wire to the Breadboard
Attach a wire from digital port '0' on your Arduino to the hole directly above the resistor.
Step 4: Attaching Led
Now to attach the Led into the circuit. Be warned, it will NOT do anything until you have uploaded the code to the board, which is done at a later stage.
the way this is done is to put it so that each pin is next to a wire/resistor. This sounds unclear, but pictures should help
You have to put the LONGER pin next to the wire connected to the port, and the shorter pin next to the resistor.
Step 5: Plug Into Computer.
Now you need to plug the arduino board into the computer. Nothing really to say here, just make sure that you don't break anything!
Step 6: Upload the Code to the Device
I've attached the code here. All that you have to do is open it with the arduino sketch program, and click upload to device
Step 7: And... Shazam
Once the code is uploaded, if you have done everything right, the LED should flash. It will do that for as long as the device is plugged in.
Note- if the Arduino is unplugged, then plugged in again, it will still work.
Hope you enjoyed the instructable, keep looking at my profile for more arduino instructables soon.