Proximity sensing with PSOC 3

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

cross mob
Anonymous
Not applicable

Hello,

   

I am very new with PSOC and embedded programming.  I have been having issues with CapSense proximity sensing.   I have created a proximity widget and assigned it a sensor.  I have other capsense buttons on my board which have been configured as well and are working.  I have not been able to figure out how to use the tuner with a proximity sensor.  I read that all widgets are enabled by default except proximity widgets.  How do you manually enable a proximity widget so you can use it in the tuner?  Below is the part of my code that is dealing with CapSense.  Thank you for your help.

   

-Walt

   

 

   

(This portion of code is in my main)

   

   

/* start tuner operation */

   

        CapSense_1_TunerStart();

   

CapSense_1_EnableSensor(CapSense_1_SENSOR_PROXIMITYSENSOR1_0__PROX);  //Not sure where to put this??

   

for(;;)

   

       {

   

        CapSense_1_TunerComm();

   

}

   

/* end tuner operation */

0 Likes
15 Replies