10K Sliding Potentiometer
10K Sliding Potentiometer
A 10K sliding potentiometer is a type of variable resistor that allows users to vary the resistance between two terminals by sliding a contact along a resistive track. It is a common component used in various electronic circuits, particularly in applications where a precise and continuous adjustment of resistance is required.
The primary function of a 10K sliding potentiometer is to divide a voltage source into two parts, creating a variable voltage divider. The potentiometer consists of three terminals | the center terminal (wiper), and two outer terminals (ends). The wiper terminal is connected to a slider that moves along a resistive track, which is typically a conductive plastic or metal film. |
When the slider is moved, the resistance between the center terminal and one of the outer terminals changes, while the resistance between the center terminal and the other outer terminal remains constant. This allows the potentiometer to act as a voltage divider, where the output voltage at the center terminal varies depending on the position of the slider.
| Parameter | Value |
| --- | --- |
| Resistance Range | 10 k |
| Tolerance | 10% |
| Power Rating | 0.1W to 1W |
| Linearity | Linear |
| Resolution | 0.1% to 1% |
| Operating Temperature | -20C to 70C |
| Package | Rotary, Linear, Logarithmic |
| Mounting | Through-hole, Surface-mount, PCB |
By understanding the functionality and key features of a 10K sliding potentiometer, designers and engineers can effectively integrate this component into their projects, achieving precise and continuous control over resistance and voltage division.
10K Sliding Potentiometer Documentation
Overview
The 10K Sliding Potentiometer is a variable resistor that allows for precise adjustments of resistance values. It consists of a fixed resistor with a movable tap that connects to a terminal, allowing the user to vary the resistance between the two fixed terminals. This component is commonly used in IoT projects to control various parameters such as volume, brightness, and speed.
Pinout
The 10K Sliding Potentiometer has three pins:
Pin 1: Left Terminal (one end of the fixed resistor)
Pin 2: Wiper (movable tap)
Pin 3: Right Terminal (other end of the fixed resistor)
Usage
The 10K Sliding Potentiometer can be used in various IoT projects, including:
### Example 1: Analog Input (Arduino)
In this example, we will use the 10K Sliding Potentiometer to control the brightness of an LED connected to an Arduino board.
```c
const int potPin = A0; // Potentiometer connected to analog input 0
const int ledPin = 9; // LED connected to digital output 9
void setup() {
pinMode(ledPin, OUTPUT);
}
void loop() {
int potValue = analogRead(potPin); // Read potentiometer value (0-1023)
int brightness = map(potValue, 0, 1023, 0, 255); // Map value to LED brightness (0-255)
analogWrite(ledPin, brightness); // Set LED brightness
delay(10);
}
```
### Example 2: Digital Input (Raspberry Pi)
In this example, we will use the 10K Sliding Potentiometer to control a digital output (e.g., a relay) connected to a Raspberry Pi.
```python
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
pot_pin = 17 # Potentiometer connected to GPIO 17
relay_pin = 23 # Relay connected to GPIO 23
GPIO.setup(pot_pin, GPIO.IN, pull_up_down=GPIO.PUD_UP) # Set potentiometer pin as input with pull-up
GPIO.setup(relay_pin, GPIO.OUT) # Set relay pin as output
while True:
pot_value = GPIO.input(pot_pin) # Read potentiometer value (0 or 1)
if pot_value:
GPIO.output(relay_pin, GPIO.HIGH) # Turn relay on if potentiometer is above midpoint
else:
GPIO.output(relay_pin, GPIO.LOW) # Turn relay off if potentiometer is below midpoint
```
### Example 3: Voltage Divider (ESP32)
In this example, we will use the 10K Sliding Potentiometer as a voltage divider to control the voltage output of a voltage regulator connected to an ESP32 board.
```c
const int potPin = 32; // Potentiometer connected to GPIO 32
const int voutPin = 33; // Voltage regulator output connected to GPIO 33
void setup() {
pinMode(potPin, INPUT);
pinMode(voutPin, OUTPUT);
}
void loop() {
int potValue = analogRead(potPin); // Read potentiometer value (0-4095)
float vout = (potValue / 4095.0) 3.3; // Calculate output voltage (0-3.3V)
digitalWrite(voutPin, (int)(vout 255 / 3.3)); // Set voltage regulator output
delay(10);
}
```
Precautions
Handle the 10K Sliding Potentiometer with care to avoid damaging the internal components.
Use a breadboard or PCB to connect the potentiometer to ensure reliable connections.
Adjust the potentiometer slowly and smoothly to avoid sudden changes in resistance.
Specifications
Resistance: 10k
Power rating: 0.5W
Voltage rating: 250V
Operating temperature: -20C to 70C
Dimensions: 15mm x 10mm x 10mm
By following the examples and guidelines provided, you can effectively utilize the 10K Sliding Potentiometer in your IoT projects.