Announcements

Equip yourself to optimize PSoc4 MCUs for Evs at the EV Webinar. Click here to register.

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

PSoC™ 4 Forum Discussions

keno_4227451
Level 1
Level 1
First like given

Hello. I try to use CapSense CSX and have a problem.

When I touch the sensor, Raw count gets low. And when I don't touch the sensor, Raw count gets high.

Is there any reason why it works oppositly?

I note the condition below

・CY8CKIT-042 PSoC4 PIONEER KIT is used

・The sensor is mutual capacitance type

・In the Capsense component, it is selected as Sensor type is Button and sensing mode is CSX(Mutual-cap)

・Raw count is displayed by Sense Tuner

・EZI2C is used

・CintA and CintB are connected to the 470pF capacitors

・Template code is used

≪code≫

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

#include <project.h>
int main()
{
/* Enable global interrupts */
CyGlobalIntEnable;
/* Start EZI2C component */
EZI2C_Start();
/*
* Set up communication data buffer to CapSense data structure to be
* exposed to I2C master at primary slave address request.
*/
EZI2C_EzI2CSetBuffer1(sizeof(CapSense_dsRam),
sizeof(CapSense_dsRam),
(uint8 *)&CapSense_dsRam);
/* Initialize CapSense component */
CapSense_Start();
/* Scan all widgets */
CapSense_ScanAllWidgets();
for(;;)
{
/* Do this only when a scan is done */
if(CapSense_NOT_BUSY == CapSense_IsBusy())
{/* Process all widgets */
CapSense_ProcessAllWidgets();
/* Scan result verification */
if (CapSense_IsAnyWidgetActive())
{
/* Add any required functionality
based on scanning result */
}
/* Include Tuner */
CapSense_RunTuner();
/* Start next scan */
CapSense_ScanAllWidgets();
}
/* CPU Sleep */
CySysPmSleep();
}
}

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

0 Likes
1 Solution
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Additionally, an overlay thickness of at least 1 mm is suggested for CSX applications. Please increase the overlay thickness and check the result of the sensor.

Best regards

Harigovind

View solution in original post

0 Likes
5 Replies
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello keno_4227451

Please let me know the device that you are using and if it is a kit that is being used.

In case you are using a custom board, please make sure that you are using an overlay material on the CapSense sensors. For CSX application, an overlay is required.

Please let me know the thickness and material of the overlay.

Best regards
Harigovind

0 Likes

Thank you for checking my question.

I am connecting the device that I am developping to the CY8CKIT-042 PSoC4 PIONEER KIT.

It is overlay material based on PET with conductive material. Thickness is about 250μm.

At least it is reacting but just goes oppositly.

Best regards

0 Likes
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hi keno_4227451

Can you share the sensor pattern that you are using with this kit?

Best regards

Harigovind

0 Likes
Hari
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Additionally, an overlay thickness of at least 1 mm is suggested for CSX applications. Please increase the overlay thickness and check the result of the sensor.

Best regards

Harigovind

0 Likes

Hello. It worked by changing overlay. Thank you so much!!

0 Likes