Arduino PWM Activities

LED Dimmer

Using the Arduino reference page as a starting point, research the basics of how to use pulse width modulation (PWM) on the Arduinos.

For this activity, you will wire up a potentiometer so it controls the brightness of an LED.

Refer to the Arduino Potentiometer Activities page for further instructions.

Light Sensor

This activity is simply adapted from the LED Dimmer activity, but you will be using the light sensor in place of the potentiometer.

Note that the light sensor input will have to be “scaled” so that when the sensor is covered (dark) the LED will fully lit and when it is uncovered the LED is fully off.