DIY Touch Sensor

DIY Touch Sensor
This is a short instructable on how to use the Qprox IC (QT113G) as a touch sensor. Using this IC, you can essentially turn any object into a touch switch. This simple circuit may be hooked up to a microcontroller (in this case I used the MAKE controller board).
 
Remove these adsRemove these ads by Signing Up
 

Step 1Gather all the necessary parts

Gather all the necessary parts
1. QT113 - can be ordered at Digikey DigikeyDigikey. Each one costs around $2.
2. 10mF capacitor
3. Wires
4. LED
5. breadboard or perfboard (if you choose to perf, you will obviously need a soldering iron and some solder)

« Previous StepDownload PDFView All StepsNext Step »
59 comments
1-40 of 59next »
Jan 16, 2011. 12:04 PMooda55 says:
This is a realy great project, ive been looking for an easy way to do this for ages, however i cant seem to find that chip anywhere
according to farnell its no longer manufactured, are there any alternatives?
Jan 19, 2012. 12:03 PMshadowdude777 says:
Hi there. I think you can use the newer equivalent, which is the AT42QT1011; you can read more info about the controllers here: http://www.atmel.com/dyn/products/devices.asp?category_id=170&family_id=697&subfamily_id=2109

These seem to be the newer equivalents to those old chips, and they look like they're much better, as, for instance, you only need to apply Vdd to one pin instead of the three in this instructable. It makes for a much neater setup.
Sep 17, 2011. 5:20 PMkthunt says:
I was looking at Digikey (which seems like about the only source for this line) and Atmel. It looks like they have mostly discontinued this chip set and replaced it with the QT1010-12.

The QT1010 and QT1011 work like the QT113 in basic mode. Only on while touched. The difference is the 1010 has a stuck key timer. These are good for keyboard, switch use.
The QT1012 only operates as an on/off toggle, like for lamps and such.

Also, the default output level has been changed to active-high so you don't have to invert the signal any more.
Jan 13, 2012. 12:39 PMalladin712 says:
I was looking at the QT1012 and it has 6 pins instead of the 8 described above. I'm a complete newb to making circuits. But I wanted to incorporate this idea into mounting an Led on to the bezel of my laptop instead of having one of those awkward usb ones. Any help would be appreciated.... diagrams would be great or even if you could point me in the right direction to a site pertaining to my project. Thanks in advance!
Jul 1, 2011. 5:08 PMteche says:
if you put a relay where the led is placed you can put 240v put 240volts through it and use it to turn off your lights at home :)
Solid State Relay.jpg
Mar 3, 2011. 12:37 PMslopes says:
Is this the same Touch switch IC as sold here?

http://www.hobbytronics.co.uk/manufacturer-hobbytronics/touch-switch-ic
Jul 28, 2010. 12:01 PMaltaholic says:
is there any way i would be able to make an on/off latch for the output?
Dec 22, 2010. 9:07 PMlasermaster3531 says:
If you connect both pin 3 and pin 4 to ground it will latch. There Is an 'ible somewhere around the site about building a USB powered proximity detecting led lamp. Just search up touch lamp and you should find it.
Jan 10, 2011. 10:14 AMaltaholic says:
great, thanks a lot. i'll check that out.
Nov 14, 2007. 11:28 AMFletcher says:
There are several chips that have inputs sensitive enough to be activated by touch (a 4017 decade counter, which can be used for LED chaser-type projects for example, is one.) I believe you can also achieve the same effect with a darlington pair, but I haven't tried it myself. For those of you interested in having your circuit remain on even after you've stopped touching the lead, Google "complementary latch."
Nov 17, 2007. 1:56 PMwiml says:
The qprox is nice because it's capacitive. You can put the sense wire behind a small amount of other stuff (veneer, glass, etc.) and it still works. (It's basically a free-running oscillator and some circuitry to detect when the frequency changes due to the added capacitance of somebody's nearby finger.) Another nice chip along these lines is the motorola MC33794, which simultaneously senses 9 electrodes. Good for small keypads (or for targeting airbags according to passenger height, which is what it was designed for).
Aug 12, 2009. 9:48 PMUnit042 says:
"(It's basically a free-running oscillator and some circuitry to detect when the frequency changes due to the added capacitance of somebody's nearby finger.) " So that's how it works? Just a change in capacitance leading to a changing oscillator frequency? This could be done with a 555, put a wire from one end of the timing capacitor, and have a microcontroller time the frequency. If there is a large change in frequency, the microcontroller knows there is a finger touching the wire. (Or, if you like simple analog electronics, like me, the output of the 555 goes through an RC that averages out that voltage, then another RC to smooth it even more. Then, a comparator watches both RC's simultaneously for a significant difference.) Just thinking out loud here...
Sep 22, 2010. 3:42 AMkoney says:
Nice thinkin... have you tryed it?
I han no luck buying QT113 - its not common in our country and dont want to order it from abroad ...
Id like to modify another project (http://www.instructables.com/id/Table-for-Electronic-Dreams/) and make it proximity sensitive - could be pretty cool - what do you think?
Aug 8, 2010. 3:10 PMshakespeare1212 says:
This device works based on the capacitance of your fingers, right? I would not work if you just touched the wire to a wall, or would it?
Jul 2, 2010. 12:17 PMlaraCat says:
can't believe this is the first time I've seen the MAKE controller! very interested in how you set up your output and the software you used. Can you post a link to any info about the NET connect software you used with flash? tx!
Jun 8, 2010. 2:30 AMscopevisions says:
i want to use it to turn ON... can you help me? nice table man! ;)
Jun 22, 2010. 8:51 PMalezito_gdl says:
See answer to the comment above :). BTW, you could use the output signal to activate, lets say a relay, so that you could step on and control something bigger than a LED. Nice Instructable!!!
Jun 19, 2010. 5:53 PMMANIAC says:
could you wire it so the LED turns on when you touch it??
Jun 22, 2010. 8:49 PMalezito_gdl says:
Looking at the operating voltages, I assume it uses TTL logical levels (0v for a logical "0"-off, and 2.7v to 5v for a logical "1"-on). So, this circuit is basically giving a logical 1 all the time as long as you are not touching the input wire. The easiest solution, (supposing you are using the direct output, in case you are hooking it To to the MAKE board, all you gotta do is to reprogram) is to add a generic logic inverter, such as the 74LS04, though that would represent a lot of wasted space. You could also build a simple inverter using 2 transistors and some resistors. Input signal for the inverter should be the output from the touch sensor circuit. The +5V would be wired to V+. 2N2222 general purpose NPN transistor should do the trick. Those are cheap and easy to get. Hope this answers your questions!. Image @ http://www.play-hookey.com/digital/experiments/images/ttl_inverter_sch.gif
Jun 7, 2010. 11:40 AMzen.webb says:
Hey, cool article; touch technology is really sweet! While you certainly can do it the way you show I have an alternative method that worked awesome for me, and was much simpler. Hopefully you will find it interesting. You can save on parts and money by actually removing the QT113 IC completely and using your microcontroller (I used an Arduino) to pump charge out from one pin and measure changes in that charge on another pin. The essential technology is the same as you have here, but I was able to do it with just an Arduino, a piece of aluminum foil and a single resistor! More info on capacitive touch sensing with an Arduino: http://www.arduino.cc/playground/Main/CapSense My attempt: http://cs.unk.edu/~webb/2010/03/capacitive-touch-input-device/
Feb 27, 2010. 9:52 AMae86boy says:
I am looking to construct a touch - sensitive device that will allow me to start a car.  All i need to do is create a switch capable of handling enough current to flip a relay at 12v dc.  Will a setup like this do that?

Forgive me, I'm not terribly tech-savvy.
Feb 12, 2009. 8:17 AMsillyrabbit says:
Hi all, looks like a great tutorial but I need help: I'm planning to use this in conjunction with a climbing frame: metal rungs, wooden uprights, to trigger audio when each rung is climbed on. However, I can't seem to purchase the qt110 ANYWHERE (well, I can but it involves buying a huge order which is way out of my budget) I only need about 20. I live in Ireland and my project is due in a couple of months so any suggestions anyone? Any help would be greatly appreciated :)
Feb 12, 2010. 3:18 AMdjdune says:
http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=427-1138-1-ND

now could anyone tell me:

i want to use the sensor with the arduino.

will it give me just binary on/off or can i measure the amount of capacitance?

Feb 12, 2010. 4:36 AMdjdune says:
digikey says it's just logic. there are some other ways to read voltage without a IC ( see http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1171076259/0 )

but is there an IC out there that will just output voltage, rather than flipping a switch?

thanks!
Nov 25, 2009. 2:24 PMnbru says:
Does anyone know if there's a way to de-sensitize the capacitance ability of the qt?
I'd like to be able to paint specific areas of a piece of aluminum so that they cannot send a signal to the sensor if touched...
I've tested it with several kinds of paint, but so far unsuccessfully...


Dec 2, 2008. 2:33 PMjack4645 says:
Could you use this to replace the key on a keyboard? I want to wire up a 10 key USB keypad with something like this to change the selection in a program running on my PC.
Mar 17, 2009. 7:03 PMsuperjames says:
Yes, I'm interested on how to do this. It works, but the key is always pressed "down" until touched then the key is up while touched. Is there a way to reverse it? thx
Mar 18, 2009. 9:51 AMdunnos says:
Maybe using a NOT port? i don't know i just heard of them during physics but it seems like a good solution.
Mar 18, 2009. 11:37 AMsuperjames says:
Thanks I believe that is the same thing a a digital hex inverter that someone suggested on another site. Gonna try it out! Thanks for paying attention in Physics class!
Mar 18, 2009. 11:47 PMdunnos says:
let me see a picture of the finished keyboard, please?
Mar 19, 2009. 12:10 AMsuperjames says:
I've actually got it rigged up to a gamepad and it's a friggin mess at this point! But it works, besides that NOT/inverter. I'll try to get a pic if you still want one.
Mar 19, 2009. 11:50 PMdunnos says:
yes please
Mar 20, 2009. 4:48 PMsuperjames says:
Here it is. I got the Hex Inverter working too! I just need to find a better capacitor besides a pile of pennies!
Photo 308.jpgPhoto 309.jpg
Nov 5, 2008. 1:10 PMnoctune says:
I cant find any QT113 parts in my country. Is there any other similar touch sensor I can use?

I'm trying to make a led cube activated by touch on any face.
May 11, 2008. 8:21 PMjaneoblivian says:
so are those QT113s still available? digikey has them listed as "non-stock." where else can one find these things? also, is there a difference between QT113-D, QT113-IS, QT113-DG, etc? digikey has like a whole page of them.
Aug 2, 2008. 2:37 PM3!3X says:
I got the QT110 and it works fine. It doesn't have an adjustable response time like the original, but 100 usec seems fine to me. I didn't dig in to all the differences, but for the purposes of this project the 110 is good.
Nov 29, 2007. 11:46 AMjonathryn says:
Is there a way you could toggle the sensor off and on?
Apr 22, 2008. 7:03 PMXellers says:
Just use a transistor as an inverter logic gate. Here is a web page with a schematic diagram: http://www.spsu.edu/cs/faculty/bbrown/web_lectures/transistors/
Or you could use this web page to make a more complicated inverter:
http://www.allaboutcircuits.com/vol_4/chpt_3/2.html
And if you're really crazy, you can wire up some motors and switches to this: http://goldfish.ikaruga.co.uk/not.html
Nov 30, 2007. 6:29 AMjonathryn says:
I think I may have been unclear--perhaps what I meant to ask is whether there is a way to toggle the output on/off with a single touch. I see that the LED is normally on, and that it turns off with a touch. Absent the touch, the LED turns on again. Is there a way to connect the chip in such a way that when you touch the sensor, the LED/output turns off and stays off, and then when you touch it again it turns on and stays on? The application I have in mind would be to use a number of these as selector switches, as with the old Bang & Olufsen receivers, which used slick touch-sensitive selectors to choose the audio source and volume.
1-40 of 59next »

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!
29
Followers
2
Author:giladlotan(giladlotan.com)
Work at the FUSE (future of Social Experience) Microsoft Lab in Cambridge, MA. Alumni of the Interactive Telecommunications Program, New York University. Most recent web visualization: http://giladlo...
more »