You are on page 1of 2

Camarines Norte State College

College Of Engineering
Microprocessor Laboratory Activity # 1
Title: LED ON and OFF Simulation

Name: Borja, Benedict C.


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

I. Description of the project activity.


Turns on an LED on for one second, then off for one second, repeatedly
To turn on an LED, the Arduino needs to send a HIGH signal to one of it’s pins. To turn off the LED, it needs to send a LOW
signal to the pin. You can make the LED flash by changing the length of the HIGH and LOW states.

The LED should blinking on and off at a rate of 1000 milliseconds (1000 milliseconds = 1 second)

II. Circuit diagram( Photo of Proteus circuit)


III. Program details.( Copy of the program )

LED BLINK

int ledPin = 13;

void setup() {
// put your setup code here, to run once:
pinMode(ledPin, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledPin, HIGH);
delay(1000);
digitalWrite(ledPin, LOW);
delay(1000);
}

You might also like