0% found this document useful (0 votes)
50 views4 pages

Borja, Benedict C. September 21, 2020 Engr Julio B. Cas

This document describes a project that uses an Arduino board to blink 7 LEDs simultaneously. It includes a description of the project, circuit diagram, and the Arduino code. The code uses 7 pins on the Arduino and blinks each LED individually with a 100ms delay between changes.

Uploaded by

Jayven Borja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views4 pages

Borja, Benedict C. September 21, 2020 Engr Julio B. Cas

This document describes a project that uses an Arduino board to blink 7 LEDs simultaneously. It includes a description of the project, circuit diagram, and the Arduino code. The code uses 7 pins on the Arduino and blinks each LED individually with a 100ms delay between changes.

Uploaded by

Jayven Borja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Camarines Norte State College

College Of Engineering
Microprocessor Laboratory Activity # 2
Title: Multiple LED Blinking

Name: Borja, Benedict C.


Date: September 21, 2020
Teacher: Engr Julio B. Cas.

I. Description of the project activity.

This project will use 7 pins on the Arduino board to blink 7 LEDs at the same time.

II. Circuit diagram( Photo of Proteus circuit)


III. Program details.( Copy of the program )

MULTIPLE LED BLINKING

int led1 = 13;


int led2 = 12;
int led3 = 11;
int led4 = 10;
int led5 = 9;
int led6 = 8;
int led7 = 7;

void setup() {
// put your setup code here, to run once:
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);
pinMode(led6, OUTPUT);
pinMode(led7, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(led1,HIGH);
delay(100);
digitalWrite(led1,LOW);
delay(100);
digitalWrite(led2,HIGH);
delay(100);
digitalWrite(led2,LOW);
delay(100);
digitalWrite(led3,HIGH);
delay(100);
digitalWrite(led3,LOW);
delay(100);
digitalWrite(led4,HIGH);
delay(100);
digitalWrite(led4,LOW);
delay(100);
digitalWrite(led5,HIGH);
delay(100);
digitalWrite(led5,LOW);
delay(100);
digitalWrite(led6,HIGH);
delay(100);
digitalWrite(led6,LOW);
delay(100);
digitalWrite(led7,HIGH);
delay(100);
digitalWrite(led7,LOW);
delay(100);
}

You might also like