Your First Arduino Program. LED BLINK

As soon as you buy your Arduino , The first thing you need to do is installing their Software from this link   http://arduino.cc/en/Main/Software.

Now when you have an Arduino Board , Jumper Wires , Prototyping board and an LED .
Don't Wait!! . Make the connections as show here.



GND of Arduino goes to longer pin of your LED.
Pin 13 of Arduino goes to smaller pin of your  LED.

Write the following code in your Arduino Software.

int led = 13;
void setup()
{
 pinMode(led,OUTPUT);
}
void loop()
{
 digitalWrite(led,HIGH);
 delay(1000);
 digitalWrite(led,LOW);
 delay(1000);
}

When you are done writing this code , Connect the Arduino to your Computer . And press the upload button.



Comments

Post a Comment