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

PSoC™ 4 Forum Discussions

yoya_4785701
Level 4
25 replies posted First like given First like received
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 25 solutions authored 10 likes received 50 replies posted
Moderator

Hi @yoya_4785701 ,

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 25 solutions authored 10 likes received 50 replies posted
Moderator

Hi @yoya_4785701 ,

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