Capacitive Touch provides you with 7 additional switch inputs that you may have not known are available.

How do they work? The microcontroller has built-in circuitry to measure the capacitance of each of the pads A1 to A7. They are calibrated when the microcontroller is reset. Any change in capacitance is measured and we can read the output to decide if one of the pads is being touched (which changes the capacitance).

Pad A0 is connected to Analog Out and the speaker, it does not do capacitive touch.

Both Microsoft MakeCode and CircuitPython have built-in support for capacitive touch. See the following pages for examples.

This guide was first published on Jul 26, 2018. It was last updated on Apr 23, 2024.

This page (Using Capacitive Touch) was last updated on Mar 08, 2024.

Text editor powered by tinymce.