30
CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Example Projects
4.5.1
How the Proximity Sensor Project Works
Proximity detection is performed by a proximity antenna acting as a capacitive sensor. The proximity
antenna consists of a wire connected to the proximity connector on the board.
Upon power up, the board establishes a baseline capacitance value of the board along with the
antenna attached to it. This is used as a reference value of capacitance and is called the parasitic
capacitance of the board.
When a conductive object such as a human finger is brought close to the antenna, the overall
capacitance of the board changes. This change in capacitance determines the proximity of the finger
to the antenna. An increase in capacitance corresponds to the finger being closer to the antenna.
This is used to light up the LEDs based on the proximity of the finger to the antenna. The number of
LEDs turned on increases as the proximity of the finger increases.
To establish the parasitic capacitance, the antenna must be connected to the board before power up.
The baseline for capacitive sensors is updated continuously by the firmware. This accounts for any
changes in environmental conditions during the operation.
Figure 4-19. Proximity Sensor Project Flowchart
Boot
Start
Scan the Proximity sensor
Is sensor active?
Read signal value
Yes
No
update LED display
Содержание PSoC 5 FIRSTTOUCH CY8CKIT-014
Страница 4: ...4 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Contents...
Страница 8: ...8 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Getting Started...
Страница 32: ...32 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Example Projects...
Страница 44: ...44 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Technical Reference...