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

Microprocessor Lab 3 - Blink

The document outlines a laboratory exercise for programming an Arduino Uno to blink an LED. It includes the necessary materials, connection procedures, and programming code, as well as a conclusion reflecting on the learning experience. The exercise emphasizes hands-on experience with electronic components and problem-solving skills in programming and circuit troubleshooting.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views4 pages

Microprocessor Lab 3 - Blink

The document outlines a laboratory exercise for programming an Arduino Uno to blink an LED. It includes the necessary materials, connection procedures, and programming code, as well as a conclusion reflecting on the learning experience. The exercise emphasizes hands-on experience with electronic components and problem-solving skills in programming and circuit troubleshooting.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

MICROPROCESSOR

BLINK USING ARDUINO UNO

NAME: DATE:FEBRUARY 25,2025


GEORGE ANGELO A. OLIVER
BERT JANSON F. MACARAEG
COURSE & YEAR:BSCPE 3RD YEAR LABORATORY: # 3

Blink, will turns an LED ON for one second, then OFF for one second, repeatedly. it is attached to
digital pin 13 or other pins.

Activities:

1.​ Program Codes from the Sketch

void setup() {​ ​ ​ //EXECUTE ONE TIME ONLY


pinMode(13, OUTPUT);
}
//EXECUTE OVER and OVER AGAIN
void loop() {
digitalWrite(13, HIGH); ​ // turn the LED on (HIGH is the voltage level)
delay(1000); ​​ // wait for a second
digitalWrite(13, LOW); ​ // turn the LED off by making the voltage LOW
delay(1000); ​​ // wait for a second
}

OR

delay(200); ​ ​ // Faster Blink


delay(300);
delay(500);

​ OUTPUT: LED
2.​ Material
●​ LED, Long Leg (+), Short Leg (-)
●​ Resistor, 220 ohms, 300 ohms, 1k ohms
●​ Arduino Uno Board
●​ Breadboard
●​ Wire connector
●​ USB cable
3.​ Connection
●​ Put LED into Breadboard
●​ Connect resistor in (-) part of LED
●​ Connect resistor into any GROUND of Arduino Uno
●​ From Arduino Uno Pin 13, connect it into (+) part of LED
4.​ Procedures
●​ A simple Blink laboratory between the Laptop and Arduino Uno via USB cable.
●​ Open the Arduino Uno IDE Software
●​ Connect the Arduino Uno
●​ Write the Program Codes entitled “Blink”
●​ Click the verify
​ If Error, double check the codes
​ No Error, proceed the procedures
●​ Click the upload (to run your work)
●​ Every time you change in some program codes, click again the UPLOAD.

NOTE:
1
Department of Computer Engineering
MICROPROCESSOR
●​ Every time you fix your device, Disconnect the USB cable for safety.

5.​ Take a photo of the finished connection between the Arduino Uno and Breadboard.
6.​ Take a photo of the running Arduino Uno device
7.​ Take a photo of the finished connection between the Arduino Uno, Breadboard and yourself.
8.​ Take a short video while running the Arduino Uno and other device.
9. Save in PDF File and Upload in Google Classroom.

NOTE:
●​ To Check the LED If it is working properly
​ Remove the wire from Digital PIN and Put into 5Vdc
​ If it is working, it will TURN-ON, otherwise it is defective

Conclusion

We successfully completed the Blink laboratory exercise, which demonstrated the basic functionality of an
Arduino Uno board in controlling an LED. By writing and uploading the Blink program code, we observed
the LED turning ON and OFF repeatedly, with a one-second delay between each state. This hands-on
experience reinforced our understanding of the Arduino platform and its applications in interactive
electronic systems.

Throughout this exercise, we gained a deeper understanding of the Arduino's capabilities and limitations.
We verified that the LED was working properly by connecting it to the 5Vdc pin, and we ensured that the
circuit was set up correctly using a breadboard and jumper wires. This attention to detail helped us to
identify and troubleshoot potential issues, and we were able to successfully complete the exercise.

Reflection

As computer engineering students, we gained valuable experience in programming and interfacing with
electronic components using the Arduino Uno board. Through this activity, we learned how to write simple
program codes, verify and upload them to the Arduino board, and troubleshoot common issues.

We also developed problem-solving skills and learned to work with common electronic components, such
as LEDs and resistors. By following the step-by-step procedure and taking photos and videos of our
setup, we documented our progress and reflected on our learning experience. This exercise helped us to
develop our critical thinking skills, as we had to analyze the circuit and identify potential issues.
Additionally, we learned the importance of patience and persistence in debugging and troubleshooting
electronic circuits.

2
Department of Computer Engineering
MICROPROCESSOR

RESULT:

3
Department of Computer Engineering
MICROPROCESSOR

4
Department of Computer Engineering

You might also like