Basic Arduino Tutorials : 01 Blinking LED

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.

Blinking LED

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.)

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.

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!

[box color=”#985D00″ bg=”#FFF8CB” font=”verdana” fontsize=”14 ” radius=”20 ” border=”#985D12″ float=”right” head=”Major Components in Project” headbg=”#FFEB70″ headcolor=”#985D00″]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 Breadboard

Optional
Breadboard/Circuit-board Holder.[/box]

For more detail: Basic Arduino Tutorials : 01 Blinking LED


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top