background image

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **

13

4.

Example Projects

4.1

PSoC Rocks, PSoC Rocks SAR ADC

The PSoC Rocks project displays a rasterized image of the user defined message ("PSoC Rocks!")
using persistence of vision. Waving the circuit board back and forth quickly in the plane of the board
generates the message. PSoC 5 FirstTouch Starter Kit is factory programmed with PSoC Rocks
SAR ADC project. This project is similar to PSoC Rocks project. The difference is PSoC Rocks SAR
ADC project uses SAR ADC, and PSoC Rocks project uses Delta Sigma ADC 

4.1.1

Open the PSoC Rocks Project

1. Click on the example project 

PSoCRocks

 from 

Kits and Solutions

 present on the start page of 

the PSoC Creator.

2. Make a folder in the desired location and click 

OK

.

3. Project opens up in the PSoC Creator and gets saved in that folder.
4. Build the project to generate the 

.hex

 file.

Figure 4-1.  Open PSoC Rocks from Kits and Solutions

Summary of Contents for PSoC 5 FIRSTTOUCH CY8CKIT-014

Page 1: ...CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypress com...

Page 2: ...permission of Cypress Disclaimer CYPRESS MAKES NO WARRANTY OF ANY KIND EXPRESS OR IMPLIED WITH REGARD TO THIS MATE RIAL INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITN...

Page 3: ...gn PSoC Creator 15 4 1 6 How the PSoC Rocks and PSoC Rocks SAR ADC Projects Work 17 4 1 7 PCB Schematic 19 4 2 Bubble Level Emulator 20 4 2 1 How the Bubble Level Emulator Project Works 21 4 2 2 PCB S...

Page 4: ...4 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Contents...

Page 5: ...ased Serial Wire Debugging protocol programmer and debug interface Accelerometer analog sensor Thermistor analog sensor Proximity analog sensor CapSense analog touch sensing interface 28 pin general p...

Page 6: ...splays file locations user entered text and source code C cd icc Italics Displays file names and reference documentation Read about the sourcefile hex file in the PSoC Designer User Guide Bracketed Bo...

Page 7: ...or Murata NCP21XV103J03RA 7 Wireless Expansion Connector 8 General Purpose Expansion Connector 22 GPIO 2 VDD 2 GND 2 SIO 9 USB Programming and Debugging Interface Cypress CY7C68013A 56LFXC 10 USB Conn...

Page 8: ...8 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Getting Started...

Page 9: ...Hold the board and battery exposing the LEDs Then continuously wave the board from side to side in the plane of the PCB shown in Figure 3 1 4 As you wave the board the rasterized image of the message...

Page 10: ...ot installed then the installer prompts you to install them 1 Insert the Kit CD into the your PC The CD is designed to automatically open an installation dialog see Figure 3 3 If this does not automat...

Page 11: ...you have connected this board to this PC initial driver installations occur Should any on screen dialogs appear follow them to complete the installation process Note After the installation is complete...

Page 12: ...12 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Installation Figure 3 5 Opening PSoC Creator...

Page 13: ...is factory programmed with PSoC Rocks SAR ADC project This project is similar to PSoC Rocks project The difference is PSoC Rocks SAR ADC project uses SAR ADC and PSoC Rocks project uses Delta Sigma A...

Page 14: ...or any other message s desired up to 25 characters Figure 4 2 main c File View 3 The number of times each string in the array is displayed can be adjusted by modifying the respective entry in the Str...

Page 15: ...m the project into the PSoC 5 FirstTouch Starter Kit board and verify the output 4 1 5 Schematic Design PSoC Creator This project s customized hardware configuration is viewed by opening the TopDesign...

Page 16: ...e design Conventional systems would require firmware overhead to decode and invert the data for each of the affected LED pins The PSoC Rocks schematic see Figure 4 6 on page 16 provides a small sample...

Page 17: ...age is routed to an ADC in the PSoC This digital value is now a measure of acceleration detected by the accelerometer If the acceleration exceeds a maximum value it signals the start of a new wave eve...

Page 18: ...xample Projects Figure 4 8 PSoC Rocks and PSoC Rocks SAR ADC Projects Flowchart Boot Start Get ADC count V for measured accelerometer Y axis voltage V minimum oscillation thershold Calculate character...

Page 19: ...d 11 Vboost 12 Vbat 13 VSSd 14 XRES 15 P5_0 16 P5_1 17 P5_2 18 P5_3 19 P1_0 20 P1_1 21 P1_2 22 P1_3 23 P1_4 24 P1_5 25 VDDio1 26 P1_6 27 P1_7 28 P12_6_SIO 29 P12_7_SIO 30 P5_4 31 P5_5 32 P5_6 33 P5_7...

Page 20: ...the desired location and click OK 4 Project opens up in the PSoC Creator and gets saved in that folder 5 Follow step 1 to 4 in section 4 1 3 Build Program and Run the PSoC Rocks Project on page 14 to...

Page 21: ...ometer is zero In this position of the board the two LEDs in the center of the LED display are turned on As the board is tilted in one direction the force of gravity along that axis increases This inc...

Page 22: ...6 P3_3 47 P3_4 48 P3_5 49 VDDio3 50 VDDio0 75 P0_3 74 P0_2 73 P0_1 72 P0_0 71 P4_1 70 P4_0 69 SIO_P12_3 68 SIO_P12_2 67 VSSd 66 VDDa 65 VSSa 64 VCCa 63 NC8 62 NC7 61 NC6 60 NC5 59 NC4 58 NC3 57 P15_3...

Page 23: ...board from the USB port and connect a 9V DC battery to the battery connector of the PSoC 5 FirstTouch Starter Kit board 7 Hold the board and wave it continuously from left to right as shown in Figure...

Page 24: ...l using the ADC on the PSoC To gain additional accuracy the voltage at the input side of the divider is also measured The resistor value is calculated using the ratio of the voltages across the two re...

Page 25: ...1 KXSC7 2050 U1 KXSC7 2050 VDD 1 MODE 2 ST MOT 3 ENABLE 4 X 5 Y 6 Z 7 GND 8 0603 R6 10K 1 0603 R6 10K 1 0402 R19 68 ohm 0402 R19 68 ohm 1 2 0402 DNI C30 NOLOAD 0402 DNI C30 NOLOAD 0603 D7 LED RED 0603...

Page 26: ...h Starter Kit board 6 When the download is complete remove the PSoC 5 FirstTouch Starter Kit board from the USB port and connect a 9V DC battery to the battery connector of the PSoC 5 FirstTouch Start...

Page 27: ...Guide Spec 001 57708 Rev 27 Example Projects Figure 4 16 CapSense Slider Project Flowchart Boot Start Scan CapSense Slider Read the Centroid position is finger detected on the slider Update LED displ...

Page 28: ..._6 27 P1_7 28 P12_6_SIO 29 P12_7_SIO 30 P5_4 31 P5_5 32 P5_6 33 P5_7 34 P15_6 DP 35 P15_7 DM 36 VDDd 37 VSSd 38 VCCd 39 NC1 40 NC2 41 P15_0 42 P15_1 43 P3_0 44 P3_1 45 P3_2 46 P3_3 47 P3_4 48 P3_5 49...

Page 29: ...the desired location and click OK 4 Project opens up in PSoC Creator and gets saved in that folder 5 Follow step 1 to 4 in section 4 1 3 Build Program and Run the PSoC Rocks Project on page 14 to prog...

Page 30: ...se 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 bei...

Page 31: ...3 19 P1_0 20 P1_1 21 P1_2 22 P1_3 23 P1_4 24 P1_5 25 VDDio1 26 P1_6 27 P1_7 28 P12_6_SIO 29 P12_7_SIO 30 P5_4 31 P5_5 32 P5_6 33 P5_7 34 P15_6 DP 35 P15_7 DM 36 VDDd 37 VSSd 38 VCCd 39 NC1 40 NC2 41 P...

Page 32: ...32 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Example Projects...

Page 33: ...a new project or modifying an existing project refer to the PSoC 5 FirstTouch Starter Kit board schematic provided in section 5 1 PSoC 5 FirstTouch Starter Kit Schematic on page 34 and the pin assign...

Page 34: ...d 0603 C27 1 0 uFd 0603 R27 100K 1 0603 R27 100K 1 0603 R1 560 ohm 1 0603 R1 560 ohm 1 P2 6x2 RECP 2mm SMT P2 6x2 RECP 2mm SMT 1 1 3 3 5 5 7 7 9 9 11 11 2 2 4 4 6 6 8 8 10 10 12 12 FRAME S1 SW PUSHBUT...

Page 35: ...e power source to drive the 3 3 volt regulator This regulator can be used to power everything on the board or just the accelerometer The regulator cannot be powered indepen dently from the VDDIO bus I...

Page 36: ...36 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Technical Reference 5 1 2 Board Layout Figure 5 2 Primary Side Primary Silkscreen...

Page 37: ...CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev 37 Technical Reference Figure 5 3 Secondary Side Secondary Silkscreen...

Page 38: ...C21 CAP CER 2 2UF 6 3V 20 X5R 0402 Panasonic ECG ECJ 0EB0J225M 10 1 C26 CAP CER 10PF 100V C0G 0603 Murata GRM1885C2A100RA01D 11 8 D1 D2 D3 D4 D5 D6 D7 D8 LED RED CLEAR 0603 SMD Lite On Trading USA In...

Page 39: ...emiconductor MCR03EZPFX3902 31 1 R34 RES 62 0K OHM 1 10W 1 0603 SMD Rohm Semiconductor MCR03EZPFX6202 32 1 R35 RES 1 50K OHM 1 16W 1 0402 SMD Panasonic ECG ERJ 2RKF1501X 33 1 S1 LT SWITCH 6MM 100GF H...

Page 40: ...nts 42 3 C25 C29 C30 CAP 0402 NO LOAD NA NA 43 1 R14 RES NO LOAD 0603 SMD NA NA 44 2 TV1 TV2 TEST VIA 40 HOLE 20 PLATED NONE 45 5 CSS1 CSS2 CSS3 CSS4 CSS5 CapSense Slider Element Manufacturing Process...

Page 41: ...S Reset from FX2LP 16 P5 0 Wireless expansion connector pin 7 17 P5 1 Wireless expansion connector pin 11 18 P5 2 Wireless expansion connector pin 4 19 P5 3 Wireless expansion connector pin 6 20 P1 0...

Page 42: ...able sleep 56 P15 3 General purpose Push Button Switch 57 NC No Connect 58 NC No Connect 59 NC No Connect 60 NC No Connect 61 NC No Connect 62 NC No Connect 63 Vcca Input to analog core 64 Vssa GND 65...

Page 43: ...tor J3 Pin 7 86 Vccd Input to digital core 87 Vssd GND 88 Vddd 3 3V 89 P6 0 General expansion connector J2 Pin 8 90 P6 1 General expansion connector J3 Pin 8 91 P6 2 General expansion connector J2 Pin...

Page 44: ...44 CY8CKIT 014 PSoC 5 FirstTouch Starter Kit Guide Spec 001 57708 Rev Technical Reference...

Reviews: