R
Rene
Hi!
I am designing a touch sensor on an AVR micocontroller. I have been
working on the Qtouch library for days now but with no luck, there is
nothing to be seen on the pins with the scope after flashing a sample
program into the mcu. It has been a big PITA to even get the program to
compile because the samples are made for AVR studio and Qtouch studio
which are windows-only and I use Linux with avr-gcc.
Now I have tried something else (this qtouch stuff is really starting to
be annoying, and when browsing the web it seems I am not the only one
who feels this way) and that is showing the value the ADC measures on 8
leds that are connected to a port when touching the pin with my finger
(so physical touch detection instead of capacitive) and it shows that
simply the 50 Hz that is in my body is enough to drive it to easily
detectable signals (like in my old home-build touch dimmer but that uses
a special ic). I intend to use a big pull down resistor, I guess 1 Mohm
or so (also as a bleeding resistor, the internal resistance of the ADC
is VERY high, it takes quite a while before charge disappears). The
internal pull up is too strong, then the ADC value gets influenced by
the touch too little. The AVR by the way has internal diodes on each pin
to Vcc and from ground, I believe these should give some protection
against discharges as well.
But now my question is: what series resistor should I use towards the
sensor? I am concerned about the transfer of static from my body onto
the mcu (which, at the same time, I want to measure). To make matters
worse, I'm building this device for a boy in a wheelchair on rubber
tires and filled with plastic sheets that rub against eachother. So I
really see a risk of the mcu not having a long life expectancy without
some precautions. So what value would be safe? If I use 1 MOhm for pull
down and 1 MOhm as series resistor, I get usable results (though ).
Would this be safe in the long term for the mcu?
An alternative would be to do it with a darlington transistor. But my
question still remains: what to do to prevent charge from the body
damaging my circuit?
Thank you very much in advance for your help!
Yours sincerely,
Rene
P.S. I ordered some ic's on Ebay in Hongkong. Today they were delivered
in a small box with their feet stuck into a piece of *styrofoam* (no, it
wasn't something antistatic, it was plain, cheap styrofoam). I guess the
people running the shop are traders and not electronic engineers...
I am designing a touch sensor on an AVR micocontroller. I have been
working on the Qtouch library for days now but with no luck, there is
nothing to be seen on the pins with the scope after flashing a sample
program into the mcu. It has been a big PITA to even get the program to
compile because the samples are made for AVR studio and Qtouch studio
which are windows-only and I use Linux with avr-gcc.
Now I have tried something else (this qtouch stuff is really starting to
be annoying, and when browsing the web it seems I am not the only one
who feels this way) and that is showing the value the ADC measures on 8
leds that are connected to a port when touching the pin with my finger
(so physical touch detection instead of capacitive) and it shows that
simply the 50 Hz that is in my body is enough to drive it to easily
detectable signals (like in my old home-build touch dimmer but that uses
a special ic). I intend to use a big pull down resistor, I guess 1 Mohm
or so (also as a bleeding resistor, the internal resistance of the ADC
is VERY high, it takes quite a while before charge disappears). The
internal pull up is too strong, then the ADC value gets influenced by
the touch too little. The AVR by the way has internal diodes on each pin
to Vcc and from ground, I believe these should give some protection
against discharges as well.
But now my question is: what series resistor should I use towards the
sensor? I am concerned about the transfer of static from my body onto
the mcu (which, at the same time, I want to measure). To make matters
worse, I'm building this device for a boy in a wheelchair on rubber
tires and filled with plastic sheets that rub against eachother. So I
really see a risk of the mcu not having a long life expectancy without
some precautions. So what value would be safe? If I use 1 MOhm for pull
down and 1 MOhm as series resistor, I get usable results (though ).
Would this be safe in the long term for the mcu?
An alternative would be to do it with a darlington transistor. But my
question still remains: what to do to prevent charge from the body
damaging my circuit?
Thank you very much in advance for your help!
Yours sincerely,
Rene
P.S. I ordered some ic's on Ebay in Hongkong. Today they were delivered
in a small box with their feet stuck into a piece of *styrofoam* (no, it
wasn't something antistatic, it was plain, cheap styrofoam). I guess the
people running the shop are traders and not electronic engineers...