Skip to content

Conversation

NickeZ
Copy link
Collaborator

@NickeZ NickeZ commented Sep 19, 2025

No description provided.

@NickeZ NickeZ force-pushed the maint/tune-qtouch branch 2 times, most recently from 478a807 to ec30964 Compare September 19, 2025 21:32
8Mhz is recommended by the tooling and can be divided down to the
required 2Mhz with the ADC prescaler
@NickeZ NickeZ force-pushed the maint/tune-qtouch branch 2 times, most recently from dd22e63 to 6237122 Compare September 22, 2025 13:53
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.
@NickeZ NickeZ marked this pull request as ready for review September 22, 2025 14:04
@NickeZ NickeZ requested a review from benma September 22, 2025 14:04
@benma
Copy link
Collaborator

benma commented Sep 23, 2025

@NickeZ

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];
Copy link
Collaborator

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?

@NickeZ
Copy link
Collaborator Author

NickeZ commented Sep 23, 2025

@NickeZ

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.

It is all related, I enable and configure clock number 5 and I configure the ADC/PTC to use that new clock.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants