Hi
I'm trying to set up a touch pad where the user will keep their hand on it for a long time. At the moment the touch keeps auto calibrating and stops recognising the touch. Does anyone know a way to deal with this or how to turn off autocalibration?
I'm using makecode at the moment but I could switch to circuit python if touch is more reliable that way.
thanks
turn off autocalibration
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: turn off autocalibration
What does your current makecode look like?
Is it enough to run a loop with "is pressed" versus "not pressed"? Then add your own logic based on "is pressed" duration.
https://learn.adafruit.com/sensors-in-m ... tive-touch
Is it enough to run a loop with "is pressed" versus "not pressed"? Then add your own logic based on "is pressed" duration.
https://learn.adafruit.com/sensors-in-m ... tive-touch
- phantomchips
- Posts: 6
- Joined: Sun Dec 05, 2021 8:36 pm
Re: turn off autocalibration
That is how I was doing it. I have tried every way in makecode but realised now it's a hardware issue with the auto recalibrate. the hardware recalibrates when the user holds the captouch pad for any length of time. I want my users to hold the pad for 2 minutes. This means that when it auto calibrates while the person is touching it so the touch stops being recognised. Unless there is a way to turn off the autocalibration then it's not going to work with any make code configurations.
From what I have seen, nothing can be done about this. I have now switched to using a teensy which doesn't auto calibrate every minute or so.
From what I have seen, nothing can be done about this. I have now switched to using a teensy which doesn't auto calibrate every minute or so.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: turn off autocalibration
The options I found to manipulate the captouch calibration are to use a manual calibrate or to set thresholds. I don't think either would work well for your scenario of two minute hold.
https://makecode.adafruit.com/learnsyst ... ensitivity
I don't see CircuitPython doing the autocalibration so you could always explore that.
https://learn.adafruit.com/circuitpytho ... -cap-touch
https://makecode.adafruit.com/learnsyst ... ensitivity
I don't see CircuitPython doing the autocalibration so you could always explore that.
https://learn.adafruit.com/circuitpytho ... -cap-touch
Please be positive and constructive with your questions and comments.