Wednesday, August 20, 2014

Arduino Basic Tutorial LED Blinking

This is the Basic Introduction and basic tutorial on Arduino. This about how to get started with Arduino ..
For this first tutorial we need
1) Arduino (Any kind of board is OK)
2) PC with Arduino installed.
Here's the Link for The Arduino ""

Generally all arduino is equipped with a LED in pin 13 of it. So we will be using it.

// give the pin number a name:
#define led 13

// the setup routine runs once when board resets or started
void setup() {              
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);  

// the loop routine runs over and over again forever:
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(1000);               // wait for a second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(1000);               // wait for a second

No comments:

Post a Comment