background image

28

CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Spec. # 001-49613 Rev. *B

Example Projects

4.5

Proximity Sensor 

This project senses the presence of a finger near the proximity detection antenna. The number of
LEDs that light up on the LED display on the PSoC 3 FirstTouch Starter Kit board increases as the
finger gets closer to the antenna.

To run the proximity sensor project, follow these steps:
1. Connect the PSoC 3 FirstTouch Starter Kit board to the USB port of the PC through the USB 

cable.

2. Click on the example project ProximitySensor from 

Kits and Solutions

 present on the Startup 

page of the PSoC Creator.

3. Make a folder in 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 program the project into the PSoC 3 FirstTouch Starter Kit board.

6. When the download is complete, remove the PSoC 3 FirstTouch Starter Kit board from the USB 

port.

7. Attach the wire antenna to the board at the proximity sensor connector and connect the 9V DC 

battery to the battery connector of the PSoC 3 FirstTouch Starter Kit board. 

8. Move your finger near and away from the proximity antenna. As your finger comes closer to the 

antenna, the number of LEDs that light up increases. When it does not sense your finger or hand 
near the antenna, all the LEDs are turned off.

Figure 4-17.  Wire Antenna attached to Proximity Sensor Connector

Downloaded from 

Elcodis.com

 

electronic components distributor

 

Summary of Contents for CY8CKIT-003

Page 1: ...arter Kit Guide Spec 001 49613 Rev B Cypress Semiconductor 198 Champion Court San Jose CA 95134 1709 Phone USA 800 858 1810 Phone Intnl 408 943 2600 http www cypress com Downloaded from Elcodis com el...

Page 2: ...mer 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 FITNESS FOR A PARTICULAR PURPOSE C...

Page 3: ...s 16 4 1 6 PCB Schematic 18 4 2 Bubble Level Emulator 19 4 2 1 How the Bubble Level Emulator Project Works 20 4 2 2 PCB Schematic 21 4 3 ThermistorTemperatureSense 22 4 3 1 How the ThermistorTemperatu...

Page 4: ...4 CY8CKIT 003 PSoC 3 FirstTouch Starter Kit Guide Spec 001 49613 Rev B Contents Downloaded from Elcodis com electronic components distributor...

Page 5: ...l programmer and debug interface Accelerometer analog sensor Thermistor analog sensor Proximity analog sensor CapSense analog touch sensing interface 28 pin general purpose I O pins 12 pin wireless mo...

Page 6: ...Guides Convention Usage Courier New Displays 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...

Page 7: ...less 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 Connector 11 9V DC Battery Holder 12...

Page 8: ...8 CY8CKIT 003 PSoC 3 FirstTouch Starter Kit Guide Spec 001 49613 Rev B Getting Started Downloaded from Elcodis com electronic components distributor...

Page 9: ...osing 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 PSoC Rocks appears as shown in...

Page 10: ...automatically open do manually open this by running the cyautorun exe utility on the kit cd Figure 3 2 Auto Run File View 2 The kit cd s installation dialog prompts you to open this file or begin inst...

Page 11: ...ollow them to complete the installation process 5 Now verify your installation and setup by opening PSoC Programmer with the kit board attached over USB To open PSoC Programmer click Start Programs Cy...

Page 12: ...12 CY8CKIT 003 PSoC 3 FirstTouch Starter Kit Guide Spec 001 49613 Rev B Installation Downloaded from Elcodis com electronic components distributor...

Page 13: ...from Kits and Solutions present on the Startup 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 Buil...

Page 14: ...ringCycles array Valid entries are 1 255 4 1 3 Build Program and Run the PSoC Rocks Project 1 Build the project by selecting Build Build PSoCRocks Figure 4 3 Build PSoCRocks 2 Connect the PSoC 3 First...

Page 15: ...external resources are able to be fully integrated within the PSoC device The PSoC Rocks design schematic uses several peripheral and circuit elements A single analog input pin connected to the accele...

Page 16: ...tal 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 event On start of a new wave the firmware delays...

Page 17: ...gure 4 7 PSoC Rocks Project Flowchart Boot Start Get ADC count V for measured accelerometer Y axis voltage V minimum oscillation thershold Calculate character offset in the string Update LED display N...

Page 18: ...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 34 P15_6 DP 35 P15_7 DM 36 VDDd 37 VSSd 38...

Page 19: ...ck 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 program the project into the...

Page 20: ...n 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 increases the static acceleration...

Page 21: ...o3 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 56 P15_2 55 SIO I2C1_SDA P12_1...

Page 22: ...onnect a 9V DC battery to the battery connector of the PSoC 3 FirstTouch Starter Kit board 7 Hold the board and wave it continuously from left to right as shown in Figure 3 1 on page 9 A rasterized im...

Page 23: ...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 resistors in the resistor ladder...

Page 24: ...3 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 34 P15_6 DP 35 P15_7...

Page 25: ...download is complete remove the PSoC 3 FirstTouch Starter Kit board from the USB port and connect a 9V DC battery to the battery connector of the PSoC 3 FirstTouch Starter Kit board 7 Move your finge...

Page 26: ...xample Projects Figure 4 15 CapSense Slider Project Flowchart Boot Start Scan CapSense Slider Read the Centroid position is finger detected on the slider Update LED display with respact to finger posi...

Page 27: ...Cd 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 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...

Page 28: ...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 program the project into the PSoC...

Page 29: ...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 being closer to the antenna This...

Page 30: ...CCd 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 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 VSS...

Page 31: ...existing project refer to the PSoC 3 FirstTouch Starter Kit board schematic provided in section 5 1 PSoC 3 FirstTouch Starter Kit Schematic on page 32 and the pin assignment tables listed in section...

Page 32: ...0K 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 PUSHBUTTON FRAME S1 SW PUSHBUTTON 1A...

Page 33: ...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 It must either power the VDDIO...

Page 34: ...PSoC 3 FirstTouch Starter Kit Guide Spec 001 49613 Rev B Technical Reference 5 1 2 Board Layout Figure 5 2 PDCR 9493 Rev Primary Side Primary Silkscreen Downloaded from Elcodis com electronic componen...

Page 35: ...003 PSoC 3 FirstTouch Starter Kit Guide Spec 001 49613 Rev B 35 Technical Reference Figure 5 3 PDCR 9493 Rev Secondary Side Secondary Silkscreen Downloaded from Elcodis com electronic components dist...

Page 36: ...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 Inc LTST C190CKT 12 2 D9 D10 DIO...

Page 37: ...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 7MM TH Panasonic ECG EVQ PBC07...

Page 38: ...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 NA Table 5 1 Bill of Material...

Page 39: ...eless 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 Programming Debugging Data lin...

Page 40: ...rpose 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 Vdda 3 3V 66 Vssd GND 67 P12...

Page 41: ...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 9 92 P6 3 General expansion c...

Page 42: ...42 CY8CKIT 003 PSoC 3 FirstTouch Starter Kit Guide Spec 001 49613 Rev B Technical Reference Downloaded from Elcodis com electronic components distributor...

Reviews: