Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

How to handle multiple touches at once with freetouch
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

How to handle multiple touches at once with freetouch

by zolianek on Tue Feb 04, 2020 11:06 am

Hi! I have a bit of a problem.
I am trying to make some device that would utilize the touch keys in order to control it. The mcu I am trying to use is the SAMD21E15 one but I've had the exact same problem using your trinket m0.

So my problems started right at the beginning when I just ran the freetouch example project. For my device I'd need for it to be able to recognize all the touch keys at once (that mcu has only 6 pins that seem to work but that'd be enough for me) so to eg. do one action when there's only one touched, another action when two of them are touched etc.

However when I ran the freetouch example project it looks like a totally impossible task. The problems start appearing right after I touch only two of them.
So when I am not touching any of the copper plates I'm using as sensors the readings vary between 150 and 250 depending on the pin. When I touch only one of them the value for that pin rises up to about 1000 which is plenty enough to set a simple action trigger when the value reaches eg. 500. But when I touch two of them then I am not getting the values of 1000 on both of them, instead it's somewhere around 400 for each pin. The situation gets even worse when I touch 3 plates as then the values read can be used to determine if the button is touched no more - all 3 of the readings drop close to the 250 base reading so it seems impossible to set any threshold to have 3 buttons activated at once and it's just half of the pins I wanted to utilise.

I can't believe that this is a proper working setup. Do I need to configure the freetouch pins in some special ways? Changing oversample and series resistor values gets it even worse as the readings for 3 pins touched at once drop below the base value, with any other resistor set they drop to less than a 100.

I am thinking that maybe this isn't as simple as just connecting some copper plates into the pins and it needs some more parts in order to get it to work properly?

Thanks in advance

zolianek
 
Posts: 11
Joined: Sun Jul 08, 2018 9:57 am

Re: How to handle multiple touches at once with freetouch

by zolianek on Mon Feb 10, 2020 8:06 pm

I'd still need help with this please.

zolianek
 
Posts: 11
Joined: Sun Jul 08, 2018 9:57 am

Please be positive and constructive with your questions and comments.