
Reading a Soft Potentiometer — SIK Circuit 10
Hướng dẫn
Parts & Introduction
Parts & Introduction
A soft potentiometer is a thin, flexible strip that acts as a variable resistor based on where you press. Combined with an RGB LED, you can create an intuitive color picker — slide your finger to change colors!
Parts Needed
- 1x Arduino Uno + USB cable
- 1x Breadboard
- 1x Soft Potentiometer
- 1x RGB LED (Common Cathode)
- 3x 330Ω Resistors
- 1x 10KΩ Resistor (pull-down)
- 9x Jumper Wires
Vật liệu cho bước này:
SparkFun Inventors Kit - V3.21 bộ
Arduino Uno R31 cái
Breadboard1 cái
Soft Potentiometer1 cái
RGB LED (Common Cathode)1 cái
330 Ohm Resistor3 cái
10K Ohm Resistor1 cái
Jumper Wires8 cáiCông cụ cần thiết:
Hardware Hookup
Hardware Hookup
Wiring Instructions
Soft Potentiometer
- Connect the middle pin to Analog Pin A0.
- Connect one side pin to 5V.
- Connect the other side pin to GND.
- Add a 10K pull-down resistor from Analog Pin A0 to GND.
RGB LED (pin order from flat edge: Red, GND, Green, Blue)
- Connect Red through 330Ω resistor to Pin 9.
- Connect GND (longest pin) to GND rail.
- Connect Green through 330Ω resistor to Pin 10.
- Connect Blue through 330Ω resistor to Pin 11.
Vật liệu cho bước này:
Soft Potentiometer1 cái
RGB LED (Common Cathode)1 cái
330 Ohm Resistor3 cái
10K Ohm Resistor1 cái
Breadboard1 cái
Jumper Wires8 cáiArduino Code
Arduino Code
Open the Arduino IDE and upload the following sketch to your Arduino board.
Vật liệu cho bước này:
Arduino Uno R31 cáiCông cụ cần thiết:
Test & Experiment
Test & Experiment
What You Should See
The RGB LED changes color as you slide your finger along the soft potentiometer strip. The color smoothly transitions through the spectrum: red → green → blue → red.
Troubleshooting
- LED dark or wrong color: Four pins close together are easy to misplace. Verify each RGB LED connection.
- Bizarre color jumps: Pressing the soft pot in multiple spots simultaneously gives unpredictable results. Use one finger.
Experiments to Try
- Add Serial output to see the raw sensor values as you slide.
- Map the soft pot to servo position instead of color.
Vật liệu
8- $105.00
- 1 cáiTạm thời
- 1 cáiTạm thời
- 1 cáiTạm thời
- Tạm thời
- $3.00
- $3.00
You can swap these in
Can't get one of the materials? Swap it for an equivalent — these work just as well.
- Instead of Arduino Uno R3, try:
Prototyping Shield for Arduino Uno (3-Pack)
Arduino Uno R3 Board
Arduino Uno - Instead of SoftPot Membrane Potentiometer - 50mm, try:
Digital Potentiometer - 10K
SoftPot Membrane Potentiometer - 100mm
Potentiometer
SoftPot Membrane Potentiometer - 200mm
10K Ohm Linear Potentiometer (5-Pack)
Softpot Rotary Potentiometer - Instead of Resistor 330 Ohm 1/6 Watt PTH - 20 pack, try:
AVR ISP Shield - PTH Kit
Resistor 1.0M Ohm 1/6th Watt PTH - 20 pack - Instead of Breadboard, try:
Solder-able Breadboard
Recommended for this build
Products makers often use with builds like this one.
5mm LED Assortment Kit (300pcs, 5 Colors)Used together and in similar builds
PhotoresistorUsed in similar builds
PotentiometerUsed together and in similar builds
Push Button - 33mmFrequently used with this build's materials
Diode KitFrequently used with this build's materials
BC547 NPN Transistor (50-Pack)Frequently used with this build's materials
Servo MotorFrequently used with this build's materials
Piezo ElementFrequently used with this build's materialsRelated blueprints
Other builds that share materials, tools, or techniques with this one.






CC0 Phạm vi công cộng
Bản thiết kế này được phát hành theo CC0. Bạn tự do sao chép, sửa đổi, phân phối và sử dụng cho bất kỳ mục đích nào mà không cần xin phép.
Hỗ trợ nhà sáng tạo bằng cách mua sản phẩm qua bản thiết kế, nơi họ nhận Hoa hồng nhà sáng tạo do nhà bán hàng đặt, hoặc tạo phiên bản mới và kết nối trong bản thiết kế riêng để chia sẻ doanh thu.