Professional Documents
Culture Documents
Blinking LED
OBJECTIVE
To understand the usage of Arduino UNO microprocessor to turn the LED on and off repeatly.
COMPONENT
Breadboard
1
Resistor
Jumper Wires
PROCEDURE
1. Connect the jumper cable to pin 13 and GND on the Arduino UNO microcontroller.
2. Then connect it to the breadboard which is the pin 13 will become positive and GND will
become negative.
2
3. The circuit is completed as figure:
4. Open the Arduino software and type the program for blinking LED:
void setup() {
pinMode(13, OUTPUT);
void loop() {
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
5. Connect the Arduino microcontroller to the computer and upload the program
6. Add multiple led to the circuit and connect it as series circuit and parallel circuit.
3
RESULT
DISCUSSION
The blinking LED are followed the program that had been upload to the microprocessor. The
program consists of two section the first one is the void setup and void loop. Void setup are for
setup our component meanwhile the void loop function is for the system to repeat itself until the
power is off. The pinMode(13, OUTPUT) means that we set the pin 13 on the Arduino
microprocessor as the output. The digitalWrite(13, HIGH); delay (1000); is a command to pin
13 will supply voltage to the circuit or in another word turn on with delay of 1 second meanwhile
4
digitalWrite(13, LOW); the “LOW” part means that the circuit will stop supplying the voltage
and turn off. When the circuit is in series the LED will produce dimmer light when there are
more LED connected together. Meanwhile in parallel circuit the LED still produce the same
Some error may occur during the experiment that is the program cannot be upload into the
Arduino microcontroller. To solve this problem we need to check whether the connected port is
same as stated on the Arduino software. Besides the connection of the circuit need to be checked
CONCLUSION
In conclusion the objective of this experiment are achieved that is to make the LED connected to
the circuit blinking with the using of Arduino UNO microcontroller to control the blinking
speed.