Wire it on a real board

Using only the on-⁠screen board? You can skip this step.

The knob has three pins: two outer pins and a middle pin7. Each one gets a wire to the board.

Wire the knob

  1. Wire one outer pin of the knob to 5V5.
  2. Wire the other outer pin to GND5.
  3. Wire the middle pin to A05.

Upload it and watch

  1. Lesson 1, step 3 shows how to upload. Upload the sketch from step 2 the same way.
  2. Press the Serial Monitor button, at the top right of the Arduino IDE12.
  3. In the Serial Monitor’s baud menu, pick 115200, the speed the sketch set8.
  4. Turn the knob. The numbers move between 0 and 10237.
Before you run it on a real board, check each connection

Not working? Start with the Stuck? checklist.

Sources for this page

  1. Arduino example: AnalogReadSerial: potentiometer wiring
  2. Arduino tutorial: Analog Read Serial: what a potentiometer does; 0 V reads 0 and 5 V reads 1023
  3. Arduino reference: Serial.begin()
  4. Arduino: Using the Serial Monitor tool (Arduino IDE 2)