Page 2
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.
The PSoC 3 FirstTouch Starter Kit is designed to introduce you to the PSoC programmable system- on-chip design methodology and Cypress's new PSoC 3 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.
Introduction Document Revision History Table 1-1. Revision History Origin of Revision Description of Change Creation Date Change 02/19/09 KKU/VED New kit user guide. KKU/ 06/19/09 Updated Guide to the latest FTK Board Revision AESA 07/28/09 Updated Guide to the latest FTK Board Revision Updated PSoC Rocks schematic 04/20/11 SASH...
FX2LP High Speed USB The components indicated in Figure 2-1 are: 1. PSoC 3 100-pin TQFP (Cypress CY8C3866AXI-040 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 as LED Display in this user guide) 6.
Page 8
Note: Wireless modules such as ArtaFlex Radio Modules or Cypress Low power Radio modules such as CYWM6934/35 (not provided with the kit) can be plugged into the Wireless expansion con- nector on board. You may design your own radio module using the Cypress' CyFI-Low power chip CYRF7936-40LXI.
Installation Install Hardware This section shows you how to use the PSoC 3 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 3 FirstTouch Starter Kit. 2.
After following these steps, you must have the following software installed: a. PSoC Creator 1.0 SP1 or later b. PSoC Programmer 3.12.4 or later c. Keil C51 Compiler (Cypress edition) CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Spec. # 001-49613 Rev. *D...
CY8C3866AXI-040, then congratulations, you own the latest version and This kit is equipped with production PSoC 3 silicon. To upgrade CY8CKIT-003 to CY8CKIT-003A, you can purchase our latest kits at www.cypress.com/ go/CY8CKIT-003. CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Spec. # 001-49613 Rev. *D...
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. By default, it displays the following messages one by one: PSoC Rocks! ❐...
Example Projects 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.
Example Projects Figure 4-5. Program Successful 5. When the download is complete, remove the USB cable from the PSoC 3 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.
Example Projects Figure 4-6. PSoC Rocks Schematic 4.1.5 How the PSoC Rocks Project Works 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 3 FirstTouch Starter Kit has a three axis accelerometer.
Page 17
Example Projects Figure 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 String Complete Increment the Message Number Is Message Number >...
Example Projects 4.1.6 PCB Schematic Figure 4-8. PSoC Rocks Project PCB Schematic 3.3V 68 ohm 68 ohm P2_0 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_1 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_2 0603 0603 LED RED...
Example Projects 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.
Example Projects 4.2.1 How the Bubble Level Emulator Project Works A bubble level displays the amount the level deviates from horizontal using a bubble of air in a glass via level. In this project, a level is emulated by the accelerometer on the board. In the case of the bubble level detection, LEDs display the tilt of the board along its length (corresponding to the X axis of the accelerometer).
Example Projects 4.2.2 PCB Schematic Figure 4-11. Bubble Level Emulator Project PCB Schematic 3.3V 68 ohm 68 ohm P2_0 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_1 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_2 0603 0603...
Example Projects ThermistorTemperatureSense This project measures the current room temperature and displays it as a rasterized image when the board is waved. Running the ThermistorTemperatureSense project: 1. Connect the PSoC 3 FirstTouch Starter Kit board to the USB port of the PC through the USB cable.
Example Projects Figure 4-12. Temperature Sensor Project Flowchart Boot Update the raster display data array Start Read and process accelerometer Y axis voltage Calculate character offset If switch is pressed? in the string and update LED display Change temperature display mode String complete? Compute temperature 4.3.1.1...
Example Projects Temperature is calculated by referring to a table of 165 known points on the resistance/temperature curve using a look up table. The table holds resistance values of the thermistor from -40 C to 125 C, in 1 C increments. Linear interpolation is used between the points in the table for temperature calculation up to two decimal places.
Example Projects CapSense Slider This project shows how to detect the position of a finger on the CapSense slider of the PSoC 3 First- Touch Starter Kit board and indicate its position on the LED display. Running the CapSense project: 1.
Page 26
Example 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 respect to finger position CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Spec. # 001-49613 Rev. *D...
Example Projects 4.4.2 PCB Schematic Figure 4-16. PCB Schematic for CapSense Slider Project 3.3V 68 ohm 68 ohm P2_0 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_1 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_2 0603 0603...
Example Projects 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.
Example Projects 4.5.1 How the Proximity Sensor Project Works Proximity detection is performed by a proximity antenna acting as a capacitive sensor. The proximity antenna consists of a wire connected to the proximity connector on the board. Upon power up, the board establishes a baseline capacitance value of the board along with the antenna attached to it.
Example Projects 4.5.2 PCB Schematic Figure 4-19. PCB Schematic for Proximity Detection Project 3.3V 68 ohm 68 ohm P2_0 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_1 0603 0603 LED RED LED RED 68 ohm 68 ohm P2_2 0603 0603...
Technical Reference When creating a new project or modifying an 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 the pin assignment tables listed in section 5.2 PSoC 3 Pin Assignment on PSoC 3 FirstTouch Starter Kit Board on page CY8CKIT-003 PSoC 3 FirstTouch Starter Kit Guide, Spec.
Technical Reference 5.1.1 Hardware Jumpers There are two jumpers on the PCB for setting the power configuration. They are J1 and J4. These jumpers are for selecting the source for powering the PSoC 3. The options are to power the PSoC 3 from the on board 3.3V regulator, to run the PSoC 3 from the USB connector, or to supply power from off board using the J2/J3 connectors.
5.1.3 Bill of Material (BOM) Table 5-1. Bill of Material (BOM) Item Qty Reference Description Manufacturer Mfr Part Number Cypress PDCR-9493 BATTERY HOLDER Keystone Electronics 594 9V Female PC MT BATTERY HOLDER Keystone Electronics 593 9V Male PC MT C1, C4, C6, C8, C9, C12, C13, C14, C15, CAP .1UF 16V...
Page 37
ERJ-2RKF1501X 16W 1% 0402 SMD LT SWITCH 6MM Panasonic - ECG EVQ-PBC07K 100GF H=7MM TH Tri-axis 1.5g-6, Analog KIONIX KXSC7-2050 3x3x0.9mm LGA PSoC 3 Programmable Cypress CY8C3866AXI-040 System-on-Chip Semiconductor IC, FX2 HIGH-SPEED USB PERIPHERAL Cypress CY7C68013A-56LTXC CONTROLLER Semiconductor QFN56 IC SERIAL EEPROM Microchip 128 BIT 2.5V SOT-23-...
Page 38
Technical Reference Table 5-1. Bill of Material (BOM) (continued) Item Qty Reference Description Manufacturer Mfr Part Number NO LOAD Components C25, C29, C30 CAP 0402 NO LOAD RES 100K OHM 1/ R25, R26, R27 Yageo RC0603FR-07100KL 10W 1% 0603 SMD RES NO LOAD 0603 TEST VIA 40 HOLE 20 TV1, TV2...
Page 39
Technical Reference PSoC 3 Pin Assignment on PSoC 3 FirstTouch Starter Kit Board Table 5-2. Pin Assignments Pin Number Port Number Design Function P2[5] Unused / No connect P2[6] General expansion connector J2 pin 13 P2[7] General expansion connector J3 pin 13 P12[4] Unused/No Connect P12[5]...
Page 40
Technical Reference Table 5-2. Pin Assignments (continued) Pin Number Port Number Design Function No Connect No Connect P15[0] Accelerometer ST/Mode P15[1] Accelerometer Mode P3[0] CapSense slider element 1 P3[1] CapSense slider element 2 P3[2] CapSense slider element 3 P3[3] CapSense slider element 4 P3[4] CapSense slider element 5 P3[5]...
Page 41
Technical Reference Table 5-2. Pin Assignments (continued) Pin Number Port Number Design Function P4[2] LED 7 drive P4[3] LED 8 drive P4[4] General expansion connector (J2) Pin 6 P4[5] General expansion connector (J3) Pin 6 P4[6] General expansion connector (J2) Pin 7 P4[7] General expansion connector (J3) Pin 7 Vccd...
Need help?
Do you have a question about the PSoC 3 FirstTouch CY8CKIT-003 and is the answer not in the manual?
Questions and answers