WELCOME BACK!!!!!! I felt there are many beginners who needs to learn Arduino so I decided to help them out by releasing a series of Arduino tutorials. The main reason for publishing this Arduino series is

  • I like publishing here.
  • Help beginners to learn Arduino effectively.

So in this Instructables, I am teaching you very simple program of blinking a led with the help of Arduino.

So let's start up the project now.If you have any doubt, please feel free leave a comment and I will be really glad to help you. Follow me if you want more Arduino tutorials.

Here is a brief intro to the Arduino uno :-
Arduino is a credit card sized micro-controller, that are used to control to control the physical world which cannot be performed by your desktop. It takes input from your input device such as sensors, switches and many more accordingly it controls the output device such as motors, etc.

The other application of Arduino is : -

-Programmable light displays that respond to music or human interaction

- Robots that use information from sensors to navigate or perform other tasks

- Unique, customisable controllers and interfaces for music, gaming, and more

- Connecting real world objects to the Internet (twitter is especially popular)

- Anything interactive

- Automating and prototyping

So lets get started....


As this is a simple project which implies demand of simple components :

• Arduino
• Led
• Breadboard
• Jumper wires

So let's build electronics now


So I am going to explain the construction in 4 simple ways :-

step 1 : Fix a led on a breadboard. Bend the cathode of the led in such a way that the cathode should be inserted in negative supply row of breadboard (fig , 1)

step 2 : One end of the resistor(220khm) is fixed to the anode of the led (fig , 2)

step 3 : The other end of the resistor is connected to the digital pin of Arduino UNO ( fig , 3)

step 4 : Now connect the Arduino to the Arduino IDE .

Now its time for coding.

Step 3: CODING :-

Now time for programming, programming a micro controller might give nightmares to some one not familiar with it, well I'm happy to say that is not true its really quite simple. I will try as simple as possible to make you understand each and every word in the given code. If u couldn't follow please comment below your problem I will be pleased to help.

step 1 : int ledpin = 2

int = this means integer in c program which is used to assign value i.e whole number but we can't assign decimal value

ledpin = this is just a variable which is not a constant.It's your wish to name it

2 = digital pin to which the led is connected

step 2 : void setup()

When we write void main(). It means that this main() program will not return value. And if we write int main(). It means this program will return an integer type value.

step 3 :

digitalWrite : it's just like a switch. if we write (ledpin , HIGH ) which means there is a supply of 5V to the ledpin which means to D2

If we write (ledpin , LOW ) which means there is a supply of 0V to the ledpin which means to D2.

step 4 : delay(1000)

Here in delay, time are defined as millisecond i.e. 1000 mS = 1 S. if we write delay means there is no changes in the supply voltage for the given delay. mean after digitalWrite(ledpin , HIGH ) delay(1000) means there is constant supply for 1second then digitalWrite(ledpin , LOW ) delay (1000) means there is no supply for 1 second.

That's it see so simple the code is. keep following for Arduino tutorial series and i will be publishing 5 series per weak.

if you have any doubts in this ibles please feel free to comment.thank you :-)

<p>I'm new to Arduino as well and I'm wondering how to add more led lights on the code part I have 16 lights that I want to add but I'm stuck at one ,don't know how to add more lights at the code any help please</p>
<p>First ever project! And even with two led, thx man!</p>
I've been looking for a good getting started guide on the internet and this is great ??
<p>can i use 1k resistor instead of 220ohm resistor?</p>
<p>I am new to Arduino and I was just wondering if I wanted to add an additional output to the code how hard would it be to do. For example if I wanted to a LED on ledpin 2 and 10 using the same code how would I go about it ?</p>
<p>int ledpin = 2;</p><p>int ledpin = 10;</p>
<p>Did you leave off the step where you connected to ground on the arduino?</p>
<p>Thank you so much, i am very new to Arduino. I start learning from you. Good job!</p>
<p>can you explain step 2 void setup() and void main() again.</p>
hello haseem it seems as if your not aware of c. basically to just understand this is how u have to start.
hi I am new with arduino , I need to do control cc 3000 wifi with arduino light on and off. I did thus project but I fall to complete the building the interface . can you help me with that
Finally someone that explained arduino instead of just jumping straight to the coding. Thanks a lot!
Great instructible! Just a tip, instead of taking a picture of the screen, take a screen clipping.

About This Instructable




More by appytechie:Program the Linkit One Using a Raspberry PI Linkit One Controlled El-wire Linkit One - Dice  
Add instructable to: