CY3280-SmartSense™ CapSense® Auto-Tuning Kit Guide Doc. # 001-64672 Rev. *A Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): 408.943.2600 http://www.cypress.
Copyrights Copyrights © Cypress Semiconductor Corporation, 2010-2011. The information contained herein is subject to change without notice. Cypress Semiconductor Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any license under patent or other rights.
Contents 1. Introduction 1.1 1.2 1.3 1.4 1.5 1.6 Overview......................................................................................................................5 Kit Contents .................................................................................................................5 Installation....................................................................................................................5 1.3.1 Before You Begin ..................................................
Contents A. Appendix A.1 A.2 A.3 4 25 Schematics ................................................................................................................ 25 Board Layouts ...........................................................................................................27 Bill of Materials .......................................................................................................... 29 CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
1. 1.1 Introduction Overview Thank you for your interest in the CY3280-SmartSense™ CapSense® Auto-Tuning Kit. This kit is designed to showcase the abilities of the patented SmartSense algorithm, which does automatic tuning of capacitive sensor designs over the conventional manual-tuning approach. 1.2 Kit Contents ■ CY3280-SmartSense Kit ■ Two AAA batteries ■ Overlay - Clear acrylic overlays with matt finish on one side in 1 mm, 2 mm, 3 mm thickness.
Introduction 1.3.3 PSoC Designer Installation Procedure 1. If PSoC Designer 5.0 or earlier is currently installed, uninstall it. Click Start > Control Panel > Add or Remove Programs 2. Insert the software CD; using the menu, select Install PSoC Designer 5.1. Note Create the software CD by burning the downloaded CD ISO. After installation, user guides and key documents are available in the \Documentation subdirectory of the PSoC Designer installation directory.
Introduction 1.5 Document Revision History Table 1-1. Revision History ** PDF Creation Date 11/25/10 *A 01/04/11 Revision 1.6 Origin of Description of Change Change KPOL New kit guide. Fixed hyperlink in section 2.1.4. Modified the installation location in secBVI tion 1.3.3 Documentation Conventions Table 1-2. Document Conventions for Guides Convention Usage Courier New Displays file locations, user entered text, and source code: C:\ ...
Introduction 8 CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
2. Kit Operation The CY3280-SmartSense kit is designed to demonstrate four CapSense buttons and a CapSense based power button. Figure 2-1 illustrates these buttons: demonstration buttons (BTN0 to BTN3) and a CapSense power button (POWER BUTTON). In its default configuration, the kit is powered from two AAA on-board batteries, which are placed below the kit in the battery holder. The board has three connectors.
Kit Operation 2.1 CY3280-SmartSense Kit Board 2.1.1 Board Features 2.1.2 ■ Four CapSense buttons of different dimensions ■ Four LEDs connected to general purpose output pins ■ CapSense based power button and power LED ■ Operates from external power supply and battery ■ Expansion slots, allowing I/O to expand to external boards System Block Diagram Figure 2-2 shows the block diagram of the CY3280-SmartSense kit. The kit can be powered from three different sources.
Kit Operation 2.1.3 Power Sources The board supports three power sources: ■ Internal supply (supplied AAA batteries to be placed in the battery holder) ■ External supply (pin#41, Header J2) ■ External supply (pin#1, Header J5) Note To power the kit, at least one of the above sources should be active. The first two sources are gated to capacitive touch controller by the Power button.
Kit Operation 2.1.5 Connector Details Table 2-1.
3. Load CapSense Example Projects This section walks you through the high level design process to open, build, program, and run example projects using this kit. To access the example projects, go to the following location: C:\Program Files\Cypress\CY3280-SmartSense\1.0\CY3280-SmartSense\Firmware. Before beginning, follow each of these steps to make certain that your software and hardware environments are properly configured and ready for these projects: 1. Install PSoC Designer following the steps in 1.3.
Load CapSense Example Projects Figure 3-1. MiniProg3 Connected to Kit 3.1 CapSense Project: CSD + Manual Tuning This section outlines the conventional method of tuning a project - CSD with manual tuning. The example project demonstrates four CapSense buttons controlled by the CSD user module to detect the button press. Any button press detected is indicated by toggling the corresponding LED. Figure 3-2 illustrates the code flow. 14 CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
Load CapSense Example Projects Figure 3-2. Conventional Method Flowchart Boot Intialize CapSense, LED modules Turn Off all LEDs Scan all sensors Update the baseline count for all sensors Is any sensor active? No Yes Decode the active sensor number and toggle corresponding LED 3.1.1 Load Project 1. Open PSoC Designer 2. Click File > Open Project/Workspace 3. Locate the project directory 4. Open the CapSense_Manual_Tuning folder 5. Double-click CapSense_Manual_Tuning.
Load CapSense Example Projects Figure 3-3. Chip Editor View 3.1.2 Build Project To build a project, select Build > Generate/Build. PSoC Designer builds the project and displays comments in the Output window. When you see the message that the project is built with 0 errors and 0 warnings, you are ready to program the device. Figure 3-4. Build Project 16 CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
Load CapSense Example Projects Figure 3-5. Output Window 3.1.3 Program Project 1. Open Program Part in PSoC Designer by selecting Program > Program Part 2. In the Program Part window a. Select MiniProg3 in the PortSelection box b. Set Acquire Mode to Power Cycle. If the board is already powered from AAA batteries or from external supply through J2, set Acquire Mode to Reset c. Set Verification to ON. This ensures that downloaded checksum matches actual checksum d. Set Power Settings to 5V e.
Load CapSense Example Projects 3.1.4 Run Project Power the board using any one of the sources listed in 2.1.3 Power Sources on page 11. Touch a CapSense button on the board to see the corresponding LEDs toggle, as shown in . Figure 3-6. Figure 3-6. Toggle Feature Test Sequence 1. Touch a button; LED turns on 2. Release the button; LED remains on 4. Release the button; LED remains off 3.1.5 5. Touch the same button again; LED turns on 3. Touch the same button again; LED turns off 6.
Load CapSense Example Projects Figure 3-7. Connect Axial Capacitor to Connector J5 (picture to be updated) Figure 3-8. Broken Link in BTN2-LED2 1. Touch BTN2; LED2 remains off 2. Release BTN2; LED2 continues to remain off CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev. *A 3.
Load CapSense Example Projects 3.2 CapSense Project: SmartSense + Auto Tuning This section outlines the SmartSense method of tuning a project - SmartSense with auto tuning. The example project demonstrates four CapSense buttons controlled by SmartSense user module to detect the button press. Any button press detected is indicated by toggling the corresponding LED. Figure 3-9 illustrates the code flow. Figure 3-9.
Load CapSense Example Projects Figure 3-10. Chip Editor View 3.2.2 Build Project To build a project, select Build > Generate/Build. PSoC Designer builds the project and displays comments in the Output window. When you see the message that the project built with 0 errors and 0 warnings, you are ready to program the device. Figure 3-11. Build Project CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
Load CapSense Example Projects Figure 3-12. Output Window 3.2.3 Program Project 1. Open Program Part in PSoC Designer by selecting Program > Program Part 2. In the Program Part window a. Select MiniProg3 in the PortSelection box b. Set Acquire Mode to Power Cycle. If the board is already powered from AAA batteries or from external supply through J2, set Acquire Mode to Reset c. Set Verification to ON. This ensures that downloaded checksum matches actual checksum d. Set Power Settings to 5V e.
Load CapSense Example Projects 3.2.6 Tuning For Overlay 1. Stick overlay of required thickness on top of CapSense buttons 2. Follow steps in 3.2.1 Load Project on page 20 to load the SmartSense example project 3. Decide the required SmartSense 'Sensor Sensitivity' parameter value Sensor sensitivity sets the capacitance signal change (sensor response) in pF needed to activate a button sensor. The available settings are 0.1, 0.2, 0.3, and 0.4 pF. The default setting is 0.1 pF.
Load CapSense Example Projects Figure 3-14. SmartSense Property Window 5. Follow steps in 3.2.2 Build Project, 3.2.3 Program Project, and 3.2.4 Run Project to build, program, and run the modified example project. 24 CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
Appendix A.1 Schematics A.1.1 CapSense Controller, Buttons, I/O Interfaces Do Not Populate VD D _D ev XR ES SC L SD A 2 2 Oh m s R 22 ZE R O 1 2 1 2 2 J5 R 21 1 1 2 3 4 5 I2C_SCL I2C_SDA 3 P OT1 1 C ON _P0 [ 4] R 23 ZE R O 2 5 H EA D ER P 1 [ 5] 10k 2 A. 3 1 SW 2 3 POT2 P0[ 4] 10k SP D T Programming Header VD D _D ev R18 1 2 ZE R O 2 R 20 1.5K C MOD C MOD 1 Place CMOD pad near U3. 2 1 2 5 6 1 1% R 19 SW 1 3 4 P1[ 7 ] SP 4 T 1 5.
Power Supply VDD_Ext 2 + - 1 VDD_BAT ZERO 1 2 3 4 Battery Clip AAA TWO 2 4 10 uFd 16v C6 10 uFd 16v VOUT VIN 5 GN D GND1 C7 + VDD_SW DN P U4 DIODE SCHOTTKY D2 2 1 DIODE SCHOTTKY COMN J3 DIODE SCHOTTKY 2 1 PWR_ON_INV 6 EN NC 1 R5 330 ohm C8 2 0.1 uFd 2 3 MIC94090 SC-70-6 VDD_Dev VDD_SW 2 1 1 2 3 4 Battery Clip AAA 1 D3 1206R J4 R6 D8 VIN 2 D1 LED Red R7 1 ZERO 1 A.1.2 - AAA 1.
A.2 Board Layouts A.2.1 PDC-09587 Top CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
A.2.2 28 PDC-09587 Bottom CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
A.3 Item Bill of Materials Qty Reference Value 1 Description Manufacturer Mfr Part Number PCB Cypress PDC-09587 Rev04 2 2 C1,C4 2200 pFd CAP CER 2200PF 50V 5% C0G 0805 Murata Electronics GRM2165C1H222JA0 1D 3 4 C2,C5,C8,C9 0.1 uFd CAP .10UF 10V CERAMIC X7R 0603 Kemet C0603C104K8RACTU 4 3 C3,C6,C7 10 uFd 16v CAP CERAMIC 10.
Item Qty Reference Value Description Manufacturer Mfr Part Number 27 1 SW1 SP4T SWITCH SLIDE SP4T LOW PROF SMD 28 1 SW2 SPDT SWITCH SLIDE SPDT .3A RT ANGLE E-Switches EG1270 29 1 R18 ZERO RES 0.0 OHM 1/10W 5% 0805 SMD Panasonic-ECG ERJ-6GEY0R00V 30 1 D8 DIODE SCHOTTKY DIODE SCHOTTKY 0.5A 20V SOD-123 Fairchild SemiconducMBR0520L tor 30 Copal Electronics Inc CUS-14TB CY3280-SmartSense CapSense Auto-Tuning Kit Guide, Doc. # 001-64672 Rev.
Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Cypress Semiconductor: CY3280-SMARTSENSE