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

  1. Launch PSoC Creator.
  2. Got to File ➤ Open Project ➤ Project/Workspace.
  3. Open the PSoC5LP workspace in the EE4450 folder.
  4. After PSoC Creator opens the workspace, right-click on Workspace 'PSoC5LP' in the Workspace Explorer and select Add ➤ New Project….
  5. 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:
    1. Navigate to the Ports and Pins catalog in the Component Catalog.
    2. Drag and drop the PSoCCreator icon Catalog 3 Digital Output Pin onto the schematic.

© 2025 Air Supply Information Center (Air Supply BBS)