Cypress PSoC 5 FIRSTTOUCH CY8CKIT-014 User manual

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

2 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Copyrights
Copyrights
© Cypress Semiconductor Corporation, 2010. 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. Cypress products are not warranted nor
intended to be used for medical, life support, life saving, critical control or safety applications, unless pursuant to an express
written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as critical components in life-
support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The
inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use
and in doing so indemnifies Cypress against all charges.
Any Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by
and subject to worldwide patent protection (United States and foreign), United States copyright laws and international treaty
provisions. Cypress hereby grants to licensee a personal, non-exclusive, non-transferable license to copy, use, modify, create
derivative works of, and compile the Cypress Source Code and derivative works for the sole purpose of creating custom soft-
ware and or firmware in support of licensee product to be used only in conjunction with a Cypress integrated circuit as speci-
fied in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written 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 FITNESS FOR A
PARTICULAR PURPOSE. Cypress reserves the right to make changes without further notice to the materials described
herein. Cypress does not assume any liability arising out of the application or use of any product or circuit described herein.
Cypress does not authorize its products for use as critical components in life-support systems where a malfunction or failure
may reasonably be expected to result in significant injury to the user. The inclusion of Cypress’ product in a life-support sys-
tems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all
charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
PSoC Designer™, and Programmable System-on-Chip™ are trademarks and PSoC® is a registered trademark of Cypress
Semiconductor Corp. All other trademarks or registered trademarks referenced herein are property of the respective corpora-
tions.
Flash Code Protection
Cypress products meet the specifications contained in their particular Cypress PSoC Data Sheets. Cypress believes that its
family of PSoC products is one of the most secure families of its kind on the market today, regardless of how they are used.
There may be methods, unknown to Cypress, that can breach the code protection features. Any of these methods, to our
knowledge, would be dishonest and possibly illegal. Neither Cypress nor any other semiconductor manufacturer can guaran-
tee the security of their code. Code protection does not mean that we are guaranteeing the product as "unbreakable."
Cypress is willing to work with the customer who is concerned about the integrity of their code. Code protection is constantly
evolving. We at Cypress are committed to continuously improving the code protection features of our products.

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 3
Contents
1. Introduction 5
1.1 Welcome......................................................................................................................5
1.2 Kit Contents .................................................................................................................5
1.3 Document Revision History ........................................................................................6
1.4 Documentation Conventions .......................................................................................6
2. Getting Started 7
2.1 Hardware .....................................................................................................................7
3. Installation 9
3.1 Install Hardware...........................................................................................................9
3.1.1 Hardware Jumpers...........................................................................................9
3.2 Install Software ..........................................................................................................10
4. Example Projects 13
4.1 PSoC Rocks, PSoC Rocks SAR ADC .......................................................................13
4.1.1 Open the PSoC Rocks Project.......................................................................13
4.1.2 Modify the PSoC Rocks Project .....................................................................14
4.1.3 Build, Program, and Run the PSoC Rocks Project ........................................14
4.1.4 Open and Modify the PSoC Rocks SAR ADC Project ...................................15
4.1.5 Schematic Design 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 Schematic ..............................................................................................22
4.3 ThermistorTemperatureSense ...................................................................................23
4.3.1 How the ThermistorTemperatureSense Project Works ..................................23
4.3.1.1 Temperature Sensing Design Principle ...........................................24
4.3.2 PCB Schematic ..............................................................................................25
4.4 CapSense Slider........................................................................................................26
4.4.1 How the CapSense Slider Project Works.......................................................26
4.4.2 PCB Schematic ..............................................................................................28
4.5 Proximity Sensor........................................................................................................29
4.5.1 How the Proximity Sensor Project Works ......................................................30
4.5.2 PCB Schematic ..............................................................................................31
5. Technical Reference 33
5.1 PSoC 5 FirstTouch Starter Kit Schematic..................................................................34
5.1.1 Hardware Jumpers.........................................................................................35
5.1.2 Board Layout..................................................................................................36
5.1.3 Bill of Material (BOM) ....................................................................................38
5.2 PSoC 5 Pin Assignment on PSoC 5 FirstTouch Starter Kit Board ............................41

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

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 5
1. Introduction
1.1 Welcome
Thank you for purchasing the CY8CKIT-014 PSoC® 5 FirstTouch™ Starter Kit.
The PSoC 5 FirstTouch Starter Kit is designed to introduce you to the PSoC programmable system-
on-chip design methodology and Cypress's new PSoC 5 architecture. This full-featured starter kit
ships with an array of sensors, I/O's, projects and software to quickly get you up to speed with PSoC
Creator and our powerful design methodology so you can easily evaluate PSoC and see what
values the solution can provide you.
This kit, in addition to our new PSoC 5 architecture, features the following:
■PSoC Creator development software with an integrated, GCC compiler version 4.2.1
■USB-based 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 purpose I/O pins
■12-pin wireless module header
In this guide you will find instructions on how to easily evaluate the PSoC 5 architecture and PSoC
Creator design methodology through five included example projects. Experience the development
software for yourself and discover how we truly have changed the way you change the world!
If you have questions about or need help with this kit, visit our online technical support center at
http://www.cypress.com/go/support for support options, or contact your local Cypress sales
representative or authorized distributor.
1.2 Kit Contents
PSoC 5 FirstTouch Starter Kit contains:
■Evaluation Board
■Quick Start Guide
■Kit CD
■USB A to Mini B cable
■Proximity wire (for use as proximity detection antenna)
■9V battery

6 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Introduction
1.3 Document Revision History
1.4 Documentation Conventions
Table 1-1. Revision History
Revision PDF
Creation Date
Origin of
Change Description of Change
** 05/17/10 SSUT New kit guide.
Table 1-2. Document Conventions for 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 PSoC Designer User Guide.
[Bracketed, Bold]Displays keyboard commands in procedures:
[Enter] or [Ctrl] [C]
File > Open Represents menu paths:
File > Open > New Project
Bold Displays commands, menu paths, and icon names in procedures:
Click the File icon and then click Open.
Times New Roman Displays an equation:
2 + 2 = 4
Text in gray boxes Describes Cautions or unique functionality of the product.

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 7
2. Getting Started
2.1 Hardware
The PSoC 5 FirstTouch Starter Kit contains these components and sensors.
Figure 2-1. PSoC 5 FirstTouch Starter Kit
The components indicated in Figure 2-1 are:
1. PSoC 5 100-pin TQFP(Cypress CY8C5588AXI-060 TQFP100)
2. Proximity Sensor Connector (Samtec Inc, BCS-101-L-S-HE)
3. Three Axis Accelerometer (Kionix, KXSC7-2050)
4. Five Segment CapSense Slider
5. Bank of Eight LEDs (Also referred to as LED Display in this user guide)
6. Thermistor (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 Connector
11. 9V DC Battery Holder
12. Jumper J1 Vddio Power Source Select
13. Jumper J4 Voltage Regulator Source Select
14. Voltage Regulator (Zetex Inc, ZLDO330)
15. General Purpose Push Button Switch
15. General Purpose
2. Proximity Sensor Connector
3. Accelerometer
4. CapSense Slider
14. Voltage
11. 9V Battery
10. USB Mini B 9. CY7C68013A
8. 28-Pin External
7. 12-Pin Wireless
6. Thermistor
5. Eight Red LED Outputs
Header
FX2LP High Speed USB
Port I/O (on reverse)
Header
Regulator
Switch
13. Jumper J4
12. Jumper J1
1. CY8C5588AXI
PSoC 5 Device

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

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 9
3. Installation
3.1 Install Hardware
This section shows you how to use the PSoC 5 FirstTouch Starter Kit.
Note: This kit comes with a factory programmed demonstration to display "PSoC Rocks!" message
on the LED display when the board is waved.
1. Unpack the PSoC 5 FirstTouch Starter Kit.
2. Connect a 9V DC battery to the battery connector on the kit board.
3. 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 "PSoC Rocks!" appears as shown
in the following figure.
5. Keep waving. The message changes every few seconds.
Figure 3-1. Rasterized Image of "PSoC Rocks!"
3.1.1 Hardware Jumpers
There are two jumpers for power configuration. All examples are run with the default setup of 3.3V
operation. This requires J1-2 to connect to J1-3 and J4-2 to connect to J4-3. For all other configura-
tions see section 5.1.1 Hardware Jumpers on page 35.

10 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Installation
3.2 Install Software
When installing the PSoC 5 FirstTouch Starter Kit, the installer checks if the prerequisites, PSoC
Creator, PSoC Programmer, Windows Installer, Windows.NET, Acrobat Reader, and GCC compiler
version 4.2.1, are installed in your PC. If these applications are not 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 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 installing the development
environment software. Click the Install PSoC 5 FirstTouch Starter Kit menu item to begin this
installation.
Figure 3-3. Installation Dialog.

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 11
Installation
3. As specified, this installation process first determines if you have all prerequisite software. Follow
the on-screen dialogs to complete all required installations. After following these steps, you must
have the following software installed:
a. PSoC Creator 1.0
b. PSoC Programmer 3.11
c. GNU GCC Compiler (for PSoC 5 development)
d. PSoC 5 FirstTouch Starter Kit example projects and documentation
4. Following the software installation, verify you have all hardware and drivers setup for the PSoC 5
FirstTouch Starter Kit by connecting the kit board to your PC via its USB interface. As this is the
first time 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, the kit contents are found at the following location:
C:\Program Files\Cypress\PSoC 5 FirstTouch Starter Kit\
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 →Cypress → PSoC
Programmer 3.11 →PSoC Programmer (see Figure 3-4). In the port selection frame, you
should see the PSoC 5 FirstTouch starter kit. If you do, you have successfully installed all
required software and drivers to begin your PSoC 5 evaluation. Congratulations!
Figure 3-4. Opening PSoC Programmer
6. Close PSoC Programmer
7. Open PSoC Creator and continue on to the next section to experiment with the included example
projects.

12 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Installation
Figure 3-5. Opening PSoC Creator

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

14 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Example Projects
4.1.2 Modify the PSoC Rocks Project
1. From the Workspace Explorer, open the main.c file as shown in Figure 4-2.
2. Replace the "PSoC Rocks!" string in the DisplayString[ ] [ ] array of strings with "Cypress" 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 StringCycles[ ] 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 5 FirstTouch Starter Kit board to your PC by using a USB cable.
3. Click the Program icon.

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 15
Example Projects
Figure 4-4. Program
4. The project is programmed successfully as shown in Figure 4-5 on page 15.
Figure 4-5. Program Successful
5. When the download is complete, remove the USB cable from the PSoC 5 FirstTouch Starter Kit
board and connect a 9V battery to the battery connector.
6. Follow the steps in section 3.1 Install Hardware on page 9 to see your message displayed.
4.1.4 Open and Modify the PSoC Rocks SAR ADC Project
1. Click on the example project the PSoCRocks SAR ADC 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. Follow steps 1 to 3 in Modify the PSoC Rocks Project on page 14 to modify the rasterized image.
5. Follow steps 1 to 6 in Build, Program, and Run the PSoC Rocks Project on page 14 to program
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.cysch file
located in the Workspace Explorer window. PSoC Creator's schematic design entry methodology,
using pre-defined peripheral functions called components, allows rapid hardware definition and
implementation.
The schematic entry system works similarly to standard circuit board schematic entry tools, with the
exception that all components and routing are automatically implemented within the PSoC device
rather than on a PCB. This allows you to create custom solutions using peripherals commonly found
in MCU designs as well as analog peripherals, digital peripherals, and logic, not possible with any
other microcontroller or System on Chip. In many designs, traditionally 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 accelerometer's Y axis is routed to an SAR ADC. A pin component with 3

16 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Example Projects
pins is used to control the functionality of the accelerometer and another pair is used to drive the
LEDs. The last schematic element is a control register that is used to drive the LED pins. The control
register output is inverted to sink current from the LEDs. This allows the LEDs to be driven externally
with the highest possible current and brightness without adding complexity to the 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 of how custom
hardware and peripherals are possible in PSoC devices. Each component selected from the
component catalog and placed onto the project schematic provides a GUI, configurable parameters,
and full data sheet to further customize its operation in the design. During the project build process,
each component generates the required hardware configuration and firmware APIs as necessary to
provide a truly custom hardware configuration.
Figure 4-6. PSoC Rocks Schematic

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 17
Example Projects
Figure 4-7. PSoC Rocks SAR ADC Schematic
4.1.6 How the PSoC Rocks and PSoC Rocks SAR ADC Projects Work
This example displays a message using a bank of LEDs, that when swung in a back and forth arcing
motion, produces a rasterized character display. The PSoC 5 FirstTouch Starter Kit has a three axis
accelerometer. The accelerometer detects the instantaneous acceleration of the board when in
motion. The instantaneous voltage at each axis of the accelerometer is directly proportional to the
acceleration along that axis.
In this project, the firmware uses the Y axis voltage output of the accelerometer. This voltage 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 event.
On start of a new wave the firmware delays for a fixed period of time to start the first character in the
proper position of the wave. The current string is converted into a rasterized display data array prior
to the start of the wave. Each column of the rasterized data array is sequentially output after a fixed
delay. The delay periods may be adjusted in firmware.
For a particular character in the message, a look up table determines which LEDs to turn on. When
the board is waved back and forth rapidly, due to persistence of vision, the user defined image
appears to float in the air. Multiple strings may be configured with each string being displayed for an
adjustable number of wave cycles.

18 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Example 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
offset in the string
Update LED display
No
Yes
String
Complete No
Yes

CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. ** 19
Example Projects
4.1.7 PCB Schematic
Figure 4-9. PSoC Rocks and PSoC Rocks SAR ADC Projects PCB Schematic
P2_0
P4_3
P4_2
P4_1
P4_0
P2_3
P2_2
P2_1
ACC_ENABLE
P4_0
SWDCK
P2_1
XOUT
P2_3
ZOUT
SWV
P4_1
P4_3
LOWBATT
P4_2
SWDIO
ST/MODE
MODE
/XRES
P2_0
P2_2
YOUT
MODE
ACC_ENABLE
ST/MODE
ZOUT
YOUT
XOUT
3.3V
3.3V
3.3V
0402
DNI
C29
NOLOAD
0402
DNI
C29
NOLOAD
0402
R17
68 ohm
0402
R17
68 ohm
1 2
0603
D1
LED RED
0603
D1
LED RED
2 1
0402
C1
0.1 uFd
0402
C1
0.1 uFd
0603
D5
LED RED
0603
D5
LED RED
2 1
0402
R18
68 ohm
0402
R18
68 ohm
1 2
U1
KXSC7-2050
U1
KXSC7-2050
VDD 1
MODE
2
ST/MOT
3
ENABLE
4
X5
Y6
Z7
GND
8
0402
R19
68 ohm
0402
R19
68 ohm
1 2
0402
DNI
C30
NOLOAD
0402
DNI
C30
NOLOAD
0603
D7
LED RED
0603
D7
LED RED
2 1
0603
D2
LED RED
0603
D2
LED RED
2 1
U2
CY8C5588AXI-060 TQFP100
U2
CY8C5588AXI-060 TQFP100
P2_5
1
P2_6
2
P2_7
3
P12_4 I2C0_SCL, SIO
4
P12_5 I2C0_SDA, SIO
5
P6_4
6
P6_5
7
P6_6
8
P6_7
9
VSSb
10
Ind
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
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
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 56
P15_2 55
SIO, I2C1_SDA P12_1 54
SIO, I2C1_SCL P12_0 53
P3_7 52
P3_6 51
P2_4 99
P2_3 98
P2_2 97
P2_1 96
P2_0 95
P15_5 94
P15_4 93
P6_3 92
P6_2 91
P6_1 90
P6_0 89
VDDd 88
VSSd 87
VCCd 86
P4_7 85
P4_6 84
P4_5 83
P4_4 82
P4_3 81
P4_2 80
P0_7 79
P0_6 78
P0_5 77
P0_4 76
VDDio2 100
0603
D4
LED RED
0603
D4
LED RED
2 1
0402
R7
68 ohm
0402
R7
68 ohm
1 2
0603
D6
LED RED
0603
D6
LED RED
2 1
0402
DNI
C25
NOLOAD
0402
DNI
C25
NOLOAD
0402
R10
68 ohm
0402
R10
68 ohm
1 2
0402
R2
68 ohm
0402
R2
68 ohm
1 2
0402
R13
68 ohm
0402
R13
68 ohm
1 2
0402
R35
1.5K
0402
R35
1.5K
12
0603
D8
LED RED
0603
D8
LED RED
2 1
0402
R16
68 ohm
0402
R16
68 ohm
1 2
0603
D3
LED RED
0603
D3
LED RED
2 1

20 CY8CKIT-014 PSoC 5 FirstTouch Starter Kit Guide, Spec. # 001-57708 Rev. **
Example Projects
4.2 Bubble Level Emulator
This project emulates a glass bubble level instrument using the onboard accelerometer and the LED
display. When the program is run, the LEDs shows the direction in which the board is tilted.
Running the Bubble Level Emulator project:
1. Connect the PSoC 5 FirstTouch Starter Kit board to the USB port of the PC using the USB cable.
2. Click on the example project BubbleLevel 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 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 PSoC 5 FirstTouch 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 Starter Kit
board.
7. Tilt the board along the X axis of the accelerometer by holding the battery in a stationary position
and move the edge opposite the battery up and down as shown in Figure 4-10. As you tilt the
board, you could see the direction of the tilt on the LED display.
Figure 4-10. Bubble Level Emulator - Perpendicular Motion
Other manuals for PSoC 5 FIRSTTOUCH CY8CKIT-014
1
Table of contents
Other Cypress Network Hardware manuals