Capacitive Sensing example

Here is a good introduction to capacitive sensing. Read through it to see possible uses and helpful tips for making your own.

Here is my simplified and clarified revision of the example code:

Don’t forget to install the CapacitiveSensor library from the Arduino IDE:

  • Go to menu Sketch / Include Library / Contributed Libraries, then search for “CapacitiveSensor”

Notice how the sensor can be very sensitive – you might want to smooth the input (use Arduino “Smoothing” example, or my own improved example on this site, search for smoothing.)

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a website or blog at

Up ↑

%d bloggers like this: