Potentiometer dimming an LED on an Uno R3

by ourcircuits

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.