Introduction: 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.

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 Breadboard

Optional
Breadboard/Circuit-board Holder.

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.

Comments

author
iTECHKING made it!(author)2016-10-29

Hey,

I am using Arduino with RTC to operate the lights of my home.

I want at 10 PM all my lights should OFF and at 6 AM same should be ON.

I have completed everything but only unable to tell Arduino to read time from RTC to operate lights.

Can it be done by reading Arduino Serial Monitor? If yes, then HOW.

Also the other possible method to do same through Arduino.

Thanks.

author
nickcon12 made it!(author)2016-09-03

There is no need to use the positive power rail for 5v from the arduino since you are just using the power from the digital pin.

author
pro786feature made it!(author)2016-04-19

What is the code

author
Cyanide41 made it!(author)2016-03-20

nice easy tutorial and a great intro to arduino for someone who has never used it before. As someone points out below, you don't need a wire going from 5v to the bread board. Also the directions say you should use at least a 330ohm resistor but I used 220ohm based on this article from ararduino: https://www.arduino.cc/en/Tutorial/Blink

20160319_183403.jpg
author
ChristopherZ made it!(author)2014-10-11

Hi,

I'm just starting out with an Arduino and I did this project, but can't figure something out.

It seemed to me that the positive from the 5v to the breadboard doesn't really go anywhere, and I confirmed this by removing it. The LED still blinks. I'm assuming the circuit is completed by the jumper to the digital pin 0.

So, why the 5v jumper to the breadboard?

author
Cyanide41 made it!(author)2016-03-20

You most certainly do not need a wire running from the 5v to the breadboard. The voltage you need is coming out of the digital I/O pin.

author
Fakhir768 made it!(author)2015-12-13

Very Nice Learning

author
captainmo69 made it!(author)2015-08-08

thanks for the tutorial. it was my first.

temp_801442635.jpg
author
MikeB33 made it!(author)2015-06-15

How would that work with the nano on the breadboard? I know that the Nan gets its power from the USB but what about all the plugs that the Nano is sitting in on the breadboard? I assume they are dead?

author
angela.villareal made it!(author)2015-03-19

I'm a 27 years old girl, look what I did! It's never too late to learn anything! Your tutorial was great!

11073231_10152722339017061_429194990_o.jpg
author
Lochlan made it!(author)2014-09-17

Hi, where did you buy that bread board from?

author
duston.courtney made it!(author)2014-08-27

Here is a super easy Arduino breadboard:

http://www.dcoptimum.com/arduino-beadboard-schematic/

author
dropthetrends made it!(author)2014-04-06

Great tutorial!!
I'm new to all this stuff and before I jump into programming the Arduino I'd like to start by learning a little with analog circuits.


Can I use the Arduino purely as a power supply for my breadboard?

author
hnvasa made it!(author)2014-01-22

Hello, these are some of the great tutorials on starting with Arduino...
I have some other tutorials on Arduino that might be helpful:

http://www.zseries.in/embedded%20lab/arduino/

author
brandegor made it!(author)2012-03-02

Perfect for me and I'm so danged glad you posted this. If you have time, keep going! This is incredibly helpful. Thanks again!

author
Phil+B made it!(author)2011-11-19

I know there are a lot of Instructables on Arduino, but most of them begin beyond a beginner level. Arduino is very new and unfamiliar to me. I appreciate your very basic approach for a "newbie." I look forward to anything like a step-by-step tutorial for someone not currently involved with Arduino. Right now my questions involve, "What is it?" and "Why would I want to use it?" If I were to use Arduino, I would want it to do some useful and necessary task best done by it. I would not be interested in "cool" for the sake of "cool." Thanks.

author
fergal made it!(author)2011-11-19

That was my original idea, because when I started using Arduino, I couldn't find any tutorials on basic ideas, and I got very unnerved, So i made this tutorial for beginners, and am looking at making more. Thanks for the feedback!

About This Instructable

180,222views

36favorites

License:

More by fergal:Basic Arduino Tutorials : 01 Blinking LED
Add instructable to: