3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino Binary Alarm Clock

Step 8The snooze touch sensor

The snooze touch sensor
«
  • touch_aluminum_tape.jpeg
  • touch_tape_wire.jpeg
  • touch_resistor.jpeg
  • touch_paper.jpeg
  • touch_paper_glued.jpeg
The principle behind the touch sensor is quite simple. It uses two pins; a send pin and a recieve pin. A resistor connects the two pins, and something conductive, e.g a piece of aluminum foil, is connected to the recieve pin. The foil will work as a capacitor

When the send pin toggles state, the recieve pin will also, but with a slight delay, depending on the size of the resistor and the capacitor. If something conductive, e.g your hand, comes close to the foil the capacitence will change. This will cause the delay to also change,  so by measuring the delay you will know if something is close to the sensor.

There's a good library that does all this measuring for you, called CapSense, written by Paul Badger. Info about the library and a better explanation of how the sensors work can be found here: CapSense library

Building the touch sensor:

1. Attach the aluminium tape or foil on the inside of the box lid.
2. Strip of the insulation from the end of a wire and tape it to the aluminum.
3. solder a 1 MΩ resistor to the other side of the wire. (The value of the resistor isn't critical, but has to be fairly high, just try with what you have handy and see if it works )
4. Cut out a piece of paper that covers the inside of the lid.
5. Glue the paper over the aluminum foil.


« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
1
Author:njakol