Use Potentiometer Module on Arduino

Potentiometer module using a rotary potentiometer, potentiometer knob that can be changed to adjust the potentiometer resistance.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Hardware List and Wiring Ddiagram

Hardware list

Arduino UNO *1

Rotary potentiometer  *1

Male to Female Dupont Line *3

Wiring Diagram as shown:

Step 2: Test Code

int sensorPin = A0;
int ledPin = 13;
int sensorValue = 0;

void setup() {
  pinMode(ledPin, OUTPUT); 

void loop() {
  sensorValue = analogRead(sensorPin);
  digitalWrite(ledPin, HIGH); 
  digitalWrite(ledPin, LOW);  

Step 3: Test Result

By adjust Rotary Potentiometer‘s knob, we can see Arduino A0′s value changed, as shown

Be the First to Share


    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest