Key Engineering Takeaways
- •A potentiometer is an adjustable voltage divider constructed with a curved resistive carbon track and a sliding wiper contact.
- •Pin 1 connects to VCC (+5V/3.3V), Pin 3 connects to GND (0V), and center Pin 2 (Wiper) outputs a variable voltage.
- •Linear Taper (marked "B", e.g., B10K) changes resistance proportionally with dial angle; used for sensor dials and robotics positions.
- •Logarithmic / Audio Taper (marked "A", e.g., A10K) matches human ear perception; used for audio volume controls.
- •Never connect the wiper directly between power rails without a series load, or turning the dial to the end will create a dead short.
- • Voltage Dividers and Ohm's Law
- • 10kΩ Rotary Potentiometer (B10K)
- • ESP32 / Arduino
- • Breadboard and Jumper Wires
- • Digital Multimeter
Anatomy of a 3-Terminal Potentiometer
Wiring as an Adjustable Voltage Divider (0V - 5V Output)
Potentiometer Tapers: Linear (B) vs Logarithmic / Audio (A)
Reading Potentiometer Angle in Microcontroller Firmware
const int POT_PIN = A0;
void setup() {
Serial.begin(115200);
}
void loop() {
// Read 10-bit raw ADC value (0 to 1023)
int rawADC = analogRead(POT_PIN);
// Calculate real voltage (for 5.0V reference)
float voltage = (rawADC / 1023.0) * 5.0;
// Map to servo angle (0 to 180 degrees)
int servoAngle = map(rawADC, 0, 1023, 0, 180);
Serial.print("Raw: "); Serial.print(rawADC);
Serial.print(" | Voltage: "); Serial.print(voltage, 2);
Serial.print("V | Angle: "); Serial.println(servoAngle);
delay(50);
}Frequently Asked Questions
What is a Trimpot (Trimmer Potentiometer)?
A Trimpot is a miniature potentiometer designed to be adjusted with a tiny screwdriver during factory calibration and then left fixed (e.g., setting LCD contrast or motor driver current limits).