Hello Guys in this tutorial we will see how to blink LED light using Arduino. For doing this you will need

  1. Arduino,
  2. Breadboard,
  3. Jumper Wire,
  4. 220 ohms Resistor,
  5. LED.


Do connection as shown in diagram. Then upload the code

int LED_Light = 6;
void setup() {
pinMode(LED_Light, OUTPUT);

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

digitalWrite HIGH will make LED turn on for 1000 millisecond i.e 1 second. Similarly digitalWrite LOW will make LED turn off for 1000 millisecond. It runs in a loop.

Till then keep learning keep making.

Categories: Arduino