Professional Documents
Culture Documents
“I affirm that I have not given or received unauthorized help on this activity and that this work my own”
I. OBJECTIVES
→To make the on-board LED of the Arduino board or an external LED blink.
→To Apply serial communication between the Arduino and the student’s computer via USB connection.
→To read analog data from the physical world.
→To use pulse width modulation (PWM) to vary voltage input within a circuit.
→To create and upload a program to microcontroller using the C programming language.
→Control electronic components using a microcontroller.
II. RESULTS AND SCREENSHOTS OF OUTPUTS
A.) Blinking a Light Emitting Diode
CODE:
OUTPUT:
B.) Applying Pulse Width Modulation
CODE:
OUTPUT:
C.) Digital Serial Communication
CODE:
OUTPUT:
D.) Reading Analog Data
CODE:
OUTPUT:
E.) Reading Analog Data to Serial Communication
CODE:
OUTPUT:
F.) Blinking LED’s
CODE:
OUTPUT:
G.) Additional Activity 1 (Variation of delay in Blinking LED)
CODE:
OUTPUT:
H.) Additional Exercise 2 (case switching)
CODE:
OUTPUT:
I.) Additional Exercise 3
CODE:
OUTPUT:
J.) LED Control using FOR Loops
CODE:
OUTPUT: