Written Report 1
Written Report 1
EC#1
WRITTEN REPORT 1
Submitted by:
Apalit, Marius Ervie
Submitted to:
Engr. Vincent Raul Esperenza
Subject-Section:
EC3-M
ACTIVITIES
I.OBJECTIVES
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
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).
3. Put the LED anode to e8 and cathode to e7 and turn on the power supply
IV.PROCEDURES
1. Prepare the Arduino UNO r3 and connect the jumpers to the bread board
3. Put the push button and LED to the bread board and open the power supply
IV.PROCEDURES
1.Prepare the Arduino UNO r3, connect the jumpers and push buttons to the bread board
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
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
3. Put the code in Arduino IDE and set the designated delay
V.RESULTS
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
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)
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.
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.