Circuits / Microcontrollers
Arduino UNO: a potentiometer dims an LED (ADC and PWM)
analogRead turns a voltage into 0…1023; analogWrite turns 0…255 into the share of time the pin is high

Tap a part to see its voltages and currents. It is a model, not a measurement.
Parts
- Potentiometer 10 kΩSearch on Amazon
- Development board Arduino UNOSearch on Amazon
- Red LEDSearch on Amazon
- Resistor 220 ΩSearch on Amazon
- Jumper wires × 2Search on Amazon
- BreadboardSearch on Amazon
Hear about the next circuit
One email when a new circuit is out, about twice a month. Nothing else.