-
Notifications
You must be signed in to change notification settings - Fork 110
Apply tuned qtouch config #1597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
478a807
to
ec30964
Compare
8Mhz is recommended by the tooling and can be divided down to the required 2Mhz with the ADC prescaler
dd22e63
to
6237122
Compare
The qtouch configurator has changed the default output to not use the binding layer. Let's remove it to be more in sync with the configurator. No functionality is lost. All changes come from the new templates.
* Lower the ADC/PTC frequency to 2Mhz * Lower the analog gain as that introduces more noise * Higher analog gain of edge sensors that are less sensitive * Make filter 8x digital gain as per recommendation * Reduce threshold for active to 12 (to be tweaked) * Put sensor groups in AKS groups so that if one sensor is active no other sensor in the same group can become active. * Reduce hysteris to 25% to make "untouch" quicker * Speed up all calibration rates to 1 step per 200ms * Set a maximum touch time of 10s to eventually abort in case someone puts the device on a table * Remove force calibrate. The faster calibration rates should fix the sensors equally quick. * Add all functions from templates that was missing to make future diffs with atmel start smaller.
6237122
to
0783a54
Compare
Commit qtouch: switch PTC to 8Mhz clock from 12 Mhz is changing a bunch of configs that seem unrelated to the PTC rate. Please explain them too in the commit msg. |
bool qtouch_is_scroller_active(uint16_t sensor_node) | ||
{ | ||
return scroller_active[scroller]; | ||
return scroller_active[sensor_node]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename scroller_active too, or keep the param name scrollerr
, for consistency?
It is all related, I enable and configure clock number 5 and I configure the ADC/PTC to use that new clock. |
No description provided.