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