Author Options:

What is a PWM pin? ? Answered

The instructable says "Connect the center pin of the potentiometer to Arduino analog pin A0, and the other two pins to power and ground respectively. Move your LED's control wire from pin 13 to pin 9, so we can use PWM."



4 weeks ago

From the previous lesson:

The Arduino board is only capable of generating digital signals (HIGH and LOW), but analogWrite(); simulates the appearance of brightnesses between on and off using pulse width modulation (PWM). The LED flashes on and off very quickly, and your eye interprets a dimmer light. The ratio of time the LED spends on vs. off determines how bright or dim the LED appears. Only certain pins are capable of PWM, and they are labeled on the board with squiggles ~ next to the pin number. PWM can also be used to control the speed of a DC motor, which we'll do in a later lesson.