Touch-sense technique for any MCU
Here is a touch-pad sensing technique that works for any micro-controller -- without any special on-chip hardware support.
The processing overhead to service the touch-pads is very low. The interval between calls to the touch-pad “service routine” may be anywhere in the range 100 microseconds up to 5 milliseconds, or more. Execution time of the service routine itself is under 30 microseconds for each touch input.
The micro-controller must have I/O pins which can be configured as either digital (GPIO) or analog (ADC inputs). One such pin is required for each touch input.
The touch-sense technique has been tested successfully on a “low-end” 8-bit AVR micro-controller (ATmega328P) as found in many popular development boards including the Arduino Uno R3 and Nano boards.
The Test & Demo program presented here was designed to run on a Microchip AVR 'X-mini' board which is compatible with the Arduino Uno and Nano. The program was developed under Microchip Studio IDE for AVR and SAM Devices.
The Touch-Sense algorithm is easily adapted to other micro-controllers.
A full description is provided in the attached PDF document: "Touch sense for any MCU".
Want to build a project?
Bring your design to life with the Elektor PCB Service, powered by Eurocircuits. Upload the project files and order professionally manufactured PCBs or assembled boards through a proven European production platform.
Supporting KiCad, Eagle, Gerber, and ODB++ formats, the service is suitable for everything from prototypes and validation builds to series production and volume manufacturing.
Made in Europe. Fast. Reliable. Professional.

Discussion (0 commentaire(s))