Monday, February 16, 2015

First Arduino Project with Program (led blinking)


arduino tutorial first arduino project led blinking. arduino microcontroller board is an open source platform for technical and non technical persons to make and develop electronics project. it is the most popular microcontroller board since it is very easy to use. there are various kind of arduino board. arduino UNO, NANO, MEGA etc are some examples of arduino microcontroller board.
 The microcontroller board contains AVR microcontroller. for example arduino UNO has atmega328
in it as a brain. the arduino microcontroller can be programmed with high level language called C language. this is also called arduino programming. this is easy to understand and develop our own idea. we can do a lot of project by arduino programming concept like electronics projects, robotic projects, electronics appliances etc, automation and security projects. but to do all of these projects, we have to start from a basic project which i want to show you a automatic led flasher project. this program can be found anywhere and is easy and helpful to understand. connect your arduino board with your computer with usb cable. open arduino ide to write a program. if you dont have arduino ide , you can download it to your computer from the link given below. /* Blink Turns on an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can control. On the Uno and Leonardo, it is attached to digital pin 13. If you're unsure what pin the on-board LED is connected to on your Arduino model, check the documentation at http://arduino.cc simply type the code below int ledpin=13;
void setup()
{ //initialize digital pin outputs
pinMode(ledpin,OUTPUT);
}
void loop()
{
digitalWrite(ledpin,HIGH);
delay(1000);
digitalWrite(ledpin,LOW);
delay(1000);
}
then select your arduino board ie, if you are using UNO select UNO and select correct com port.. then upload your program .. you will get the output.. thank you.

No comments:

Post a Comment