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

PSoC™ 4 Forum Discussions

yangyong
Level 4
5 likes given 5 solutions authored 25 replies posted
Level 4

Measure the self capacitance of sensor electrode using measure_sensor_cp().   What is the unit for calculating capacitance results?

0 Likes
1 Solution
PandaS
Moderator
Moderator 100 sign-ins 25 solutions authored 10 likes received
Moderator

Hi @yangyong ,

The measure_sensor_cp() is a user defined function which in turn calls the following api:

Cy_CapSense_MeasureCapacitanceSensor();

Wherein the parameters are:

uint32_t  widgetId,
    uint32_t  sensorId,
    uint32_t *  ptrValue,
    cy_stc_capsense_context_t  context 

 

The measured parasitic capacitance is stored in address of ptrValue. The unit of measurement is fF(femtofarads).

Thanks and Regards

Sobhit

View solution in original post

0 Likes
1 Reply
PandaS
Moderator
Moderator 100 sign-ins 25 solutions authored 10 likes received
Moderator

Hi @yangyong ,

The measure_sensor_cp() is a user defined function which in turn calls the following api:

Cy_CapSense_MeasureCapacitanceSensor();

Wherein the parameters are:

uint32_t  widgetId,
    uint32_t  sensorId,
    uint32_t *  ptrValue,
    cy_stc_capsense_context_t  context 

 

The measured parasitic capacitance is stored in address of ptrValue. The unit of measurement is fF(femtofarads).

Thanks and Regards

Sobhit

0 Likes