Some capacitive sense touch sensors: buttons and touchwheels
Touchpads are capacitive sensing button inputs that consist of a copper
pad and (usually) 1M pull-down resistor, both hooked up to a microcontroller GPIO pin.
Code on a microcontroller repeatedly charges and times the discharge rate of the pad.
The discharge time changes when a finger is close to the pad.
This change can be used to detect a button press.
The CircuitPython touchio library and the Arduino library TouchyTouch
are two ways of using these capacative touch pads
-
buttons4x0 - Four 11 mm capacitive touch buttons for use with breadboards or in a project
buttons4x0_demo1.mp4
These work by using only three capactive touch pads in a specific interleaved geometry and measuring the relative ratio of analog capacitive touch values between the pads to compute a distance along the slider.
-
TouchWheelSAO -- Touchwheel SAO as part of Hackaday Supercon 2024 badge
-
touchwheel0 - available on Tindie as a kit!
Similar to an iPod's wheel,
touchwheel0is a 30 mm (0.6") diameter rotary capacitive touch slider that can be used with most any microcontroller. It uses three digital GPIO pins and requires no extra components. The included examples in CircuitPython and Arduino show how to turn the raw capacitive touch readings of the three pins into a linear 0-360º angle measurement. -
picoslidertoy - Available at the picoslidertoy repo
There are several examples on how to use the touchwheel:
-
demo0 - CircuitPython example showing basic concept on touchwheel0
-
touchwheel_badgedemo - CircuitPython example for the Hackaday SuperCon 2023 badge (where touchwheel0 PCBs were given away)
-
demo_dual - CircuitPython example show two touchwheel0s in use
-
more demos coming!
The touchwheel0 kit on Tindie comes with:
- touchwheel0 black PCB
- 4 x 1M 0805 SMD resistors (only three needed, one is a spare)
- 1 x 4-pin pin header
It makes a pretty good "first SMD soldering" exercise as the 0805 resistors are relatively big and not very heat sensitive.
-
demo dual: (click to view on youtube)
-
demo0:
touchwheel0_demo0a.mp4



