- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello everyone!
I have a proplem with the Touchpad detection.
My design works with a CY8C4147AZI-S475. A 11x11 Touchpad Matrix was sensed in CSD mode. The position detection works fine but the gesture with click und double click works unsure.
With the Tuner, I can see that most of time the double touch is not detected in the raw data.
All the following touches are double, but only 3 are detected as double!
This is the code:
CyGlobalIntEnable; /* Enable global interrupts. */
/* Place your initialization/startup code here (e.g. MyInst_Start()) */
/* Start the components */
#ifdef TUNER
EZI2C_Start();
/*
* Set up communication and initialize data buffer to CapSense data structure
* to use Tuner application
*/
EZI2C_EzI2CSetBuffer1(sizeof(CapSense_dsRam),
sizeof(CapSense_dsRam),
(uint8_t *)&(CapSense_dsRam));
/* Start CapSense Component */
CapSense_Start();
/* Start initial scan */
CapSense_ScanAllWidgets();
for(;;)
{
/* Do this only when a scan is done */
if(CapSense_NOT_BUSY == CapSense_IsBusy())
{
/* Process all widgets */
CapSense_ProcessAllWidgets();
/* To sync with Tuner application */
CapSense_RunTuner();
/* Start next scan */
CapSense_ScanAllWidgets();
}
CySysWdtClearInterrupt();
}
#else
Is there anyone with an idea what the mistake is?
Many thanks and best regards
Matthias
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Shanmathi,
yesterday I found the solution of my problem.
First, there was a position change between the two clicks. So the PC,
via USB, sometimes recognise the double click an sometimes not. Then I
check the click with the CapSense tuner. But the chronologically is not
right! The tuner exclude some parts of the measurement.
So I thought, there was the problem. Without the tuner, the click
detection is right! I check it by setting a pin direct.
Many thanks for your efforts.
Best regards
Matthias
Am 01.08.2018 um 15:59 schrieb nsha:
Cypress Semiconductor logo <http://www.cypress.com>
>
Cypress Developer Community
<https://community.cypress.com/?et=watches.email.thread>
>
PSoC4 CapSense Touchpad Gesture Click work unsure
reply from nsha
<https://community.cypress.com/people/nsha?et=watches.email.thread> in
/PSoC 4 MCU Community/ - View the full discussion
<https://community.cypress.com/message/164750?et=watches.email.thread#164750>
>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Matthias,
Please share your project here.
Regards,
Bragadeesh
Bragadeesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Bragadeesh,
do you have any idea what the failure is?
Many thanks and best regards,
Matthias.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Matthias,
It looks like you are touching the sensors too fast.
So, you can reduce the minimum interval between touches (say, 50).
Also, increase the maximum interval between touches (say, 400).
One-finger minimum duration can further be decreased (say, 40).
Please let us know if this helps.
Thanks,
Shanmathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Shanmathi,
yesterday I found the solution of my problem.
First, there was a position change between the two clicks. So the PC,
via USB, sometimes recognise the double click an sometimes not. Then I
check the click with the CapSense tuner. But the chronologically is not
right! The tuner exclude some parts of the measurement.
So I thought, there was the problem. Without the tuner, the click
detection is right! I check it by setting a pin direct.
Many thanks for your efforts.
Best regards
Matthias
Am 01.08.2018 um 15:59 schrieb nsha:
Cypress Semiconductor logo <http://www.cypress.com>
>
Cypress Developer Community
<https://community.cypress.com/?et=watches.email.thread>
>
PSoC4 CapSense Touchpad Gesture Click work unsure
reply from nsha
<https://community.cypress.com/people/nsha?et=watches.email.thread> in
/PSoC 4 MCU Community/ - View the full discussion
<https://community.cypress.com/message/164750?et=watches.email.thread#164750>
>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Matthias,
Thank you for posting your solution in the community!
Thanks,
Shanmathi