
Reading a Soft Potentiometer — SIK Circuit 10
Instrucciones
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
Materiales para este paso:
SparkFun Inventor's Kit - V3.21 kitHerramientas necesarias:
Ordenador con el IDE de ArduinoHardware 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.
Materiales para este paso:
Tira de LED RGB 5050 (no direccionable)1 pieza
Cables de puente8 piezasHerramientas necesarias:
Placa de pruebasArduino Code
Arduino Code
Open the Arduino IDE and upload the following sketch to your Arduino board.
Materiales para este paso:
Arduino Uno R31 piezaHerramientas necesarias:
Ordenador con el IDE de ArduinoTest & 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.
Materiales
7- SparkFun Inventor's Kit - V3.210% de comisión1 kit€94.60
- Marcador de posición
- Marcador de posición
- Marcador de posición
- 1 piezaMarcador de posición
- 3 piezasMarcador de posición
- Marcador de posición
Herramientas requeridas
2- Marcador de posición
- 1 vendor sell this, none ship to you yetMarcador de posición
CC0 Dominio público
Este Blueprint se publica bajo CC0. Eres libre de copiar, modificar, distribuir y usar este trabajo para cualquier propósito, sin pedir permiso.
Apoya al Maker comprando productos a través de su Blueprint, donde gana una Comisión del Maker establecida por los vendedores, o crea una nueva iteración de este Blueprint e inclúyela como conexión en tu propio Blueprint para compartir ingresos.