Wiring
The motorized slide pot has three subsystems to connect to the microcontroller/driver circuit:
- Potentiometer
- Motor
- Touch sense
The potentiometer is read as a voltage divider by the microcontroller. It has three pins -- positive voltage, wiper (the sliding, variable potentiometer part), and ground. These are connected as such to the Feather:
- Potentiometer pin 1 to Feather GND
- Potentiometer pin 2 to Feather A0 (any analog ADC pin works)
- Potentiometer pin 3 to Feather 3V
The touch sense strip is the pin labeled "T" in the datasheet and connects to any cap sense capable pin on the microcontroller.
- Touch sense pin to Feather A3
- Feather A3 to 1MΩ resistor to GND (without the resistor, cap touch will not work on some microcontroller chips)
The motor is connected to an h-bridge driver. This allows the microcontroller to control the motor at variable speeds in both "forward" and "reverse" directions.
- Motor A pin to L9110 Output A (pin 1)
- Motor B pin to L9110 Output B (pin 4)
- Feather D12 to L9110 Input A (pin 6)
- Feather D11 to L9110 Input B (pin 7)
- Feather USB 5V to L9110 VCC (pins 2, 3)
- L9110 GND (pins 5, 8) to Feather GND
Wire the Fader
The motorized slide pot has solder lugs for connection points. Strip some insulation from your jumper wires and solder them to the lugs. You can also use heat shrink tubing to neaten up the wiring as shown here.
Buttons
For the demo here, we'll also use four momentary switch push-buttons. They are connected respectively to Feather D5, D6, D9, D10 on one side and GND on the other.
Here's the whole kit and caboodle wired together for use.
Text editor powered by tinymce.