![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| The sensor is formed by a series of copper trace that do not touch. A resistance material is put over the sensor so, when it is press the resistance is lower and a voltage generated and detected by the Comparator (LM339). The voltage activates the 4066 analog switch. If I don't used the .047uf capacitor the switching is unreliable. It fluctuates on-off. With the .047uf cap it works better. It doesn’t fluctuate...but the switching is not fast enough. [I try a small Capacitor value and the erratic on-off behavior continues. A large cap value takes to long to activate the switch. (The 4066 substitutes a piano keyboard - this is how I know that its behavior is not fast enough). I believed this is because of the charging/discharge time of the cap. What can I do to make it switch faster? (the control input lines off the 4066 are connected to ground. Also the inputs of the LM339.) Thanks, Last edited by prprog; 5th August 2008 at 09:04 PM. | |
| |
| | (permalink) |
| Instead of the capacitor (and its RC time constant) you may add histeresis to the comparator circuit. Use a large value resistor between the comparator's output and its "+" input. If the "+" input is the one attached to the sensor (1MΩ to ground) try 10MΩ, if the "+" input is the reference divider (two 100KΩ) try something like 470KΩ to 1MΩ.
__________________ E Cerfoglio Buenos Aires Argentina Last edited by ecerfoglio; 5th August 2008 at 09:23 PM. Reason: typo - divider's R values | |
| |
| | (permalink) |
| I agree with ecerfoglio. You need hysteresis. I would try to do it like this. It should work, if the resistance of your touch pad will go low enough. If not, you could try changing the 1Meg to a larger value. I built in lots of hysteresis for noise immunity, but you still might need a small capacitor across your touch pad, because your body will probably pick up noise from the mains. | |
| |
| | (permalink) |
| The original circuit had the 100k and 10k resistors as negative feedback. A comparator must never have negative feedback because it is not frequency compensated like an opamp. A comparator oscillates at a high frequency with negative feedback.
__________________ Uncle $crooge | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
Thanks, | ||
| |
| | (permalink) |
| Did you try the circuit changes I suggested? | |
| |
| | (permalink) |
| Yes I did. The results are the same. The new circuit (Roff suggested circuit) works...but still it needs the capacitor on the sensor, which makes its behaviour slower. I am using a .047uf cap. Thanks. Last edited by prprog; 8th August 2008 at 04:56 AM. | |
| |
| | (permalink) |
| I don't see why the 339 would not be fast enough. Perhaps it is your touch sensor. Maybe it is holding a charge and needs a little load. Just a thought
__________________ Forget injuries, never forget kindnesses. | |
| |
| | (permalink) |
| As I said previously, I suspect he is injecting AC picked up by his body from nearby mains wires. You don't see many DC touch switch circuits, possibly for that reason. Perhaps if the application required a toggle function, you could make it work in the presence of mains noise. | |
| |
| | (permalink) | |
| Quote:
The correct behaviour must be to stay on when touch. How do I set "a little load" on the sensor? (for the comparator circuit) Thanks a lot. Last edited by prprog; 8th August 2008 at 03:27 PM. | ||
| |
| | (permalink) |
| It's possible to use a comparator as a poor man's op-amp (with negative feedback) but you need to add a capacitor in the feedback network to prevent oscillation.
__________________ I also post at the following sites: http://www.stop-microsoft.org http://www.heated-debates.com Screen name: Aloone_Jonez | |
| |
| | (permalink) | |
| Quote:
An opamp is compensated with an internal capacitor that reduces its gain at high frequencies so that it doersn't oscillate when negative feedback is applied. A comparator does not have an internal compensation capacitor so it has phase-shift and plenty of internal gain at high frequencies.
__________________ Uncle $crooge Last edited by audioguru; 10th August 2008 at 01:37 AM. | ||
| |
| | (permalink) | |
| Quote:
I think Hero means you can add a pole in the loop (cap from output to GND) to stabilize an LM393 which has negative feedback. I don't htink he was implying that that is needed here. I seem to recall trying that and getting some low-level oscillation on the output, but my memory may be faulty. | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Switching problem with 4066 | jjjjjj | Electronic Projects Design/Ideas/Reviews | 4 | 10th March 2007 02:35 PM |
| switching with out using analog switch | waqar | Electronic Projects Design/Ideas/Reviews | 3 | 11th December 2006 06:10 PM |
| How do I control 4066 with a LDR | AllanBertelsen | Electronic Projects Design/Ideas/Reviews | 7 | 20th April 2006 10:47 AM |
| Smal Analog Switch other then MT8816 | dereksohail | General Electronics Chat | 1 | 21st December 2004 10:16 AM |
| programming for analog switch | waqar | Micro Controllers | 0 | 25th April 2003 11:29 AM |