Вы находитесь на странице: 1из 22

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

Page 1
All the circuits and projects we describe in these articles consist of very important "building blocks" that you can add to other designs. This time we describe the concept of touching a plate (or two plates separated by a small gap) and turning a circuit ON or OFF. A TOUCH PLATE is classified as a high impedance device (or high impedance circuit) as the effect of a finger will be detected by the circuit connected to the plate. To learn more about the concept of high impedance circuits, see Page 77 of our Basic Electronics course. If only a single plate is present, the circuit will actually be picking up "mains hum" from the finger. To prove this, take the project into an open space such as a large park and try the circuit. It will not work. If the plate has a signal on it (from an oscillator), the effect of your finger will be to remove the signal (or reduce its amplitude considerably) and a detecting circuit will be activated. If the circuit has two plates, it will be registering the resistance of your finger. If the circuit has 4 plates, it will use two to turn the circuit ON and two to turn the circuit OFF. There are a number of different types of TOUCH PLATES and different effects can be created by the circuit. 1. Touch a set of pads and the project turns on. When the finger is removed, the circuit turns off. The finger can touch the pads for any length of time. We also include the feature where the circuit extends the ON period, so the circuit stays on for a length of time after the finger is removed. This is shown in Circuits A. 2. Touch a set of pads fairly quickly and the project turns on. Touch the pads again for a short period of time and the circuit turns off. This is called the "Flip-Flop" effect. If the finger is kept on the pads, the circuit will turn on-off-on-off at a rate of about once per second. This is shown in Circuits B. 3. Touch one set of pads to turn the circuit on and another set of pads to turn the circuit off. This is shown in Circuits C.

CIRCUITS A
Here are a number of circuits that turn on a device when the touch-pad is touched.

1 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

The circuit above is the simplest Touch Switch. It is called a "super-Alpha pair" and is actually identical to a single transistor with a very high gain. Putting a finger on the touch pads turns the top transistor ON and this transistor turns on the bottom transistor. When the finger is removed, the circuit consumes less than a microamp.

The 555 can be used to create a Touch Switch. The only problem with this is the 555 consumes about 8mA, at all times when the supply is connected. The circuit above turns on the LED when the finger is applied and pin t becomes "open circuit." This allows the 10u to charge via the 100k resistor and when pin 6 detects a HIGH, the LED turns off. The finger should be removed before this occurs. See below for an ON-OFF touch switch using a 555.

2 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

The Touch Switch circuit above is a very complex design to do a simple task. It is also a very poor design as the biasing (turn-on) for the output transistor is via a resistor and the output transistor is turned off by taking the biasing current to the 0v rail. This is a wasteful design if the circuit is to be powered by a battery.

The circuit above has a signal "sitting" on the TOUCH PLATE via the oscillator made up of a Schmitt trigger between pins 1 and 2. The operates as a square-wave oscillator at approximately 150 kHz. The oscillator's output gets ac-coupled to R2 that sets the drive level and hence, the sensitivity for the touch pad. Applying negative excursions of several volts of a square-wave signal to its gate repetitively drive N-channel JFET Q 1 from conduction into cutoff. An

3 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

approximation of the square wave swinging from 0 to 12v appears at Q 1's drain. A peak detector circuit formed by D1; R7 and C4 provides sufficient dc voltage to force IC1B's output to a logic low. However, if someone touches the touch pad, any added capacitance to ground reduces the ac drive at the FET's gate, and Q 1 continuously conducts. The square-wave voltage applied to D1 decreases. The voltage on C4 drops below the logic threshold, and IC1B's output goes high. You can adjust R2 to set sensitivity and compensate for device-to-device variations in the FET's pinch-off voltage.

The following circuit does not work. It uses a CD 4001

The TRUTH TABLE for a NOR gate is:

NOR GATE INPUT OUTPUT 0 1 0 1 0 0 1 1 1 0 0 0

We can see from the Truth Table that the output of a gate only changes when both inputs are LOW. For the top gate, pin 1 never goes low so this type of gate will not work. Try a NAND gate:

4 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

The circuit above does not work. By checking the Truth Table, we see the gates are correct:

NAND GATE INPUT OUTPUT 0 1 0 1 0 0 1 1 1 1 1 0

But the circuit does not turn off. The reason is the 4u7 is not charge or discharged by any component in the circuit. When the circuit is first turned on, the electrolytic is uncharged and pin 5 is effectively connected to pin 3. If output pin is HIGH, pins 5&6 will be HIGH and pin 4 will be LOW. This will make pin 3 HIGH. Both the Touch Wires will be HIGH and touching them will not change the state of the circuit. We need a component to allow the 4u7 to charge and make pins 5&6 LOW. The next diagram does this:

5 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

The 100k "safety resistors" have been removed as they do not play a part in the operation of the circuit and the touch wires have been connected to the circuit to have the greatest effect.

CIRCUITS B
The following circuits show a "flip-Flop" effect. The circuit changes state, each time the touch pads are touched.

If a finger is kept on the touch plates in any of the toggle circuits above, the circuit will oscillate ON, OFF, ON, OFF at a low frequency. The frequency of 3 sec, 0.5 sec has been identified in

6 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

the top circuit. An improvement to the Toggle Touch Switch above, to keep the charge on the 100n, is to use a second gate:

A touch switch can be made with 2 gates from a 4049UB IC, as shown in the following circuit. It has proven to be reliable at 6v and 12v. The design has the advantage that the output does not cycle if a finger is kept on the Touch Pads.

CIRCUITS C
These circuits have two touch plates. One touch plate turns the circuit on and the other plate turns the circuit off.

7 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

Mouseover:

to see circuit work

The TOUCH-PADS deliver current from the power rail to the input of the circuit, via a moist finger. The finger acts as a very high vale resistor. Note the 4M7 feedback resistor that keeps the circuit on when the finger is removed. The circuit above is available from Talking Electronics as a kit. The kit is called TOUCH SWITCH:

8 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

TOUCH SWITCH USING A CD 4011 IC


A TOUCH SWITCH using a CD 4011 is shown in the diagram above. A simpler version is shown below:

When the circuit is first turned on, the two gates will "race" and the fastest gate will create a HIGH output. It cannot be determined if the LED will light when the circuit is first turned on. By adding the 100p (shown in red) to the position shown on the circuit, one input of the gate will start with a LOW and this will make pin 4 HIGH. The top gate will have HIGH on both inputs and the output will be LOW. This will turn on the LED. It is not know why the previous circuit used all 4 gates of the 4011. The circuit was taken from a kit manufactured by a non-electronics person and he did not investigate the possibility of simplification. Since the output of a CD 4011 is not capable of sinking or sourcing a high current, you can buffer the output of the gate with the third gate in the chip and wire it as an inverter.

9 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

ON-OFF TOUCH SWITCH USING A 555 IC


For those who like the rugged 555, we have included a 555 ON-OFF touch switch.

TOUCH PADS
A touch Pad can be obtained from many different sources. The photos below show a touch pad obtained from a toy. Some of the very light touch buttons consist of a small carbon block mounted in silicon rubber and when the button is pressed, the carbon block touches the pad and reduces the resistance between the two interleaved tracks.

3 TOUCH PADS

10 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

Close-up of the touch pad


This part of the circuit board can be cut away and used as a touch pad for the circuits in this discussion. The pads are already protected from corrosion and form a very good design for detecting a finger. The important feature of the pad is the number of interleaving fingers as this is equivalent to a pair of lines about 12cm long and when a finger is applied, the resistance between the lines drops to between 150k and 850k, depending on the pressure and moisture in the finger.

HIGH IMPEDANCE CIRCUIT


We have already said a touch pad is a high impedance device (circuit), but what does this mean and how does it work? We are going to explain why it must be a high impedance circuit. Below we have four different touch pad circuits. The supply voltage does not matter, however we have shown it as 6v. The main purpose of a touch pad is to reduce the voltage on the "output." Generally this must be15% - 25% of rail voltage to trigger the circuit.

If we take the first circuit "A" and place a finger on the touch pad, the circuit becomes equivalent to two resistors in series. These two resistors form a voltage divider and the voltage on the output is in proportion to the value of the resistances. We will assume the resistance of the finger is 1M to make the discussion simple. The 5M resistor is not a standard value but s also used to make the discussion easy to understand. In the diagrams below, the output of the touch pad is 6v when nothing is touching the pad. When a finger touches the pad, the voltage drops to 1v. Without using mathematics, we can see the 5Meg resistor is in series with the 1Meg

11 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

finger, making a total of 6Meg. This means 1v appears across each 1Meg and thus the output is 1v.

If we apply the same finger to circuit "B," the output voltage will drop to 3v. This voltage may not be low enough to trigger the circuit connected to the touch pads.

If we apply the same finger to circuit "C," the output voltage will drop to 5.4v. This voltage will not be low enough to trigger any circuit connected to the touch pads. Let's look at how this voltage is created. The two resistors are 100k and 1M in series. If we convert the 1M into ten 100k resistors, each resistor will have the same voltage across it. There are 11 x 100k resistors and this means very close to 0.6v will appear across each resistor. That is why the output voltage will be about 5.4v when the finger touches the pad.

12 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

From this we can see the "pull up" resistor must be as high as possible so the effect of a finger will reduce the output voltage of the pad to a low value. There is one other important factor to remember. The output of a touch pad must be connected to a high impedance input. The diagram below shows the gates and a "super-alpha" transistor. These all have a high impedance input.

High Impedance Inputs


Why do we need a high impedance input? Suppose the circuit we are connecting to the touch pad has a low impedance. It will be equivalent to placing your finger on the touch pads. The output will go low and your finger will not be able to create a HIGH-LOW voltage change. The input impedance of a gate can be considered to be very high (greater than 10M). When the "super-alpha" pair is connected to the touch switch, the voltage on the "output" of the touch pad will not rise above 1.3v. This is due to the base-emitter junctions of the two transistors. The output of the super-alpha pair will be low. When a finger is placed on the touch pads, the output of the super-alpha pair will rise. An alternate circuit for connecting touch pads to a super-alpha pair is shown below:

LATCH CIRCUIT
Here are two latch circuits using transistors. The first operates exactly the same as the 4-transistor Touch Switch above. It can be used with a touch pad. It's another "Building Block" to add to your collection. The second circuit operates in the same way. When the circuit is first turned on, both transistors are not conducting. As the input voltage increases to 0.65v, the BC 547 transistor turns on and this turns on the BC 557. The BC 557 is connected to the base of the BC 547 and it takes over from the input voltage. The two transistors turn each other on until both are fully turned on. The supply must the turned off to reset the circuit.

13 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

Here is a Touch Switch circuit from a magazine:

Why use half a chip and a FET to do the same as our 74c14 circuit above? That's why you need to know how to design circuits, so you don't over-design. See our "Spot The Mistake" article for more over-designed and incorrectly designed circuits. You learn more from other people's mistakes than anything else.

USING A TOUCH SWITCH IN A PROJECT


1. DOORKNOB ALARM
The 74C14 (40106) is a hex Schmitt trigger IC with 6 gates that can be used for 6 different building blocks. Even though it has a "74" marking, it can be placed in a circuit with a voltage as high as 15v - all the other 74 series require a maximum of 5v for the supply. (More data on the 74C14 can be found in Chip Data eBook.)

14 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

In the following circuit, the gates are used to detect the touch of a door knob and produce an output that goes HIGH for approx 1 minute. As the capacitance on pin 1 is decreased, the frequency of the oscillator increases and this makes it easier for the human body to absorb the signal. Try changing this value as well as the coupling 5p6 to 22p that connects the oscillator to the detecting gate between pins 3 and 4.

The output of the above circuit can be taken to an alarm. Open the reed switch contacts and connect the reed switch to the output of the Door-knob alarm.

A suitable alarm can be found in the $2.00 "Junk Shops" for about $2.00 These consist of a piezo diaphragm and a driver circuit consisting of a transistor and COB (Chip On Board) to produce a very loud wailing sound. Some of the devices have an inductor to increase the voltage to about 60v to 80v to produce an output of about 90dB. The device we bought had a transformer to drive the piezo to 80v. The photo shows the device and magnet. The magnet holds a reed switch closed and when the two items are parted, the reed switch opens and sounds the alarm.

15 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

The reed switch can be seen in the photo below. It is an uncovered reed switch consisting of two soft-iron strips that overlap slightly in the centre. When a bar magnet is brought near, the two strips become magnetised with each forming a north at the top and south pole at the bottom. This means the top strip has a south pole at its bottom and the lower strip has a north pole at its top. Since unlike poles attract, the two strips will touch each other when a bar magnet is present.

When a magnetic object comes in the vicinity of a magnet, it becomes temporarily magnetised with North and South poles. This is shown in the diagram. This is how the two strips of the reed switch close and "stick together" when the magnet is near.

16 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

The magnetic field of the bar magnet causes the two parts of the reed switch to become "magnetic."

The side of the alarm showing Chime (Doorbell), Off and Alarm. See below for a link to these sounds.

The underside of the alarm showing the COB module and the 4 pins from the transformer that drives the piezo diaphragm. To hear the "DoorBell" sound and "Alarm" sound, click HERE. or here: SOUND

17 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

Open the reed switch so the Door-Knob circuit can operate the alarm.

2. TOUCH MOTOR CONTROL


- by L. W. Brown, Burwood, Victoria, Australia. The following circuit is suitable for operating a12v motor such as on a display in a shop window. The 50mm x 50mm touch plate can be stuck to the inside of the glass and anyone placing their finger near the touch plate (on the outside of the window) will prevent the signal entering the charge pump section of the circuit and keeping the 10n charged. The circuit will take a few seconds before the 10n is discharged via the 10M and the motor will operate.

3. TOUCH-ON TOUCH-OFF
This circuit is an extension of the Door-knob Alarm presented above. It turns on an output when the Touch-Plate is touched very briefly and turns off the output when the plate is touched for a slightly longer period of time. As the capacitance on pin 1 is decreased, the frequency of the oscillator increases and this

18 of 19

6/11/2011 12:49 AM

Touch Switch

http://talkingelectronics.com/projects/TouchSwitch/TouchSwitch-1.html

makes it easier for the human body to absorb the signal. Try changing this value as well as the coupling 5p6 to 22p that connects the oscillator to the detecting gate between pins 3 and 4. A reader had success when the capacitor on pin 1 was reduced to 5p6 as this increased the frequency of the oscillator to approx the maximum frequency of the gate and this high frequency was readily absorbed by the body when the touch plate was touched.

TOUCH-ON TOUCH-OFF SWITCH


This article has covered more than 10 building blocks and shown how to adapt a low-cost item in a junk shop to a circuit you have already designed. It has also covered the concept of a HIGH IMPEDANCE CIRCUIT and FEEDBACK to keep a circuit stable in either of its two states. Even if you think you will never need a TOUCH SWITCH in a future project, the building blocks we have covered can be used in lots of different circuits and if you build them, you will have a much-better understanding of how they work.

26/5/10

19 of 19

6/11/2011 12:49 AM

Touch Switch

http://www.aaroncake.net/circuits/touch.asp

Home > Circuits > Other > Touch Switch Author Views 168,169 Views Today 28 Rank Comments 49

A touch switch is a switch that is turned on and off by touching a wire contact, instead of flicking a lever like a regular switch. Touch switches have no mechanical parts to wear out, so they last a lot longer than regular switches. Touch switches can be used in places where regular switches would not last, such as wet or very dusty areas.

Schematic

Parts
Part C1 R1, R2 R3 U1 1 2 1 1 Total Qty. Description 10uF 16V Electrolytic Capacitor 100K 1/4 Watt Resistor 10 Meg 1/4 Watt Resistor 4011 CMOS NAND Gate IC Board, Wire, Socket For U1 Substitutions

MISC 1

Notes
1. The contacts an be made with just two loops of wire close together, or two squares etched

1 of 3

6/11/2011 12:50 AM

Touch Switch

http://www.aaroncake.net/circuits/touch.asp

close together on a PC board. 2. When activated, the output of the circuit goes high for about one second. This pulse can be used to drive a relay, transistor, other logic, etc. 3. You can vary the length of the output pulse by using a smaller or larger capacitor for C1.

Related Circuits
Air Flow Detector, Wire Loop Alarm, Simple Two Speed Contactor DC Motor Controller , 7 Segment LED Counter, Simple Lie Detector, Low Voltage Alarm, Video Stabilizer/MacroVision Removal, Pulse Width Modulation DC Motor Control, Simple Polarity Tester, Pine Racecar Victory Judge, Rain Detector, Time Delay Relay, Time Delay Relay II, Stepper Motor Controller, Touch Switch, Video Activated Relay, Digital Keypad Combination Lock, AC Motor Speed Controller, Simple Servo Controller, Water Detector With Sump/Bilge Pump Controller, Simple Touch Switch
Flow Switch & Sensors Flow & Level Sensor, Switch & More! Durable, Reliable & Custom Products Hyosung Power Transformer Manufacturer of 765kV power TR Over 40 years of experience Multi-turn Rotary Sensors Contactless, Non-mechanical Absolute Digital, Analog Outputs
www.thomasprod.com

www.hyosungpni.com

www.evrtp.com

Comments
Add A Comment Touch Switch Tuesday, March 09, 2010 8:00:02 AM jay i need help!!!!!! how will be the out put taken and how will be the in put given their is only one out put terminal if i want connect a led how can i connect and a switch needs a input supply where should i give in put can i use ic7400 for nand gate please help me its urgent thank u Saturday, February 06, 2010 10:28:44 Touch Switch anonymous PM I need this to work with batteries... 3.7v, 6v, and 7.2v... all pushing up to 2amps. How can I configure this to work with all three situations? Touch Switch Monday, June 15, 2009 11:27:16 PM Godofredo Gregorio Jr. It's so useful. We can use it in many different way. It can be a touch switch to a 220volt lamp with a 220volt, 5amp relay connected at the output of the circiut. It's great in everyday use.... JonjonGregorio-Philippines Monday, February 16, 2009 11:21:20 Touch Switch anonymous AM what the output is going to be?? can i put an led to know if the circuit is working or not?? does the circuit working by touching wires by fingers or what?? any one knows the answers, please tell me cuz i am doing this device at the moment. thnks alot. Monday, February 16, 2009 11:08:33 Touch Switch cuan AM can i make a touch switch using two scr??? if can then how does it work. and the circuit only power by dc voltage so i have a hard time to turn off the scr.. only one touch switch is needed and the touch switch use to turn and off the bulb

2 of 3

6/11/2011 12:50 AM

Touch Switch

http://www.aaroncake.net/circuits/touch.asp

Tuesday, December 23, 2008 10:02:21 AM What am i going to do inorder to make the touch switch just like any other ordinary switches which "on" state is permanent unless it is turned off??? Friday, November 07, 2008 5:17:59 Touch Switch gardenyu PM I wonder where can I buy a fairly big touch switch? ( about 1 to 2 inch diameter)? anonymous Touch Switch Touch Switch Monday, October 27, 2008 3:59:51 AM anonymous i was thinking about adding one of these touch switches to my shaved door handles, so all you do isun lock the car and hit the touch switch . probally mount it behind a window or where the door handle used to be. Thursday, October 09, 2008 1:56:26 Touch Switch jazk PM anybody know about this title "touch switch" ...what the function and what use for this...? Touch switch ....Main supply Tuesday, September 16, 2008 Bee detection 11:03:09 AM Great job and works right away ! I need to get an image of the main supply (220V- 110V 50/60Hz)but do not have an access to the hot wires....just the isolated cable I need to get the Freq (not a Pb) but also the phase (Zero crossing detector) on rising edge.... any idea ????? The last 10 comments are currently shown. Show All Comments.
Thin-film Pressure Sensor Measure Pressure Distribution with our Tactile Pressure Sensors

Add A Comment

www.Tekscan.com/Pressure-Sensors www.programmablepower.com

AMETEK Programmable Power AC / DC / Modular Power Products Electronic Loads / Custom Power Motor Controller Tutorial Free Web Tutorials from Galil, the World Leader in Motor Controllers.

www.GaliLmc.com

<- Back

Forward ->

Remote

Mail Me

Search

Back To Circuits Page | Mail Me | Search

3 of 3

6/11/2011 12:50 AM

Вам также может понравиться