Project Name: LED Pattern

Aim of the project:  The Arduino board has one built-in on digital pins, Start creating Logic’s.

Component:

  1. Arduino
  2. Breadboard
  3. Led X 2
  4. Jumper Wires

Circuit Diagram:

Code:

int ledPin = 13;
int ledPin1 = 12;
int ledPin2 = 11;
int ledPin3 = 10;
int ledPin4 = 9;
int ledPin5 = 8;
int ledPin6 = 7;
int ledPin7 = 6;
/*

*/

void setup() {
  pinMode(ledPin, OUTPUT);
  pinMode(ledPin1, OUTPUT);
  pinMode(ledPin2, OUTPUT);
  pinMode(ledPin3, OUTPUT);
  pinMode(ledPin4, OUTPUT);
  pinMode(ledPin5, OUTPUT);
  pinMode(ledPin6, OUTPUT);
  pinMode(ledPin7, OUTPUT);
}

void loop() {
  digitalWrite(ledPin, HIGH);
  delay(50);
  digitalWrite(ledPin, LOW);
  delay(50);
  digitalWrite(ledPin1, HIGH);
  delay(50);
  digitalWrite(ledPin1, LOW);
  delay(50);
  digitalWrite(ledPin2, HIGH);
  delay(50);
  digitalWrite(ledPin2, LOW);
  delay(50);
  digitalWrite(ledPin3, HIGH);
  delay(50);
  digitalWrite(ledPin3, LOW);
  delay(50);
  digitalWrite(ledPin4, HIGH);
  delay(50);
  digitalWrite(ledPin4, LOW);
  delay(50);
  digitalWrite(ledPin5, HIGH);
  delay(50);
  digitalWrite(ledPin5, LOW);
  delay(50);
  digitalWrite(ledPin6, HIGH);
  delay(50);
  digitalWrite(ledPin6, LOW);
  delay(50);
  digitalWrite(ledPin7, HIGH);
  delay(50);
  digitalWrite(ledPin7, LOW);
  delay(50);
  digitalWrite(ledPin7, HIGH);
  delay(50);
  digitalWrite(ledPin7, LOW);
  delay(50);
  digitalWrite(ledPin6, HIGH);
  delay(50);
  digitalWrite(ledPin6, LOW);
  delay(50);
  digitalWrite(ledPin5, HIGH);
  delay(50);
  digitalWrite(ledPin5, LOW);
  delay(50);
  digitalWrite(ledPin4, HIGH);
  delay(50);
  digitalWrite(ledPin4, LOW);
  delay(50);
  digitalWrite(ledPin3, HIGH);
  delay(50);
  digitalWrite(ledPin3, LOW);
  delay(50);
  digitalWrite(ledPin2, HIGH);
  delay(50);
  digitalWrite(ledPin2, LOW);
  delay(50);
  digitalWrite(ledPin1, HIGH);
  delay(50);
  digitalWrite(ledPin1, LOW);
  delay(50);
  digitalWrite(ledPin, HIGH);
  delay(50);
  digitalWrite(ledPin, LOW);
  delay(50);
  
}

Runs Steps:

These are the steps you need to follow in order to be up and running:

  1. Get an Arduino board
  2. Download the Arduino environment
  3. Install the USB drivers
  4. Connect the board
  5. Upload a program

Video: