Breaking News

What is Arduino


Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing something online.





Example Programs:- sample program for led to turn on arduino uno board





void setup ( )
{


pinMode (13, OUTPUT); //Declaring pin 13 as output pin


}


void loop( ) // The loop function runs again and again
{

digitalWrite (13, HIGH); //Turn ON the LED
delay(1000); //Wait for 1sec
digitalRead (13, LOW); // Turn off the LED
delay(1000); // Wait for 1sec (1000 milli seconds)

}

No comments