Simple Touch Sensors With The Arduino CapSense Library

Ever thought of using touch sensors on your projects but didn’t because it would be too much work? [Paul Stoffregen] proves that it can be pretty easy if you use the CapSense library for Arduino. Here he’s created three touch sensors, connecting them to the Teensy microcontroller with two resistors each. The larger resistor (looks like 4.7 megaohms here) sends a signal through the copper pad which is read by the secondary pin. Here that pin is protected from electrostatic discharge with the 1k resistors. The microcontroller takes a reading by measuring how long it takes the voltage to change on the input pin.

Since the CapSense library takes care of the timing involved in these readings, all you have to do is decide how your program will react to the numbers that are coming in. In the video after the break [Paul] is echoing the timing figures back through the serial monitor to get an idea of what the data looks like. He experiments with touching the copper directly, and touching it through a piece of clear tape.

We’ve seen the CapSense library at work before in this interactive exhibit piece.

Continue reading “Simple Touch Sensors With The Arduino CapSense Library”