You are here

CapSense Code Examples | Cypress Semiconductor

CapSense Code Examples

Last Updated: 
Jan 12, 2015

The following Code Example is integrated with PSoC Designer 5.4. To access these code examples, follow the path Start Page -> Design Catalog -> Launch Example Browser in PSoC Designer

CE#
Title
Part#
Kits
Description
CE85976 Code Example For SmartSense User Module in PSoC 1 CY8C22545-24AXI CY3280-22x45 UCC Board/MiniProg3 This project demonstrates the operation of the SmartSense2X User Module (UM) of the PSoC® 1 device.

Code Examples integrated with Application Notes

AN#
AN Title
Part#
Kits
Description
AN59389 Host Sourced Serial Programming CY8C20xx6A, CY8C20xx6AS, CY8C20xx6L,
CY8C20xx7, CY8C20045 and CY8C20055
-
Cypress created the HSSP Code Example to give system designers a starting point to create their own serial programming software. Designers have to make minimal modifications to the code to make it compatible with their specific host programmer. The Code Example covers only the CY8C20xx6A, CY8C20xx6AS, CY8C20xx6L,
CY8C20xx7, CY8C20045 and CY8C20055 devices and provides a high level of abstraction.

Code Examples integrated with Development Kits

The following Code Examples are integrated with CY3280-BSM Simple Button Module Kit.

Title
Part#
Description
CY3280_BSM_20x34_CSA CY8C20x34 This code example demonstrates the use of CapSense Buttons using CSA_EMC technology and CY8C20x34.
CY3280_BSM_20x66_CSA CY8C20x66 This project demonstrates the use of CapSense Buttons using CSA_EMC technology and CY8C20x66.
CY3280_BSM_20x66_CSD CY8C20x66 This project demonstrates the use of CapSense Buttons using CSD technology and CY8C20x66.
CY3280_BSM_21x34_CSD CY8C21x34 This project demonstrates the use of CapSense Buttons using CSD technology and CY8C21x34.
CY3280_BSM_24x94_CSD CY8C24x94 This project demonstrates the use of CapSense Buttons using CSD technology and CY8C24x94.
CY3280_BSM_20x34_CSA CY8C20x34 This code example demonstrates the use of CapSense Buttons using CSA_EMC technology and CY8C20x34.


The following Code Examples are integrated with CY3280-20x66 Universal CapSense Controller Kit.

Title
Part#
Description
CY3280_20x66 CSD PD Project1 CY8C20x66 This project demonstrates the use of CapSense buttons and linear slider on the CY3280-SLM board using CSD technology and CY8C20x66A.
CY3280_20x66 CSD PD Project2 CY8C20x66 This project demonstrates the use of CapSense buttons and linear sliders using CSD technology and CY8C20x66A.
CY3280_ 20x66 CSA PD Project1 CY8C20x66 This project demonstrates the use of CapSense buttons and linear sliders using CSA technology and CY8C20x66A.
CY3280_ 20x66 CSA PD Project2 CY8C20x66 This project demonstrates the use of CapSense buttons and linear sliders using CSA technology and CY8C20x66A.


The following Code Examples are integrated with CY3280-SRM Radial Slider Module Kit.

Title
Part#
Description
CY3280_SRM_20x34 PD Project 1 CY8C20x34 This project demonstrates the use of CapSense Buttons and Radial Slider using CSA technology and CY8C20x34.
CY3280_SRM_20x34 PD Project 2 CY8C20x34 This project demonstrates the use of CapSense Buttons and Radial Slider using CSA technology and CY8C20x34.
CY3280_SRM_20x66_CSA PD Project 2 CY8C20x66 This project demonstrates the use of CapSense Buttons and CapSense Radial Slider using CSA technology and CY8C20x66.
CY3280_SRM_20x66_CSA CY8C20x66 This project demonstrates the use of CapSense Buttons and CapSense Radial Slider using CSA technology and CY8C20x66.
CY3280_SRM_20x66_CSD PD Project 1 CY8C20x66 This project demonstrates the use of CapSense Buttons and Radial Slider using CSD technology and CY8C20x66.
CY3280_SRM_20x66_CSD PD Project 2 CY8C20x66 This project demonstrates the use of CapSense Buttons and CapSense Radial Slider using CSD technology and CY8C20x66.
CY3280_SRM_21x34 PD Project 1 CY8C21x34 This project demonstrates the use of CapSense Buttons and Radial Slider using CSD technology and CY8C21x34.
CY3280_SRM_21x34 PD Project 2 CY8C21x34 This project demonstrates the use of CapSense Buttons, CapSense Radial Slider using CSD technology and CY8C21x34.
CY3280_SRM_24x94 PD Project 1 CY8C24x94 This project demonstrates the use of CapSense Buttons and Radial Slider using CSD technology and CY8C24x94.
CY3280_SRM_24x94 PD Project 2 CY8C24x94 This project demonstrates the use of CapSense Buttons and CapSense Radial Slider using CSD technology and CY8C24x94.


The following Code Examples are integrated with CY3280-BMM Matrix Button Module Kit.

Title
Part#
Description
CY3280_BMM_20x34 PD Project 1 CY8C20x34 This project demonstrates the use of CapSense Matrix Buttons using CSA technology and CY8C20x34.
CY3280_BMM_20x66 CSA CY8C20x65 This project demonstrates the use of CapSense Matrix Buttons using CSA technology and CY8C20x66.
CY3280_BMM_20x66_CSD PD Project 1 CY8C20x66 This project demonstrates the use of CapSense Matrix Buttons using CSD technology and CY8C20x66.
CY3280_BMM_21x34 PD Project 1 CY8C21x34 This project demonstrates the use of CapSense Matrix Buttons using CSD technology and CY8C21x34.
CY3280_BMM_24x94 PD Project 1 CY8C24x94 This project demonstrates the use of CapSense Matrix Buttons using CSD technology and CY8C24x94


The following Code Examples are integrated with CY3280-SLM Linear Slider Module Kit.

Title
Part#
Description
CY3280_SLM_20x34 PD Project 1 CY8C20x34 This project demonstrates the use of CapSense Buttons and Linear Slider using CSA_EMC technology and CY8C20x34.
CY3280_SLM_20x34 PD Project 2 CY8C20x34 This project demonstrates the use of CapSense Buttons and Linear Slider using CSA_EMC technology and CY8C20x34.
CY3280_SLM_20x66_CSA_EMC PD Project 1 CY8C20x66 This project demonstrates the use of CapSense Buttons and Linear Slider using CSA_EMC technology and CY8C20x66.
CY3280_SLM_20x66_CSA_EMC PD Project 2 CY8C20x66 This project demonstrates the use of CapSense Buttons and Linear Slider using CSA_EMC technology and CY8C20x66.
CY3280_SLM_20x66_CSD PD Project 1 CY8C20x66 This project demonstrates the use of CapSense Buttons and Linear Slider using CSD technology and CY8C20x66.
CY3280_SLM_20x66_CSD PD Project 2 CY8C20x66 This project demonstrates the use of CapSense Buttons and Linear Slider using CSD technology and CY8C20x66.
CY3280_SLM_21x34 PD Project 1 CY8C21x34 This project demonstrates the use of CapSense Buttons and Linear Slider using CSD technology and CY8C21x34.
CY3280_SLM_21x34 PD Project 2 CY8C21x34 This project demonstrates the use of CapSense Buttons and Linear Slider using CSD technology and CY8C21x34.
CY3280_SLM_24x94 PD Project 1 CY8C24x94 This project demonstrates the use of CapSense Buttons and Linear Slider using CSD technology and CY8C24x94.
CY3280_SLM_24x94 PD Project 2 CY8C24x94 This project demonstrates the use of CapSense Buttons and Linear Slider using CSD technology and CY8C24x94.


The following Code Examples are integrated with CY3214-PSoCEvalUSB PSoC CapSensePLUS with USB Evaluation Kit.

Title
Part#
Description
CapSense CY8C24x94 This example demonstrates how to operate the CapSense buttons and sliders.
Buttons and Lights Example CY8C24x94 This code example demonstrates the USB function using the CY3214-PSoCEVALUSB Kit. In this project, the Buttons and Lights PC Host GUI is used to control the LEDs on board.
Temperature Sensing Keyboard CY8C24x94 This project example operates similar to a keyboard, although it does not look like a standard keyboard. The example is a temperature sensor using potentiometer (VR1 and VR2) as surrogates for real temperature sensors.
Process Monitoring CY8C24x94 The process monitoring system code demonstrates how to collect the analog data at a rate determined by the host.
Async_PingExample CY8C24x94 The project demonstrates asynchronous data transfer by sending a series of large USB write (OUT) and read (IN) requests by using USB functionality, which is available with CY8C24894 device.
Bulk_PingExample CY8C24x94 The project demonstrates bulk data transfer by sending a series of end point-sized USB write (out) and read (in) requests.
ISoc_Example CY8C24x94 This example demonstrates how to use an ‘alternate’ interface that performs IN transactions with isochronous communication
USBUART CY8C24x94 The USBUART device uses a USB interface to emulate a COM port.
Joystick CY8C24x94 This project is used to control the mouse cursor movement using the joystick onboard.


The following Code Examples are integrated with CY3280-BK1 Universal CapSense Controller - Basic Kit 1.

Title
Part#
Description
CY3280_20x34_SLM CY8C20x34 This project demonstrates how to use the CapSense CSA_EMC user module to scan buttons and sliders on the CY3280-SLM module board.
CY3280_21x34_SLM CY8C21x33 This project demonstrates how to use the CapSense CSD user module to scan buttons and sliders on the CY3280-SLM module board.


The following Code Example is integrated with CY3235 - CapSense Proximity Detection Demonstration Kit.

Title
Part#
Description
Example_CY3235_CSD_PRO X_Detector Project CY8C21x34 This project demonstrates CapSense proximity sensing by using a conducting wire as the sensor, PSoC device for detection, and LED for status indication.


The following Code Example is integrated with CY3280-24x94 Universal CapSense Controller Board.

Title
Part#
Description
CY3280_24x94_SLM CY8C24x94 This project demonstrates the use of the CapSense buttons and linear slider on the CY3280-SLM board using CSD technology and CY8C24x94.

Web Code Examples

Title
Part#
Kits
Description
CE54362 - CSA with I2CHW Slave on CY8C20x34 CY8C20x34 CY3280–20x34 UCC board, CY3280–SLM board, I2
CtoUSB bridge
CE54362 describes how to scan five CapSense® buttons regularly and send the data to the master using I2
C protocol
CE54364 - CSD with I2CHW Slave on CY8C20xx6 CY8C20xx6 CY3280-20x66 UCC, CY3280-SLM Module, I2CtoUSB CE54364 describes how to scan four CapSense® buttons regularly and send the data to the master using I2C protocol.
CE66058 - Dynamically Switch CSD Bleed Resistor CY8C24x94 CY3280-24x94 UCC, CY3280-SLM, I2USB Bridge/MiniProg1/3 You can achieve the proper sensitivity for sensors in an end-system that have a considerable difference in parasitic capacitance (Cp), by tuning the raw counts of each sensor to 60%-70% of the maximum value. This code example describes a method that compensates for the differences in sensor raw counts due to the variations in Cp, by scanning the sensors with different bleed resistors.
CE63795 - CSA Software Filters with EzI2Cs Slave on CY8C20x34 CY8C20x34 CY3280-20x34 UCC CY3280-SLM Module, I2CtoUSB bridge This code example describes how to scan one CapSense® button and a five-segment slider regularly and send the data to the master using I2C protocol. This code example also describes how to apply the software filters such as average, IIR, and median filters on raw count and the jitter filter on the slider centroid position.
CE63794 - CSA Software Filters with EzI2Cs Slave on CY8C20xx6 CY8C20xx6 CY3280-20x34 UCC CY3280-SLM Module, I2CtoUSB bridge This code example describes how to scan one CapSense® button and a five-segment slider regularly and send the data to the master using I2C protocol. This code example also describes how to apply the software filters such as average, IIR, and median filters on raw count and the jitter filter on the slider centroid position.
CE63792 - CSD Software Filters with EzI2Cs Slave on CY8C24x94 CY8C24x94 CY3280-20x34 UCC CY3280-SLM Module, I2CtoUSB bridge This code example describes how to scan one CapSense® button and a five-segment slider regularly and send the data to the master using I2C protocol. This code example also describes how to apply the software filters such as average, IIR, and median filters on raw count and the jitter filter on the slider centroid position.
CE63796 - CSD Software Filters with EzI2Cs Slave on CY8C21x34 CY8C21x34 CY3280-20x34 UCC CY3280-SLM Module, I2CtoUSB bridge This code example describes how to scan one CapSense® button and a five-segment slider regularly and send the data to the master using I2C protocol. This code example also describes how to apply the software filters such as average, IIR, and median filters on raw count and the jitter filter on the slider centroid position.
CE63793 - CSD Software Filters with EzI2Cs Slave on CY8C20xx6 CY8C20xx6 CY3280-20x34 UCC CY3280-SLM Module, I2CtoUSB bridge This code example describes how to scan one CapSense® button and a five-segment slider regularly and send the data to the master using I2C protocol. This code example also describes how to apply the software filters such as average, IIR, and median filters on raw count and the jitter filter on the slider centroid position.
CE54363 - CSA with I2CHW Slave on CY8C20xx6 CY8C20xx6 CY3280-20x66 UCC, CY3280-SLM Module, I2C to USB bridge CE54363 describes how to scan four CapSense®
buttons regularly and send the data to the master using I2C protocol
CE54366 - CSD with I2CHW Slave on CY8C24x94 CY8C24x94 CY3214-PSoC®
Evaluation Board, I2CtoUSB bridge
CE54366 describes how to scan four CapSense®
buttons regularly and send the data to the master using I2C protocol.
Buttons and Sliders with SmartSense with a CY8C20xx6A CapSense Controller CY8C20x66 CY3280-20x66 Demonstrates how to implement CapSense buttons and sliders with SmartSense auto-tuning user module.
Host Communication Through I2Cwith a CY8C20xx6A CapSense Controller CY8C20x66 CY3280-20x66 Demonstrates how to transfer CapSense data to and from a CapSense controller through I2C. It also explains how to plot read back data using Bridge Control Panel tool.
Data Transmission Through UART with a CY8C20xx6A CapSense Controller CY8C20x66 CY3280-20x66 Demonstrates how to transmit CapSense data in RS232 data packet format. It also explains how to plot read back data using MultiChart tool.
Measuring Absolute Sensor Capacitance with a CY8C20xx6ACapSense Controller CY8C20x66 CY3280-20x66 Measures the absolute capacitance of sensors with parasitic capacitance (CP) up to 60 pF to within 1 pF accuracy and then display the results on a PC using Windows HyperTerminal or Bridge Control Panel.
Measuring Absolute Sensor Capacitance with a CY8C21x34/B CapSense Controller CY8C21x34 CY3280-21x34 Measures the absolute capacitance of sensors with parasitic capacitance (CP) up to 60 pF to within 1 pF accuracy and then display the results on a PC using Windows HyperTerminal or Bridge Control Panel.
Measuring Absolute Sensor Capacitance with a CY8C20x34 CapSense Controller CY8C20x34 CY3280-20x34 Measures the absolute capacitance of sensors with parasitic capacitance (CP) up to 60 pF to within 1 pF accuracy and then display the results on a PC using Windows HyperTerminal or Bridge Control Panel.
Tuning CSD with a CY8C20xx6A CapSense Controller CY8C20x66 CY3280-20x66 Tunes the CSD user module in the CY8C20xx6A.
Tuning CSD with Feedback Resistor with a CY8C21x34/B CapSense Controller CY8C21x34 CY3280-21x34 Tunes the CSD user module in the CY8C21x34/B.
Tuning a CSA_EMC with a CY8C20x34 CapSense Controller CY8C20x34 CY3280-20x34 Tunes the CSA_EMC user module in the CY8C20x34
Power Consumption Optimization for One CapSense Button Using SmartSense on CY8C20xx6A CY8C20x66 CY3280-20x66 Provides a method to achieve power consumption less than 50 µA for one sensor using SmartSense user module.
CY8CMBR3xxx Host APIs Demo Project CY8CMBR3116 CY8CKIT-042 Pioneer Kit, CY3280-MB3 Kit Examples of how to use host APIs to configure MBR3 device. PSoC4 is used host in this code example to configure CY8CMBR3116 device.