PSoC5LP Lab 21: CapSense
Objective
This lab demonstrates how to implement capacitive sensing (CapSense) on a PSoC 5LP using the CY8CKIT-059 Prototyping Kit. You will learn to:
- Configure the PSoC Creator CapSense CSD component.
 - Create two CapSense buttons that control the onboard LED.
 - Create a 5-segment linear slider.
 - Send the slider's position data to a PC serial terminal using a UART component.
 - Build the physical sensor circuit on a breadboard.
 
Required Reading Materials
Circuit / Schematic
Procedure
Creating a New Project
- Launch PSoC Creator.
 - Got to File ➤ Open Project ➤ Project/Workspace.
 - Open the PSoC5LP workspace in the EE4450 folder.
 - After PSoC Creator opens the workspace, right-click on Workspace 'PSoC5LP' in the Workspace Explorer and select Add ➤ New Project….
 - Select the correct PSoC5LP device model number, use the "Empty schematic" template, and enter the project name 21_CapSense.
 
Adding PSoC Creator Components
Open the "TopDesign.cysch" Schematic File, add the following components:
- Digital Output Pin:
- Navigate to the Ports and Pins catalog in the Component Catalog.
 - Drag and drop the PSoCCreator icon Catalog 3 Digital Output Pin onto the schematic.