Arduino (analogWrite)

Field & Cluster
Engineering Manufacturing
Equipment/Materials Needed


Arduino
Red LED
330-ohm Resistor
Breadboard
Leads

analogWrite
Description


Adjusting the voltage output between 0 and 5 volts using an Arduino

Badge Completion Requirements

analogWrite

As we graduate from LEDs to sensors and components we'll find it necessary to adjust the voltage. In this video, Paul will explain the basics of analogWrite. Here we'll adjust the brightness of a LED using the voltage from the Arduino.

Please gather the components needed to follow along with Paul as we'll begin to expand our coding abilities using analogWrite commands

Prompts

Please develop a code that has the LED at full brightness for 2 seconds, 3/4 brightness for 1 second, 1/4 brightness for 1/2 second and off for 2 seconds. Repeat the program

Please develop and submit a presentation demonstrating your understanding of analogWrite statements. Please include the "Prompts" in your presentation.