PSoC4 Capsens sensitivity and enviroment change issue

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

cross mob
AdamsChengTW
Level 3
Level 3
10 sign-ins 5 sign-ins 10 questions asked

Hi,

I have two issue about Capaense function.

1) I use Sense's CSD function for vehicle air condition HMI product.

    When I  capture every buton parameter in Sense Tuner.

    If some button still too  sensitivity.   Which parameter is recommended to adjust?

    Capsense_parameter.jpg

2) I put our product in the chamber and run environment test  recently.

   When temperature or humidity change. Some bottom auto triggered by itself.  

   When environment different cause  baseline change .

   The below is my detect key function code.  If I want to make  trigger level can trace baseline

   How to modify and suggest?

------------------------------------------------------------------------------------------------------------------------------- 

void DetectKey(void)

{

    if(CapSense_NOT_BUSY == CapSense_IsBusy())

    {

        CapSense_ProcessAllWidgets(); /* Process all widgets */                     

       

        CapSense_ScanAllWidgets();             

      

        if (CapSense_IsAnyWidgetActive()) /* Scan result verification */

        {                     

            /* Touch has detected */

            for(appData.index = 0; appData.index < CapSense_TOTAL_SCAN_SLOTS; appData.index++)

            {

                if(CapSense_IsWidgetActive(TouchKeyId[appData.index]))

                {

                    /* Get which key has pressed */

                    appData.TouchbuttonStatus = appData.index ;

                                                                                              

                    /* Proccess Key Data */                  

                    ProccessKeyData(appData.TouchbuttonStatus);

                    appData.KeyNeedToSend = AS_TRUE;

                }                              

            }

            /* Assgin Key data for SPI frame */

            SPI_KeyData();                                  

        }

        else//No key has pressed

        {

            ProccessKeyData(NO_KEYPress);/* Proccess Key Data for SPI array */

            appData.KeyDetectCounter = 0;

        }

    }

}

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1:

Sensitivity: Gc=(2N-1)*Vref*Fsw/Imod

So if you want to reduce the sensitivity, you can decrease the” N, Fsw”; or you can increase the Imod.

More you can refer to the below documents:

https://www.cypress.com/documentation/application-notes/an85951-psoc-4-and-psoc-6-mcu-capsense-desig...

https://www.cypress.com/documentation/application-notes/an64846-getting-started-capsense

2:

The second question is not an ask and an answer. We should
depend on the rawcount, but the fist step, you can try to change the parameter regular
widget baseline coefficient from 1 to 2, then have test.

pastedImage_0.png

May the false trigger caused by the baseline follows slowly or you tune a higher sensitivity.

3: It is suitable to solve the second question after the first issue has been solved, because the second phenomenon may be caused by the first.

4: If necessary, we can talk about the issue at anytime.

View solution in original post

1 Reply
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1:

Sensitivity: Gc=(2N-1)*Vref*Fsw/Imod

So if you want to reduce the sensitivity, you can decrease the” N, Fsw”; or you can increase the Imod.

More you can refer to the below documents:

https://www.cypress.com/documentation/application-notes/an85951-psoc-4-and-psoc-6-mcu-capsense-desig...

https://www.cypress.com/documentation/application-notes/an64846-getting-started-capsense

2:

The second question is not an ask and an answer. We should
depend on the rawcount, but the fist step, you can try to change the parameter regular
widget baseline coefficient from 1 to 2, then have test.

pastedImage_0.png

May the false trigger caused by the baseline follows slowly or you tune a higher sensitivity.

3: It is suitable to solve the second question after the first issue has been solved, because the second phenomenon may be caused by the first.

4: If necessary, we can talk about the issue at anytime.