arpruss / ADCTouchSensor

capacitive touch detection without external hardware for AVR and STM32
MIT License
43 stars 11 forks source link

ADCTouchSensor

ADCTouchSensorSTM is a library that allows users to create a capacitive sensor without ANY external hardware. It is based on the ideas and code in https://github.com/martin2250/ADCTouch but extended to work on hardware other than AVR.

Purpose

Most capacitive touch libraries require two pins and a large resistor to acquire precise readings. This library makes use of internal wiring to get decent resolution with just a single pin (plus on some MCUs one extra sacrificial pin, shared between allows the touch sensors).

Usage

Useful define

Examples