Introduction: GETTING STARTED WITH ARDUINO #1

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

Step 1: ELEECTRONICS :-

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



• Arduino
• Led
• Breadboard
• Jumper wires


So let's build electronics now

Step 2: BUILDING ELECTRONICS :-

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

Comments

author
Samutai (author)2015-12-02

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

author
FabrizioP made it! (author)2015-10-23

First ever project! And even with two led, thx man!

firstproject.jpg
author
Jeremy the robot (author)2015-10-10

I've been looking for a good getting started guide on the internet and this is great ??

author
GurpreetG (author)2015-09-19

can i use 1k resistor instead of 220ohm resistor?

author
alviss2002 (author)2015-09-03

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 ?

author
appytechie (author)alviss20022015-09-06

int ledpin = 2;

int ledpin = 10;

author
ScottD8 (author)2015-08-17

Did you leave off the step where you connected to ground on the arduino?

author
mddy (author)2015-08-09

author
mddy (author)2015-08-09

author
mddy (author)2015-08-09

author
amordeeh (author)2015-08-07

Thank you so much, i am very new to Arduino. I start learning from you. Good job!

author
hasem123 (author)2015-07-27

can you explain step 2 void setup() and void main() again.

author
naman159 (author)hasem1232015-07-31

hello haseem it seems as if your not aware of c. basically to just understand this is how u have to start.

author
fadimore (author)hasem1232015-07-27

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

author
bsaville1 (author)2015-07-31

Finally someone that explained arduino instead of just jumping straight to the coding. Thanks a lot!

author
Treker2 (author)2015-07-27

Great instructible! Just a tip, instead of taking a picture of the screen, take a screen clipping.

About This Instructable

6,832views

247favorites

License:

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