Making a responsive capacitive touch pad set with Raspberry Pi Pico #RaspberryPi @Raspberry_Pi
James Brown on Mastodon demonstrates making an array of capacitive touch pads on a circuit board. On reading the pads, the typical algorithm of polling was reversed:
The capacitive sensor works by discharging the pad through a resistor and timing how long it takes. Previously I was doing this a few thousand times in a loop and returning the accumulated time. Here I’m doing it the other way round – spending a fixed time in the loop, and counting how many charge / discharge cycles it can do. My aim was to make it easier to tune the sample period, but it turns out noticeably smoother and less noisy this way too.
Have an amazing project to share? The Electronics Show and Tell is every Wednesday at 7:30pm ET! To join, head over to YouTube and check out the show’s live chat and our Discord!
Python for Microcontrollers – Adafruit Daily — Python on Microcontrollers Newsletter: A New Arduino MicroPython Package Manager, How-Tos and Much More! #CircuitPython #Python #micropython @ThePSF @Raspberry_Pi
EYE on NPI – Adafruit Daily — EYE on NPI Maxim’s Himalaya uSLIC Step-Down Power Module #EyeOnNPI @maximintegrated @digikey