0 Replies Latest reply on Jan 9, 2018 1:51 AM by 835614343_2592986

    A strange phenomenon in proximitysensor

    835614343_2592986

      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.