Potentiometer dimming an LED on an Uno R3
4 parts
A potentiometer on an Uno R3's A0 sets the PWM on D9: the simulation shows the LED dim and brighten with the knob. At its middle the board prints 511 and a duty of 127. It prints the reading and the duty four times a second. The board runs on USB power: select it to turn USB off, or feed it at VIN.
- U1 Uno R3, uno_pot_dimmer.ino.hex
- POT1 Pot, 10kΩ·50%
- R1 Resistor, 220Ω
- LED1 LED