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
Upload it and watch
- Lesson 1, step 3 shows how to upload. Upload the sketch from step 2 the same way.
- Press the Serial Monitor button, at the top right of the Arduino IDE12.
- In the Serial Monitor’s baud menu, pick 115200, the speed the sketch set8.
- Turn the knob. The numbers move between 0 and 10237.
Not working? Start with the Stuck? checklist.
Sources for this page
- Arduino example: AnalogReadSerial: potentiometer wiring
- Arduino tutorial: Analog Read Serial: what a potentiometer does; 0 V reads 0 and 5 V reads 1023
- Arduino reference: Serial.begin()
- Arduino: Using the Serial Monitor tool (Arduino IDE 2)