Component Documentation: 10K Pot Potentiometer with Knob
The 10K Pot potentiometer with Knob is a variable resistor used to divide a voltage source into two parts, allowing the user to adjust the voltage output. The potentiometer consists of three terminals: the wiper (middle terminal) and two fixed terminals (one at each end). By rotating the knob, the wiper's position changes, varying the resistance between the wiper and the fixed terminals. This component is commonly used in analog circuits to control voltage levels, signal levels, or impedance matching.
Terminal 1 (Fixed): One end of the potentiometer, connected to the voltage source (VCC)
Terminal 2 (Wiper): Middle terminal, output voltage varies depending on the knob's position
Terminal 3 (Fixed): Other end of the potentiometer, connected to ground (GND)
Resistance: 10 k
Power Rating: 0.5 W
Operating Temperature: -20C to 70C
Tolerance: 20%
Example 1: Reading Potentiometer Value with Arduino
In this example, we'll use the potentiometer to control the brightness of an LED connected to an Arduino board.
```c++
const int potPin = A0; // Potentiometer wiper connected to Analog Input 0
const int ledPin = 9; // LED connected to Digital Pin 9
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
int sensorValue = analogRead(potPin); // Read potentiometer value (0-1023)
int brightness = map(sensorValue, 0, 1023, 0, 255); // Map value to 0-255 range
analogWrite(ledPin, brightness); // Set LED brightness
delay(10);
}
```
Example 2: Using Potentiometer as a Voltage Divider with Raspberry Pi
In this example, we'll use the potentiometer as a voltage divider to control the voltage output, which is then read by a Raspberry Pi.
```python
import RPi.GPIO as GPIO
import time
pot_pin = 17 # Potentiometer wiper connected to GPIO 17
voltage_in = 3.3 # Voltage input (VCC)
GPIO.setup(pot_pin, GPIO.IN)
while True:
voltage_out = (GPIO.input(pot_pin) / 1023.0) voltage_in
print("Voltage output:", voltage_out)
time.sleep(0.5)
```
Example 3: Basic Analog Circuit with Potentiometer
In this example, we'll create a basic analog circuit using the potentiometer to control the voltage output.
```scss
Vin (VCC) -->[R1-----+-----R2]--> Vout
| |
| Pot |
| |
+----------+
```
R1 = R2 = 10 k (same value as the potentiometer)
Vin = 5 V (voltage source)
Vout = (R2 / (R1 + R2)) Vin = (10 k / (10 k + 10 k)) 5 V = 2.5 V (initial output)
By rotating the knob, the potentiometer's resistance changes, varying the output voltage (Vout).
These examples demonstrate how to use the 10K Pot potentiometer with Knob in various contexts, including Arduino, Raspberry Pi, and basic analog circuits.