PSoC4 CapSense Touchpad Gesture Click work unsure

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
MaMe_3179676
Level 1
Level 1
First like received

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!

pastedImage_1.png

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

0 Likes
1 Solution

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>

>

View solution in original post

6 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Matthias,

Please share your project here.

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes
lock attach
Attachments are accessible only for community members.

Hello Bragadeesh,

I drop the Projetct at the end and hope that works!

Best regards,

Matthias.

0 Likes

Hello Bragadeesh,

do you have any idea what the failure is?

Many thanks and best regards,

Matthias.

0 Likes
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

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

0 Likes

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>

>

Hello Matthias,

Thank you for posting your solution in the community!

Thanks,

Shanmathi

0 Likes