Dealing with Noisy/False reading touch sensing button
Posted: Fri Mar 24, 2017 3:38 am
I got this code here http://dpaste.com/24DDP4G, thanks to dhylands for his help
It is a simple code that does something when a push button is pressed and held for 3 seconds
any push button works fine except a touch sensing button:
https://learn.sparkfun.com/tutorials/at ... 1478358978
I'm using the one above.
At first i tried de-bouncing the push button with some help from the pydoc tutorial so there isn't any interference
with the 3 seconds countdown but it happens that I could not simply go ahead and press the push button as i pleased
because sometimes the "pressed" isn't detected and it gets even uglier with the touch sensing button
Anyways, as i mentioned, this code works great but touch sensing button is very noisy as if it's left floating
when i press and hold.
when i view this at the terminal, i get a stream of "Button pressed"
as if i'm repeatedly pressing and releasing the touch sensing button at a fast rate or the touch sensor is floating.
I have come across many pdf solutions but i'm pretty much limited to most of the options since i will need to make modifications to the
touch sensing board. I'm quiet certain that this issue can be resolved
via hardware or software is what i'm not sure of.
the board obviously does detect my finger but it's also picking up some other noise which needs to be filtered out.
Perhaps the speed at which the touch sensing button is reading my touch is pretty slow, choppy or something.
One thing i also thought about was that perhaps the capacitive area surface is too large. It is 18mm in diameter
and probably making a round surface area of about 3mm will do the trick since my finger will cover it completely
thus less susceptible to noise
Anyways helps ??
thanks
It is a simple code that does something when a push button is pressed and held for 3 seconds
any push button works fine except a touch sensing button:
https://learn.sparkfun.com/tutorials/at ... 1478358978
I'm using the one above.
At first i tried de-bouncing the push button with some help from the pydoc tutorial so there isn't any interference
with the 3 seconds countdown but it happens that I could not simply go ahead and press the push button as i pleased
because sometimes the "pressed" isn't detected and it gets even uglier with the touch sensing button
Anyways, as i mentioned, this code works great but touch sensing button is very noisy as if it's left floating
when i press and hold.
when i view this at the terminal, i get a stream of "Button pressed"
as if i'm repeatedly pressing and releasing the touch sensing button at a fast rate or the touch sensor is floating.
I have come across many pdf solutions but i'm pretty much limited to most of the options since i will need to make modifications to the
touch sensing board. I'm quiet certain that this issue can be resolved
via hardware or software is what i'm not sure of.
the board obviously does detect my finger but it's also picking up some other noise which needs to be filtered out.
Perhaps the speed at which the touch sensing button is reading my touch is pretty slow, choppy or something.
One thing i also thought about was that perhaps the capacitive area surface is too large. It is 18mm in diameter
and probably making a round surface area of about 3mm will do the trick since my finger will cover it completely
thus less susceptible to noise
Anyways helps ??
thanks