Lab Activity 6 PWM
Lab Activity 6 PWM
.
A PWM signal is a variable duty cycle signal.
When the duty cycle is zero, then the average
output is 0 V. When the duty cycle is 100%,
then the average output is at its maximum
value (+5V in Arduino). As the duty cycle
increases from 0 to 100%, the average output
voltage increases, and vice versa.
Instructions:
(analog.Write). See the instruction reference book.
Equipment:
• Arduino UNO board
• LDE
• 220 resistor
• potentiometer
Procedure:
1. Connect the circuit of Fig.1.
2. Write a program to read the input analog signal
and use it to control the intensity of the LED.
3. Display the intensity as a percentage (%) on the
serial monitor GUI.
Discussion: Fig. 1
Page 1 of 3
Results and Discussion of Method of Exercises (Individual)
(Screenshot, Code and Discussion, follow the guidelines below.)
Page 2 of 3
spacing: 1.5. Body text should be in Justified alignment, while captions should be center-
aligned. Images should be readable and include captions. Please refer to the sample
below:
Page 3 of 3