0% found this document useful (0 votes)
22 views12 pages

Written Report 1

Uploaded by

Marius Ervie
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)
22 views12 pages

Written Report 1

Uploaded by

Marius Ervie
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/ 12

Technological University of the Philippines

Ayala Boulevard, Ermita, Manila


College of Engineering
Mechanical Engineering

EC#1

WRITTEN REPORT 1

Submitted by:
Apalit, Marius Ervie
Submitted to:
Engr. Vincent Raul Esperenza

Subject-Section:
EC3-M
ACTIVITIES
I.OBJECTIVES

A) Using Arduino Uno to turn an LED ON.


B) LED with Push Button (LED will turn on if the push button is pressed)
C) LED with Push Button in series (LED will turn on if and only if two push buttons are
pressed simultaneously)
D) LED with Push Button in parallel (LED will turn on if the first push button is pressed
and the second push button are not pressed, or vice versa)
E) Blinking Light using Arduino (LED will blink at a specified delay time)

II.MATERIALS

A) Bread Board
B)Jumper M to M
C) Arduino UNO R3
D) Push button
E) Resistor 10k ohms
F) LED

III.THEORY

The concept of illuminating an LED with an Arduino revolves around grasping


how the Arduino interacts with the LED and supplies it with power. The Arduino serves
as a programmable micro-controller board capable of managing electronic devices like
LEDs.

To illuminate an LED, you initially connect it to one of the Arduino's digital output
pins. You can then toggle this pin between HIGH (1) and LOW (0) states to switch the
LED on or off. Furthermore, you need to establish connections between the LED and
the Arduino's power supply and ground pins to ensure it receives the necessary power.
It's crucial to verify that the LED's current requirements don't surpass the Arduino's
capacity, as it can only provide a limited amount of current. By crafting a straightforward
program using the Arduino IDE, you gain control over the digital output pin linked to the
LED, enabling you to illuminate it. This can involve utilizing functions like digital Write()
to set the pin to HIGH or LOW, or employing analogWrite() to adjust the LED's
brightness through pulse width modulation (PWM).

In essence, the theory behind illuminating an LED with an Arduino encompasses


understanding how to establish connections between the LED and the Arduino's digital
output pins, power supply, and ground, as well as mastering the creation of a program
to regulate the LED's status.
IV.PROCEDURES

A) Using Arduino Uno to turn an LED ON.


1. Prepare the Arduino UNO r3 and connect the jumpers to the bread board

2.Connect the resistors’ terminal 1 to d7 and terminal 2 to d12

3. Put the LED anode to e8 and cathode to e7 and turn on the power supply
IV.PROCEDURES

B) LED with Push Button (LED will turn on


if the push button is pressed)

1. Prepare the Arduino UNO r3 and connect the jumpers to the bread board

2. Connect the resistor to breadboard

3. Put the push button and LED to the bread board and open the power supply
IV.PROCEDURES

B) LED with Push Button (LED will turn on


if the push button is pressed)

1.Prepare the Arduino UNO r3, connect the jumpers and push buttons to the bread board

2. Connect the jumper to breadboard

3. Put the resistor to positive and connect the terminal in line to the first terminal of the push
button and LED to the bread board. Turn on the power supply
IV.PROCEDURES

D) LED with Push Button in parallel (LED will turn on if the first push button is pressed and
the second push button are not pressed, or vice versa)

1.Prepare the Arduino UNO r3, connect the jumpers and push buttons to the bread board

2. Connect the resistor to breadboard

3. Put the led and turn on the power supply


IV.PROCEDURES

E) Blinking Light using Arduino (LED will blink at a specified delay time)

1. Prepare the Arduino UNO r3 and connect the jumpers to the bread board

2.Connect LED and resistor to the breadboard

3. Put the code in Arduino IDE and set the designated delay
V.RESULTS

A) Using Arduino Uno to turn an LED ON.

B) LED with Push Button (LED will turn on if the push button is pressed)

C) LED with Push Button in series (LED will turn on if and only if two push buttons are
pressed simultaneously)
V.RESULTS

D) LED with Push Button in parallel (LED will turn on if the first push button is
pressed and the second push button are not pressed, or vice versa)

E) Blinking Light using Arduino (LED will blink at a specified delay time)
V.RESULTS

CODES

1.void setup() {
2. // put your setup code here, to run once:
3.pinMode(7,OUTPUT);
4.
5.
6.Void loop() {
7. // put your main code here, to run repeatedly:
8.digitalWrite(7,HIGH);
9.delay(500);
10.digitalWrite(7,LOW);
11.delay(500);
12.}

ACTUAL CIRCUIT

A) Using Arduino Uno to turn an LED ON.

B) LED with Push Button (LED will turn on


if the push button is pressed)
V.RESULTS

C) LED with Push Button in series (LED will turn on if and only if two push buttons are
pressed simultaneously)

D) LED with Push Button in parallel (LED will turn on if the first push button is pressed
and the second push button are not pressed, or vice versa)

E) Blinking Light using Arduino (LED will


blink at a specified delay time)
VI.OBSERVATION AND CONCLUSION

OBSERVATION:
In the first experiment, we focused on a basic task: lighting up an LED using the
Arduino Uno. This served as a simple introduction to setting up hardware and
understanding programming commands. Witnessing the LED illuminate in response to
our programmed instructions laid the groundwork for more advanced explorations.

Moving on to the second experiment, we introduced a push button into the mix.
This added an interactive element to our LED control setup. With just a press of the
button, we could activate the LED, showcasing how input devices integrate into
electronic systems. Seeing how our physical interaction directly influenced the LED's
behavior reinforced the concept of user-driven control.

Experiment three took us deeper into the world of button activation. By wiring two
push buttons in series, we created a condition where the LED would only light up if both
buttons were pressed simultaneously. This setup provided insights into logical gating
mechanisms and the importance of conditional logic in electronic systems.

In contrast, experiment four explored parallel button activation. Here, the LED
responded to combinations of button inputs. Whether one button was pressed while the
other remained untouched, or vice versa, the LED reacted accordingly. This experiment
highlighted the versatility of the Arduino Uno in handling various control scenarios.

Finally, in experiment five, we ventured into temporal dynamics by creating a


blinking LED pattern. By adjusting the delay time between LED states, we orchestrated
rhythmic blinking sequences. This experiment delved into the temporal aspect of LED
control, emphasizing the significance of time-based programming in crafting dynamic
visual effects.
CONCLUSION:

Through the practical experimentation, we explore the field of LED control with
the Arduino Uno, examining the interaction among hardware elements, coding
principles, and timing mechanisms. Each experiment yields valuable understandings in
designing circuits, applying logical thinking, and fostering creativity. As we expand the
limits of Arduino Uno capabilities, our passage of exploration advances, paving the way
for ongoing experimentation and ability in the electronics.

You might also like