Skip to content

Volume Knob

Ashwin Rajesh edited this page Sep 4, 2025 · 2 revisions

Needed Materials:

  • LED >=3
  • Potentiometer x 1

Difficulty: Medium

Requirements

Arrange the LEDs in a line. When the pot is turned, the LEDs must light up according to the percentage of the pot reading.

When the pot reading is 0, no LEDs must be on. When the pot reads 1023, all LEDs must light up.

The percentage reading should also be printed in the serial monitor.

Expected Output

volume: 24%
volume: 26%
volume: 27%
volume: 28%
volume: 30%
Clone this wiki locally