A strange phenomenon in proximitysensor

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

cross mob
Anonymous
Not applicable

Hello guys:

     I encountered a strange phenomenon when developing a proximitysensor by using posc5:

     If I set the tuning method to Auto(smart sense), the proximitysensor will always be active, which means the led will be continuouslly turned on by LED1_Write(0u);

     But if I set the tuning method to Manual, the proximitysensor will never be active even though I set the finger threthhold low to 40.

     The program goes as below:

      CapSense_CSD_EnableWidget(CapSense_CSD_PROXIMITYSENSOR0__PROX);

      CapSense_CSD_Start();

      CapSense_CSD_InitializeAllBaselines();

     CapSense_CSD_ScanEnabledWidgets();

     while(CapSense_CSD_IsBusy());

     CapSense_CSD_UpdateEnabledBaselines();

      while(1u)

     {

          CapSense_CSD_ScanEnabledWidgets();

        while(CapSense_CSD_IsBusy());

        CapSense_CSD_UpdateEnabledBaselines();

          if (CapSense_CSD_CheckIsWidgetActive(CapSense_CSD_PROXIMITYSENSOR0__PROX))

        {

            LED1_Write(0u);

        }

        else

        {

            LED1_Write(1u);

        }

     }

The proximity sensor is a 2mm wide copper strip circle on PCB, with a size about 100mm*150mm .

Thank a lot for your regarding.

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

Hello,

We request you to use the CapSense Tuner GUI and check what is happening actually in case of Auto (smart sense) and manual tuning.

Ideally there should be minimum of 5:1 SNR (Signal to peak-peak noise ratio) in case of any CapSense sensor. If it is not you should adjust the CapSense hardware parameters and software thresholds in such a way that SNR of 5:1 is achieved.

You can use the PSoC Creator code example on Tuner to use it in your project. Please go through the CapSense Tuner Guide obtained from the link below. The spec shows obsolete but you can use it because it is designed for old CapSense component which is used in PSoC 5 devices. If you use PSoC 4 the CapSense component will be different.

http://www.cypress.com/file/151411/download

Also for proper operation of Auto Smart sense the parasitic capacitance of the sensor should be in between 5pF and 45 pF. Please measure the sensor parasitic capacitance using the API GetSensorCp(). Please refer CapSense component datasheet for more information of this API. You should run the project in debug mode to measure the Cp. For manual tuning it can be upto 65 pF.

Please check the above points and update us. If possible please attach the complete PSoC Creator project along with Layout files in gerber format so that we can review them and provide you our comments.

Thanks,

Ganesh

View solution in original post

1 Reply
VenkataD_41
Moderator
Moderator
Moderator
750 replies posted 500 replies posted 250 solutions authored

Hello,

We request you to use the CapSense Tuner GUI and check what is happening actually in case of Auto (smart sense) and manual tuning.

Ideally there should be minimum of 5:1 SNR (Signal to peak-peak noise ratio) in case of any CapSense sensor. If it is not you should adjust the CapSense hardware parameters and software thresholds in such a way that SNR of 5:1 is achieved.

You can use the PSoC Creator code example on Tuner to use it in your project. Please go through the CapSense Tuner Guide obtained from the link below. The spec shows obsolete but you can use it because it is designed for old CapSense component which is used in PSoC 5 devices. If you use PSoC 4 the CapSense component will be different.

http://www.cypress.com/file/151411/download

Also for proper operation of Auto Smart sense the parasitic capacitance of the sensor should be in between 5pF and 45 pF. Please measure the sensor parasitic capacitance using the API GetSensorCp(). Please refer CapSense component datasheet for more information of this API. You should run the project in debug mode to measure the Cp. For manual tuning it can be upto 65 pF.

Please check the above points and update us. If possible please attach the complete PSoC Creator project along with Layout files in gerber format so that we can review them and provide you our comments.

Thanks,

Ganesh