Potentiometer Knobs (Pack of 10)
Potentiometer Knobs (Pack of 10)
The Potentiometer Knobs (Pack of 10) is a set of rotary knobs designed to pair with potentiometers, allowing users to adjust the resistance value of the potentiometer by rotating the knob. These knobs are commonly used in various electronic projects, including IoT devices, audio equipment, and robotics.
The primary function of the Potentiometer Knobs is to provide a user-friendly interface for adjusting the resistance value of a potentiometer. When paired with a potentiometer, the knob allows the user to rotate the shaft, which in turn changes the resistance value of the potentiometer. This allows the user to fine-tune various parameters, such as volume, tone, or other adjustable settings, in their electronic project.
High-quality plastic
Compatible with 6mm or 1/4 inch potentiometer shafts
Smooth, continuous rotary adjustment
| -Packaging | Pack of 10 individual potentiometer knobs |
20mm (diameter) x 15mm (height)
Approximately 10 grams per knob
| The Potentiometer Knobs (Pack of 10) are ideal for a wide range of electronic projects, including |
Audio equipment, such as volume controls or tone adjustments
Robotics and automation systems that require adjustable resistance values
IoT devices, such as smart home automation systems or environmental monitoring devices
Other electronic projects that require a user-friendly interface for adjusting resistance values
Component Documentation: Potentiometer Knobs (Pack of 10)OverviewThe Potentiometer Knobs (Pack of 10) is a set of rotary potentiometer knobs designed for use with linear potentiometers. These knobs are commonly used in various IoT projects, such as robotic arms, robotic cars, and other mechanical systems that require precise control. Each knob in the pack is identical and features a smooth, rotating design that provides tactile feedback.Technical SpecificationsMaterial: Plastic
Shaft diameter: 6 mm
Knob diameter: 20 mm
Height: 15 mm
Package includes: 10 x Potentiometer KnobsCode Examples### Example 1: Analog Input with ArduinoIn this example, we will use a potentiometer knob to control the brightness of an LED connected to an Arduino board.Hardware RequirementsArduino Board (e.g., Arduino Uno)
Potentiometer Knob (from the pack)
Linear Potentiometer (e.g., 10k)
LED
Resistor (e.g., 1k)
Breadboard and jumper wiresCode
```c
const int potPin = A0; // Analog input pin for potentiometer
const int ledPin = 9; // Digital output pin for LEDvoid setup() {
pinMode(ledPin, OUTPUT);
}void loop() {
int potValue = analogRead(potPin); // Read analog value from potentiometer
int brightness = map(potValue, 0, 1023, 0, 255); // Map value to LED brightness range
analogWrite(ledPin, brightness); // Set LED brightness
delay(10);
}
```
In this example, we read the analog value from the potentiometer using the `analogRead()` function and map it to a brightness value for the LED using the `map()` function. We then set the LED brightness using the `analogWrite()` function.### Example 2: Digital Input with Raspberry Pi (Python)In this example, we will use a potentiometer knob to control a digital output on a Raspberry Pi.Hardware RequirementsRaspberry Pi (e.g., Raspberry Pi 4)
Potentiometer Knob (from the pack)
Linear Potentiometer (e.g., 10k)
Breadboard and jumper wiresCode
```python
import RPi.GPIO as GPIO# Set up GPIO library
GPIO.setmode(GPIO.BCM)# Define GPIO pin for digital output
output_pin = 17
GPIO.setup(output_pin, GPIO.OUT)while True:
# Read analog value from potentiometer
pot_value = int(input("Enter analog value (0-1023): "))# Set digital output based on potentiometer value
if pot_value > 512:
GPIO.output(output_pin, GPIO.HIGH)
else:
GPIO.output(output_pin, GPIO.LOW)# Wait for 0.1 seconds
time.sleep(0.1)
```
In this example, we read the analog value from the potentiometer using the `input()` function and set a digital output based on the value. We use the `GPIO.output()` function to set the output pin high or low.Note: These examples are for illustrative purposes only and may require modifications to work with your specific IoT project.