Arduino (Pulse Width Modulation)

Graduation Requirements
Science Laboratory Physical
Field & Cluster
Design, Production & Repair Architecture and Construction Engineering Manufacturing
Equipment/Materials Needed


Arduino
LED
9-volt Motor
Breadboard
Leads


Arduino
Description

The analogWrite command only approximates analog voltages and does not produce an actual analog signal. It works by quickly turning the voltage to the pin on and off or pulse width modulation.

Badge Completion Requirements

PWM (Pulse Width Modulation)

Please follow along with Paul McWhorter as he explains analogWrite using PWM the little line beside some of the pins on the Arduino

 

In Lesson 7, we learned how we can get in-between voltages from the Arduino pins using the analogWrite command. Actually, this command only approximates analog voltages and does not produce actual analog signals. It works by quickly turning the voltage to the pin on and off. For example, if you ask for 2.5 volts, it will quickly switch the pin on, with it on 50% of the time and off 50% of the time. Similarly, if you asked for 1 volt, it is really switching 5 volts on and off quickly. For this case, it would be on 20% of the time and off 80% of the time. This technique is called Pulse Width Modulation. In this video, we show you the actual waveforms coming from the analogWrite command on an oscilloscope.

Please gather components; design, construct and code along with Mr. McWhorter.

Please incorporate a capacitor into your project. 

Replace the LED with a 9-volt motor 

Please develop and submit a presentation demonstrating your understanding of analogWrite and Pulse Width Modulation. Please include the above "prompts" in your presentation.