Maverick Den STEM Robotics Pvt. Ltd.
Email: info@maverickden.com
Contact No. : 7715916683 (India)
60123250147 (Malaysia)

Start Your Career with STEM Based Robotics (In 6/12 Weeks Internship)

SEQUENCE OF LED

In this tutorial we will teach you how to Sequence  Led with Arduino UNO / Nano.

COMPONENTS USED :

SR NO COMPONENT NAME QUANTITY
1 Arduino Board(Uno or Nano) 1
2  LED’S (5mm) 3
3 BreadBoard 1
4 Resistor (220 ohm) 3
5 Jumper Cable (male to male) 1 set

 

Schematic Diagram :

Source Code:

void setup() {

// put your setup code here, to run once:

pinMode(5,OUTPUT);

pinMode(7,OUTPUT);

pinMode(13,OUTPUT);

}

 

void loop() {

// put your main code here, to run repeatedly:

digitalWrite(7,HIGH);

delay(1000);

digitalWrite(13,HIGH);

delay(1000);

digitalWrite(5,HIGH);

delay(1000);

 

digitalWrite(5,LOW);

delay(1000);

digitalWrite(13,LOW);

delay(1000);

digitalWrite(7,LOW);

delay(1000);

}

Video: