0% found this document useful (0 votes)
37 views3 pages

Lab Activity 6 PWM

This experiment aims to learn how to implement analog output from an Arduino board using pulse width modulation (PWM). PWM works by varying the duty cycle of a square wave from 0% to 100% to produce different average output voltages. The experiment connects an LED, resistor, and potentiometer to an Arduino board. A program will read the potentiometer input and use it to control the LED intensity by varying the PWM duty cycle, displaying the intensity as a percentage on the serial monitor. As a supplemental activity, the document asks students to design a program for an Arduino-based DC motor speed control using a potentiometer, including a program, flowchart, block diagram, and schematic diagram.

Uploaded by

Carrissa Cuison
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views3 pages

Lab Activity 6 PWM

This experiment aims to learn how to implement analog output from an Arduino board using pulse width modulation (PWM). PWM works by varying the duty cycle of a square wave from 0% to 100% to produce different average output voltages. The experiment connects an LED, resistor, and potentiometer to an Arduino board. A program will read the potentiometer input and use it to control the LED intensity by varying the PWM duty cycle, displaying the intensity as a percentage on the serial monitor. As a supplemental activity, the document asks students to design a program for an Arduino-based DC motor speed control using a potentiometer, including a program, flowchart, block diagram, and schematic diagram.

Uploaded by

Carrissa Cuison
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment Number 6

Analog Output (PWM)


Objectives:
To learn how to implement analog output from the Arduino board in
the form of Pulse Width Modulation (PWM).
Theory:
For a square wave, the duty cycle is defined as:

.
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.)

Control the intensity of the LED:

Display the intensity as a percentage (%):

Include relevant schematic diagrams, charts, visualizations, code snippets, and


program outputs for each required problem or task. Please provide insights,
commentaries, or explanations regarding the data. If an explanation requires the support
of literature such as academic journals, books, magazines, reports, or web articles
please cite and reference them using the IEEE format.
Please take note of the styles on the style ribbon as these would serve as the style
format of this laboratory report. The body style is Times New Roman size 12, line

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:

If an image is taken from another literature or intellectual property, please cite


them accordingly in the caption. Always keep in mind the Honor Code [1] of our course
to prevent failure due to academic dishonesty.

Supplemental Activities (By Group)


Write a program that do the ff:
Design and write the program of an Arduino based dc motor speed control using a
potentiometer.

 Your program in tinkercad.


 Flowchart
 Block Diagram
 Schematic Diagram
 Discussion of the Supplementary activities.

Page 3 of 3

You might also like