Welcome to Hackster!
Hackster is a community dedicated to learning hardware, from beginner to pro. Join us, it's free!
arohansenroy
Published © GPL3+

Blinking LED

In this tutorial, we will start the journey of learning Arduino UNO R3. To begin, let's learn how to make an LED blink.

BeginnerFull instructions provided41,767
Blinking LED

Things used in this project

Story

Read more

Schematics

Blinking LED

Code

code

Arduino
/***********************************************************
File name:   01_blinkingLed.ino
Description: LED blinks ON and OFF.
Website: www.quadstore.in
***********************************************************/
int ledPin=8; //definition digital 8 pins as pin to control the LED
void setup()
{
    pinMode(ledPin,OUTPUT);    //Set the digital 8 port mode, OUTPUT: Output mode
}
void loop()
{  
    digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8
    delay(1000);               //Set the delay time, 1000 = 1S
    digitalWrite(ledPin,LOW);  //LOW is set to about 5V PIN8
    delay(1000);               //Set the delay time, 1000 = 1S
} 

Credits

arohansenroy
2 projects • 2 followers
Contact

Comments

Please log in or sign up to comment.