Project Name: LED Pattern (Standard)

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 op[]  = {13, 12, 11, 10, 9, 8, 7, 6};
int point = 0;
int speed = 200;
void setup() {
  for (int i = 0; i < 8; i++) { pinMode(op[i], OUTPUT); }
}
void loop() {
  for (int i = 0; i < 8; i++) { digitalWrite(op[i], LOW); }
  digitalWrite(op[point], HIGH);
  delay(speed);
  point++;
  if (point > 7) { point = 0; }
}

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: