Question: How do you implement capacitive proximity sensing using the CY8C21x34 device?
The attached project implements capacitive proximity sensing using the CY3280-21x34 kit. Use the following steps to test this project.
Programming the PSoC®
Figure 1. PSoC Programmer Settings
Figure 2. MiniProg3 Connection
Figure 3. Program the PSoC
Proximity Sensing and Data Viewing
Follow the steps below to set up the hardware for proximity sensing and data viewing:
Figure 4. MiniProg3 Connection and Sensor Connection
Figure 5. Variable Settings on the Bridge Control Panel
Figure 6. I2C Communication Commands
2C Communication Commands" src="https://community.cypress.com/api/core/v3/images/182804?a=1503033807502">
Figure 7. Bridge Control Panel Settings
Figure 8. Status Variable on Bridge Control Panel
Figure 9. Raw Count Profile
Proximity Tuning Steps
The following steps can be used to tune the CapSense® system for proximity detection.
For reliable proximity detection, the SNR needs to be 5:1. Follow the steps below to determine the proximity distance.
Note: Refer to section 4.1.1, “Signal, Noise, and SNR” in the CY8C21x34/B CapSense Design Guide for more information about SNR calculation.
The following steps can be used to determine the CapSense Sigma Delta (CSD) User Module (UM) parameters for proximity detection.
Note: Click on the tab Table in the BCP to observe the Difference count values.