Stufin
Home Quick Cart Profile

1K Preset Potentiometer - (Pack of 5)

Buy Now

Pin Configuration

  • Component Documentation: 1K Preset Potentiometer (Pack of 5)
  • Overview
  • The 1K Preset Potentiometer is a variable resistor that allows for precise adjustment of resistance values within a range of 0 to 1k. This component is commonly used in electronic circuits to divide voltages, adjust signal levels, and provide impedance matching. This documentation provides a detailed explanation of the pins and their connections.
  • Pinouts
  • The 1K Preset Potentiometer has three pins, which are explained below:
  • Pin 1: Terminal 1 (T1)
  • Function: One end of the resistive track
  • Description: This pin is connected to one end of the resistive track, which is the portion of the potentiometer that varies in resistance when the shaft is rotated.
  • Connection: Typically connected to a voltage source, ground, or another component in the circuit.
  • Pin 2: Wiper (W)
  • Function: Sliding contact that varies resistance
  • Description: The wiper is a sliding contact that moves along the resistive track when the shaft is rotated. It provides a variable connection point between Terminal 1 and Terminal 3.
  • Connection: Typically connected to the input or output of a circuit, or to a microcontroller or other electronic component.
  • Pin 3: Terminal 3 (T3)
  • Function: Other end of the resistive track
  • Description: This pin is connected to the other end of the resistive track, which is the portion of the potentiometer that varies in resistance when the shaft is rotated.
  • Connection: Typically connected to a voltage source, ground, or another component in the circuit.
  • Connection Structure
  • When connecting the 1K Preset Potentiometer to a circuit, follow this general structure:
  • 1. Connect Pin 1 (T1) to a voltage source or ground: This sets the maximum resistance value of the potentiometer.
  • 2. Connect Pin 2 (W) to the input or output of the circuit: This allows the potentiometer to adjust the signal level or voltage in the circuit.
  • 3. Connect Pin 3 (T3) to ground or another component: This sets the minimum resistance value of the potentiometer and completes the circuit.
  • rotation
  • When the shaft of the potentiometer is rotated:
  • The wiper (Pin 2) moves along the resistive track, changing the resistance between Pin 1 and Pin 3.
  • The voltage or signal at Pin 2 varies accordingly, allowing for precise adjustment of the circuit.
  • Important Notes
  • When using the potentiometer as a voltage divider, ensure that the total resistance of the circuit is within the rated power dissipation of the component.
  • Use a suitable power source and voltage rating for the potentiometer to avoid damage or overheating.
  • The potentiometer's shaft should be rotated carefully to avoid mechanical damage or wear.

Code Examples

1K Preset Potentiometer - (Pack of 5)
==============================================
Overview
The 1K Preset Potentiometer is a variable resistance component that allows for precise voltage division in a circuit. This pack of 5 potentiometers is ideal for prototyping and development of IoT projects. The 1K resistance value makes it suitable for use in a wide range of applications, from audio equipment to robotics and automation.
Pinout
The 1K Preset Potentiometer has three pins:
Pin 1: Center wiper terminal (OUTPUT)
 Pin 2: One end of the resistor element (VCC)
 Pin 3: Other end of the resistor element (GND)
Specifications
Resistance value: 1 k
 Power rating: 0.25 W
 Operating temperature range: -20C to 70C
 Rotary angle: 300
Code Examples
### Example 1: Analog Voltage Divider with Arduino
In this example, we'll use the 1K Preset Potentiometer to create an analog voltage divider with an Arduino board. The potentiometer will be used to divide the input voltage and output a varying voltage level to an analog input pin on the Arduino.
```c
const int sensorPin = A0;  // Analog input pin on Arduino
int sensorValue = 0;      // Variable to store sensor value
void setup() {
  Serial.begin(9600);
}
void loop() {
  sensorValue = analogRead(sensorPin);
  float voltage = sensorValue  (5.0 / 1023.0);
  Serial.print("Voltage: ");
  Serial.print(voltage);
  Serial.println(" V");
  delay(500);
}
```
Circuit Diagram
Connect Pin 1 (center wiper terminal) of the potentiometer to Analog Input Pin A0 on the Arduino board.
 Connect Pin 2 (VCC) to the 5V pin on the Arduino board.
 Connect Pin 3 (GND) to the GND pin on the Arduino board.
### Example 2: Control Motor Speed with Raspberry Pi
In this example, we'll use the 1K Preset Potentiometer to control the speed of a DC motor using a Raspberry Pi. The potentiometer will be connected to an analog-to-digital converter (ADC) and the Raspberry Pi will read the voltage value to adjust the motor speed.
```python
import RPi.GPIO as GPIO
import time
# Set up GPIO mode
GPIO.setmode(GPIO.BCM)
# Define motor control pins
motor@Enable = 18
motorDir = 23
# Set up motor control pins as outputs
GPIO.setup(motorEnable, GPIO.OUT)
GPIO.setup(motorDir, GPIO.OUT)
# Set up ADC pin for potentiometer
potPin = 17
try:
    while True:
        # Read analog value from potentiometer
        potValue = read_adc(potPin)
        # Calculate motor speed based on potValue
        motorSpeed = int((potValue / 1023.0)  100)
        # Set motor speed and direction
        GPIO.output(motorEnable, GPIO.HIGH)
        GPIO.output(motorDir, GPIO.HIGH if motorSpeed > 50 else GPIO.LOW)
        time.sleep(0.01)
except KeyboardInterrupt:
    GPIO.cleanup()
```
Circuit Diagram
Connect Pin 1 (center wiper terminal) of the potentiometer to ADC Pin 17 on the Raspberry Pi.
 Connect Pin 2 (VCC) to the 3.3V pin on the Raspberry Pi.
 Connect Pin 3 (GND) to the GND pin on the Raspberry Pi.
 Connect the motor control pins to the Raspberry Pi and motor driver IC as per the motor driver's datasheet.
Note: The above code examples assume a basic understanding of the respective microcontrollers and programming languages. You may need to modify the code to suit your specific project requirements.