- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
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;
}
}
}
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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/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.
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.