
Reading a Soft Potentiometer — SIK Circuit 10
Consignes
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
Matériaux pour cette étape :
SparkFun Inventors Kit - V3.21 kit
Arduino Uno R31 pièce
Breadboard1 pièce
Soft Potentiometer1 pièce
RGB LED (Common Cathode)1 pièce
330 Ohm Resistor3 pièces
10K Ohm Resistor1 pièce
Jumper Wires8 piècesOutils nécessaires :
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.
Matériaux pour cette étape :
Soft Potentiometer1 pièce
RGB LED (Common Cathode)1 pièce
330 Ohm Resistor3 pièces
10K Ohm Resistor1 pièce
Breadboard1 pièce
Jumper Wires8 piècesArduino Code
Arduino Code
Open the Arduino IDE and upload the following sketch to your Arduino board.
Matériaux pour cette étape :
Arduino Uno R31 pièceOutils nécessaires :
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.
Matériaux
8- $105.00
- 1 pièceEspace réservé
- 1 pièceEspace réservé
- 1 pièceEspace réservé
- Espace réservé
- $3.00
- $3.00
- $5.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 Domaine public
Ce blueprint est publié sous CC0. Vous êtes libre de copier, modifier, distribuer et utiliser ce travail pour tout usage, sans demander la permission.
Soutenez le Maker en achetant des produits via son Blueprint où il perçoit une Commission Maker définie par les Vendeurs, ou créez une nouvelle itération de ce Blueprint et incluez-le comme connexion dans votre propre Blueprint pour partager les revenus.