{"id":51,"date":"2012-07-04T14:04:01","date_gmt":"2012-07-04T19:04:01","guid":{"rendered":"http:\/\/www.hackingsma.com\/?page_id=51"},"modified":"2013-08-28T17:29:52","modified_gmt":"2013-08-28T22:29:52","slug":"touch-switch","status":"publish","type":"post","link":"http:\/\/www.hackingsma.com\/?p=51","title":{"rendered":"Touch Switch"},"content":{"rendered":"<p style=\"text-align: left;\">I wanted to find a switch that Alejandro could operate. We tried all of the most sensitive mechanical switches available to us but he wasn&#8217;t able to operate any of them. Alejandro can move his fingers but he isn&#8217;t able to apply any force to speak of. I knew that he would be able to operate a capacitive proximity sensor, since it only requires that he touch the sensor &#8211; no pressure is needed. I did some searching and did find a few assistive products, but they were all rather expensive. Furthermore they were all designed as remote switches, \u00a0ie. they would operate a device (eg. electronic toy) that was connected remotely to the switch via wires. At Alejandro&#8217;s young age we felt that it would be better for him cognitively if the device that he operates is the same as the one that he touches, in order to better develop the cause\/effect wiring in his little brain. Hence the birth of the Touch Switch.<\/p>\n<p>The Touch Switch is an extremely sensitive capacitive proximity sensor switch. It is a small two-sided circuit board, designed to be as small and cheap as possible so that it can easily be embedded in just about anything for modification (eg. electronic toy).<\/p>\n<p><a href=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-146\" title=\"Touch Switch R2 PCB (top)\" alt=\"\" src=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB1-300x225.png\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB1-300x225.png 300w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB1-150x112.png 150w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB1-400x300.png 400w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB1.png 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>\u00a0<em><a href=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-147\" title=\"Touch Switch R2 PCB (bottom)\" alt=\"\" src=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB2-300x225.png\" width=\"300\" height=\"225\" srcset=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB2-300x225.png 300w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB2-150x112.png 150w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB2-400x300.png 400w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/touchR2PCB2.png 640w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/em><\/p>\n<p>The Touch Switch works by detecting a change in capacitance between a <em>sensing plate<\/em> and ground. The sensing plate is just a conductor with a large surface area (eg. piece of metal foil). When the sensing plate is approached by a finger the capacitance rises and the switch is closed. When the finger is removed the capacitance drops and the switch is opened.<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSensorDiagram.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter  wp-image-207\" title=\"Touch Sensor\" alt=\"\" src=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSensorDiagram.png\" width=\"385\" height=\"289\" srcset=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSensorDiagram.png 641w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSensorDiagram-300x225.png 300w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSensorDiagram-150x112.png 150w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSensorDiagram-400x300.png 400w\" sizes=\"auto, (max-width: 385px) 100vw, 385px\" \/><\/a><\/p>\n<p>At the heart of the Touch Switch is the <a title=\"PCF8883 Datasheet\" href=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/PCF8883.pdf\" target=\"_blank\">NXP PCF8883<\/a>\u00a0integrated circuit. The circuit board measures 0.385&#8243; x 0.555&#8243; and operates from a 3-9 volt DC power source which makes it perfect for modifying most toys.\u00a0Connected to the circuit board are five wires:<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\"><strong>Wire<\/strong><\/td>\n<td valign=\"top\"><strong>Terminal<\/strong><\/td>\n<td valign=\"top\"><strong>Description<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">RED<\/td>\n<td valign=\"top\">V+<\/td>\n<td valign=\"top\">3-9 volts DC<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">BLACK<\/td>\n<td valign=\"top\">GND<\/td>\n<td valign=\"top\">GND<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">VIOLET<\/td>\n<td valign=\"top\">SW<\/td>\n<td valign=\"top\">normally open switch contact<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">VIOLET<\/td>\n<td valign=\"top\">SW<\/td>\n<td valign=\"top\">normally open switch contact<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">ORANGE<\/td>\n<td valign=\"top\">TOUCH<\/td>\n<td valign=\"top\">touch sensor input<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>The orange wire is connected to a sensing plate.\u00a0In most circumstances a 1&#8243; diameter aluminum foil disc covered by clear cellophane tape works well as a sensor.\u00a0Sensitivity is increased by increasing the area of the sensing plate. Placing a thin insulator (piece of tape) over the sensing plate also improves functionality by causing a more dramatic increase in capacitance when the sensor is actually touched. \u00a0It is important to keep the length of the orange wire as short as possible. The range of capacitance that the touch sensor can measure is limited. If the orange wire is too long then the baseline capacitance will be too high and the Touch Switch will not function properly. A sensing plate that is too large will have the same effect. The length of the orange wire should be less than a few inches.<\/p>\n<p>When the Touch Switch is triggered the two violet wires are connected together by the circuit using a solid state relay. \u00a0The violet wires should be connected across the terminals of the device&#8217;s switch\/pushbutton whose function is being made accessible. The maximum current handling of the relay is 200mA, which is plenty for most electronic toys that play music, make sounds and flash lights. It may be not suitable for toys that use large batteries (eg. C or D cells) and have motors. If the relay chip is switching too much current it will get hot and eventually burn out.<\/p>\n<p>The red and black wires are connected so that the Touch Switch receives power when the device it is being used to modify is powered on. This should be between 3 and 9 volts DC. The Touch Switch circuit constantly auto-calibrates its baseline capacitance measurement. When power is first applied it may take a few seconds for it to establish proper calibration.<\/p>\n<p>NOTE: I have found that toys that use a pair of 1.5V batteries (eg. AA) may not work reliably as the batteries begin to drain. For reliable operation the Touch Switch power supply must remain above 3V. Toys that use 3-6 1.5V batteries work best.<\/p>\n<h2>Circuit Documentation<\/h2>\n<p>Here is the schematic:<\/p>\n<p style=\"text-align: center;\"><a href=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSwitchR2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-92 aligncenter\" title=\"TouchSwitchR2 Schematic\" alt=\"\" src=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSwitchR2.png\" width=\"660\" height=\"387\" srcset=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSwitchR2.png 660w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSwitchR2-300x175.png 300w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSwitchR2-150x87.png 150w, http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TouchSwitchR2-400x234.png 400w\" sizes=\"auto, (max-width: 660px) 100vw, 660px\" \/><\/a><\/p>\n<p>Here is the Bill of Materials with part numbers from\u00a0<a href=\"http:\/\/www.mouser.com\">Mouser Electronics<\/a>.<\/p>\n<table cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\"><strong>Designator<\/strong><\/td>\n<td valign=\"top\"><strong>Part Type<\/strong><\/td>\n<td valign=\"top\"><strong>Manufacturer Part#<\/strong><\/td>\n<td valign=\"top\"><strong>Mouser Part#<\/strong><\/td>\n<td valign=\"top\"><strong>Mouser USD<\/strong><\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">C1<\/td>\n<td valign=\"top\">0.47u<\/td>\n<td valign=\"top\">CGJ4J2X7R0J474K<\/td>\n<td valign=\"top\">810-CGJ4J2X7R0J474K<\/td>\n<td valign=\"top\">$0.15<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">C2<\/td>\n<td valign=\"top\">1u<\/td>\n<td valign=\"top\">CGJ4J2X7R1C105K<\/td>\n<td valign=\"top\">810-CGJ4J2X7R1C105K<\/td>\n<td valign=\"top\">$0.16<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">R2<\/td>\n<td valign=\"top\">6.81K<\/td>\n<td valign=\"top\">CRCW08056K81FKEA<\/td>\n<td valign=\"top\">71-CRCW0805-6.81K-E3<\/td>\n<td valign=\"top\">$0.08<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">C4<\/td>\n<td valign=\"top\">22p<\/td>\n<td valign=\"top\">GRM21A5C2E220JW01D<\/td>\n<td valign=\"top\">81-GRM21A5C2E220JW1D<\/td>\n<td valign=\"top\">$0.42<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">C3<\/td>\n<td valign=\"top\">22p<\/td>\n<td valign=\"top\">GRM21A5C2E220JW01D<\/td>\n<td valign=\"top\">81-GRM21A5C2E220JW1D<\/td>\n<td valign=\"top\">$0.42<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">K1<\/td>\n<td valign=\"top\">200mA 60V<\/td>\n<td valign=\"top\">ASSR-1218-003E<\/td>\n<td valign=\"top\">630-ASSR-1218-003E<\/td>\n<td valign=\"top\">$1.78<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">R1<\/td>\n<td valign=\"top\">348<\/td>\n<td valign=\"top\">CRCW0805348RFKEA<\/td>\n<td valign=\"top\">71-CRCW0805-348-E3<\/td>\n<td valign=\"top\">$0.08<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">U1<\/td>\n<td valign=\"top\">PCF8883<\/td>\n<td valign=\"top\">PCF8883T\/1,118<\/td>\n<td valign=\"top\">771-PCF8883T1,118<\/td>\n<td valign=\"top\">$2.48<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Here are the Gerber files\u00a0and NC drill for the circuit board:<\/p>\n<p><a href=\"http:\/\/www.hackingsma.com\/wp-content\/uploads\/2012\/07\/TCHSWR2.zip\">Touch Switch R2 CAM files<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p style=\"text-align: left;\">I wanted to find a switch that Alejandro could operate. We tried all of the most sensitive mechanical switches available to us but he wasn&#8217;t able to operate any of them. Alejandro can move his fingers but he isn&#8217;t able to apply any force to speak of. I knew that he would be [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","odd"],"_links":{"self":[{"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":10,"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":406,"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=\/wp\/v2\/posts\/51\/revisions\/406"}],"wp:attachment":[{"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.hackingsma.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}