Cypress Semiconductor CY8CKIT-042-BLE Manual

Bluetooth low energy pioneer kit
Hide thumbs Also See for CY8CKIT-042-BLE:
Table of Contents

Advertisement

Quick Links

CY8CKIT-042-BLE
®
Bluetooth
Low Energy (BLE)
Pioneer Kit Guide
Doc. # 001-93731 Rev. **
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone (USA): 800.858.1810
Phone (Intnl): +1.408.943.2600
www.cypress.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CY8CKIT-042-BLE and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for Cypress Semiconductor CY8CKIT-042-BLE

  • Page 1 CY8CKIT-042-BLE ® Bluetooth Low Energy (BLE) Pioneer Kit Guide Doc. # 001-93731 Rev. ** Cypress Semiconductor 198 Champion Court San Jose, CA 95134-1709 Phone (USA): 800.858.1810 Phone (Intnl): +1.408.943.2600 www.cypress.com...
  • Page 2 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.
  • Page 3: Table Of Contents

    Measure Coin-cell Power Consumption ..............34 4. Example Projects Using Example Projects.....................37 Kit Test........................42 4.2.1 Project Description ..................42 4.2.2 Hardware Connections...................43 4.2.3 Flow Chart......................44 4.2.4 Verify Output ....................45 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 4 5.3.4 Antenna Matching Network................109 5.3.5 USB Type A Plug ..................110 5.3.6 System Status LED and Power LED............111 5.3.7 User LED ..................... 111 5.3.8 Push Buttons ....................112 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 5 6.5.1 Address Selection ..................149 6.5.2 Write/Read Operation ..................149 CySmart iOS Application ..................150 CySmart PC Tool.....................158 A. Appendix Schematics ......................167 Board Layout ......................175 Bill of Materials (BOM) .....................183 Revision History CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 6 Contents CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 7: Safety Information

    Safety Information The CY8CKIT-042-BLE Bluetooth Low Energy (BLE) Pioneer Kit is intended for use as a development platform for hardware or software in a laboratory environment. The board is an open system design, which does not include a shielded enclosure. For this reason, the board may cause interference with other electrical or electronic devices in close proximity.
  • Page 8 Handling Boards CY8CKIT-042-BLE boards are sensitive to ESD. Hold the board only by its edges. After removing the board from its box, place it on a grounded, static-free surface. Use a conductive foam pad if available.
  • Page 9: Introduction

    Quick start guide ■ USB standard A to mini-B cable ■ Four jumper wires (4 inch) and two proximity sensor wires (5 inch) ■ Coin cell ■ CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 10: Board Details

    10.Cypress F-RAM 1 Mb (FM24V10-G) 11. PSoC 5LP I/O header (J8) 12.PSoC 5LP - programmer and debugger (CY8C5868LTI-LP039) 13.Coin cell holder (bottom side) 14.USB connector (J13) 15.Power LED 16.Status LED CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 11 17.System power supply jumper (J16) 18.Arduino compatible I/O header (J3) 19.Arduino compatible I/O header (J4) 20.BLE power supply jumper (J15) 21.BLE module headers (J10/J11) Figure 1-2. BLE Pioneer Baseboard Markup CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 12 BLE module denotes the PSoC 4 BLE module and black BLE module denotes the PRoC BLE module. Figure 1-3. BLE Module Markup CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 13: Psoc Creator

    PSoC Creator also enables you to tap into an entire tool ecosystem with integrated compiler chains and production programmers for PSoC devices. For more information, visit www.cypress.com/psoccreator. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 14: Getting Started

    1.5.2 Application Notes Visit www.cypress.com/appnotes to view a growing list of application notes for PSoC 3, PSoC 4, PSoC 4 BLE, PRoC BLE, and PSoC 5LP. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 15: Psoc Creator Example Projects

    Bluetooth Low Energy protocol and systems. Some of them are: Training videos ■ GATT profiles ■ Bluetooth community forum ■ 1.5.6 Learning From Peers Cypress Developer Community Forums: Visit www.cypress.com/forums CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 16: Other Related Resources

    Click the File icon and then click Open. Displays an equation: Times New Roman 2 + 2 = 4 Text in gray boxes Describes cautions or unique functionality of the product. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 17: Acronyms

    Red Green Blue Successive Approximation Register Serial Peripheral Interface Serial Wire Debug UART Universal Asynchronous Receiver Transmitter Universal Serial Bus USB CDC Universal Serial Bus Communications Device Class CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 18 Introduction CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 19: Software Installation

    Internet. b. CY8CKIT-042-BLE Kit Only: This executable file installs only the kit contents, which include kit code examples, hardware files, and user documents. This package can be used if all the software prerequisites (listed in step 5) are installed on your PC.
  • Page 20 Figure 2-1. Figure 2-1. Kit Installer Screen 4. Select the folder in which you want to install the CY8CKIT-042-BLE kit-related files. Choose the directory and click Next. 5. When you click Next, the CY8CKIT-042-BLE Kit installer automatically installs the required software, if it is not present on your computer.
  • Page 21 PC to emulate as a BLE central device. Refer to CySmart PC Tool on page 158 for more details on how to use the CySmart PC Tool. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 22: Uninstall Software

    Manager; select the Uninstall button. Go to Start > Control Panel > Programs and Features for Windows 7 or Add/Remove ■ Programs for Windows XP; select the Uninstall/Change button. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 23: Kit Operation

    PSoC 4 BLE/PRoC BLE devices using serial wire debug (SWD), and as a USB-Serial bridge. The firmware on PSoC 5LP device enables bootloading over USB to upgrade the firmware. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 24: Xres /Xres

    MATCHING Type-A CIRCUIT 68QFN 56QFN D+ / D- Plug EXTRA GPIO USER Button USER LED Protection STATUS LED 10-Pin Programming XRES XRES Button Circuits POWER LED Header CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 25: Ble Pioneer Kit Usb Connection

    20-pin, respectively) and will not allow the BLE Module to be inserted in the opposite direction. Figure 3-5. Baseboard with J10 and J11 Headers to connect BLE Modules CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 26: Programming And Debugging Ble Device

    1. To program the device, plug the USB cable into the programming USB connector, J13, as shown Figure 3-7. The kit will enumerate as a composite device. Figure 3-7. Connect USB Cable to J13 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 27 Workspace . This will provide the option to browse to and open your saved project. 4. Build the project by choosing Build > Build <Project Name> or [Shift] [F6] , as shown in Figure 3-9. Figure 3-9. Build an Example Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 28 Debug mode; you can use it to debug your application. For more details on using the debug features, see the Cypress application note Getting Started with PSoC 4 BLE. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 29: Dongle Connection

    PRoC BLE, USB-UART bridge, and USB-I C bridge. Additionally, the interface is used to communicate with the CySmart PC Tool and emulate a BLE central device on PRoC BLE. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 30 File Load button and browse to the location of the BLE_Dongle_CySmart.hex file. The hex file is located at: C:\Program Files (x86)\Cypress\ CY8CKIT-042-BLE Kit\<version>\Firmware\BLE Dongle\Hex Files\ Figure 3-13. Open Hex File CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 31: Usb-Uart Bridge

    UART component in the PSoC 4 BLE or PRoC BLE and assign the UART pins as shown in Table 3-2. Table 3-2. UART Pin Assignment in BLE Devices for USB-UART Bridge BLE Pioneer Kit BLE Dongle UART_RX P1_4 P1_4 UART_TX P1_5 P1_5 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 32: Usb-I2C Bridge

    C is available under Connected I2C/SPI/RX8 Ports in the BCP, as shown in Figure 3-15. To open BCP in your system, go to Start > All Programs > Cypress > Bridge Control Panel . Figure 3-15. Bridge Control Panel CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 33 C speed of 50 kHz, 100 kHz, 400 kHz, and 1 MHz. Using PSoC 5LP as USB-I2C Bridge on page 124 for building a project that uses the USB-I bridge functionality. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 34: Updating The Onboard Programmer Firmware

    Connect the positive terminal of the coin cell to pin J2.2 and negative terminal to pin J2.4 using wires. Figure 3-17. Powering the BLE Module using a Coin-Cell Battery CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 35 Connect an ammeter in series with the battery to measure the power consumption as shown in Figure 3-18. Figure 3-18. Current Measurement of BLE Module when Powered from a Coin-cell Battery CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 36 Kit Operation CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 37: Example Projects

    Follow these steps to open and use the example projects: 1. Launch PSoC Creator from Start > All Programs > Cypress > PSoC Creator 3.1 > PSoC Creator 3.1 . CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 38 Example Projects 2. On the Start Page, choose Examples and Kits > Kits > CY8CKIT-042-BLE . A list of example projects appears, as shown in Figure 4-1. Projects named with the prefix ' PSoC_4_BLE_ ' work on the BLE Pioneer kit with the PSoC 4 BLE Module; projects named with the prefix ' PRoC_BLE_ ' work on the BLE Pioneer kit with the PRoC BLE Module.
  • Page 39 6. Build the example project by choosing Build > Build <Project Name> , as shown in Figure 4-3. A hex file will be generated. Figure 4-3. Build Project from PSoC Creator CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 40 Additionally, the serial ID starting with 'BLE' belongs to the Dongle (see Dongle Connection on page 29) and provides visual confirmation for Dongles connected to the system. Figure 4-5. Port Acquire CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 41 BLE-enabled phones and PCs are one such example. BLE peripheral devices, on the other hand, store the actual data and send it to central devices when requested. Examples include BLE- enabled sensors, proximity beacons, and so on. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 42: Kit Test

    Two projects demonstrate this functionality on two different devices: PSoC_4_BLE_Kit_Test works with the PSoC 4 BLE Module. ■ PRoC_BLE_Kit_Test works with PRoC BLE Module. ■ Figure 4-7. TopDesign for PSoC_4_BLE_Kit_Test CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 43: Hardware Connections

    PRoC_BLE_Kit_Test works with the PRoC BLE Module (black BLE Module). Table 4-1. Pin Assignment for Test Project Pin Name Port Name Blue_LED P3_7 Figure 4-9. Pin Selection for Test Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 44: Flow Chart

    Figure 4-10. Test Project Flow Chart Power BLE Kit Start timer and Interrupt Is the Interrupt Flag Set? Toggle the state of onboard LED Reset Interrupt Flag CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 45: Verify Output

    (Figure 4-11). Figure 4-11. Toggling LED on BLE Pioneer Kit with PSoC 4 BLE Module Figure 4-12. Toggling LED on BLE Pioneer Kit with PRoC BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 46: Capsense Slider And Led

    The PSoC 4 BLE project implements RGB color and intensity control using the PRiSM component whereas the PRoC BLE uses the software implementation of the PRiSM mode. Figure 4-13. TopDesign for PSoC_4_BLE_CapSense_Slider_LED Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 47 Example Projects Figure 4-14. TopDesign for PRoC_BLE_CapSense_Slider_LED Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 48: Hardware Connections

    CapSense Slider 3 P2_3 CapSense Slider 4 P2_4 CapSense Slider 5 P2_5 BLUE P3_7 GREEN P3_6 P2_6 User_Button P2_7 Figure 4-15. Pin Selection for CapSense Slider and LED Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 49: Flow Chart

    Extract Data and Received RGB change color/ LED Data? brightness on LED BLE Connection Still Present? System in Sleep and waiting for User button press CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 50: Verify Output

    7. Click Start Scan to see the list of available BLE peripheral devices. You can confirm your device by the device name and Bluetooth address in the list. This should be same as the one configured in the BLE component GUI. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 51 9. If the connection is successful, you will see another tab opening besides the Master tab. Go to this tab and click Discover All Attributes . Figure 4-18. Discover All Attributes CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 52 11. Enter '01:00' in the value field and click Write Value . This enables the notifications on the CapSense Slider characteristic. The notifications received are displayed in the Value field of the CapSense Slider characteristic. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 53 Figure 4-20. Figure 4-20. CapSense Slider notification received Figure 4-21. CapSense Slider 13.Write '00:00' to the Client Characteristic Configuration descriptor to disable notifications. Figure 4-22. Disable Notifications CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 54 This is because the coin cell provides a lower driving voltage for RGB LEDs. Figure 4-24. Write RGB LED Control Characteristic Value CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 55 Example Projects Figure 4-25. RGB LED Control with PSoC 4 BLE Module Figure 4-26. RGB LED Control with PRoC BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 56 150), follow these steps: 1. To verify the PSoC_4_BLE_CapSense_Slider_LED project, plug in the PSoC 4 BLE Module on the Baseboard. Figure 4-28. BLE Pioneer Kit with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 57 LED on the BLE Pioneer kit. 5. Open the application on the mobile device. If Bluetooth is not enabled on the device, the application will ask to enable it. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 58 7. When connected, the application will list the supported profiles by the peripherals. Scroll and select the CapSense page, as shown in Figure 4-31. Figure 4-31. CapSense Service Page CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 59 9. Press the back button in the top left corner of the application to return to the service selection page. Scroll and tap on the RGB LED service shown in Figure 4-33. Figure 4-33. RGB LED Service Page CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 60 This is because the coin cell provides a lower driving voltage for RGB LEDs. Figure 4-34. RGB LED Control with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 61 12.To reconnect to the peripheral, press the user button ( SW2 ) on the BLE Pioneer kit again and then scan for devices using CySmart mobile app. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 62: Capsense Proximity

    Two projects demonstrate this functionality on two different devices: PSoC_4_BLE_CapSense_Proximity works with the PSoC 4 BLE Module. ■ PRoC_BLE_CapSense_Proximity works with the PRoC BLE Module. ■ Figure 4-36. Top Design for PSoC_4_BLE_CapSense_Proximity Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 63: Hardware Connections

    Note: Ensure that the proximity sensor loop wire is kept away as much as possible from the BLE antenna on the modules. Figure 4-38. Proximity Sensor Connection on BLE Pioneer Kit with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 64 Table 4-3. Pin Assignments for CapSense Proximity Project Pin Name Port Name CapSense CMOD P4_0 CapSense Proximity Sensor P2_0 User Button P2_7 Status LED P3_7 Figure 4-40. Pin Selection for CapSense Proximity Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 65: Flow Chart

    Notification Changed? enabled? Send the proximity data to BLE Central device BLE connection still exists ? System is put in Sleep and waits for User Button press CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 66: Verify Output

    9. After the available devices are listed, double-click CapSense Proximity to connect or click Stop Scan and then click Connect to connect to the device. Figure 4-42. Connect to CapSense Proximity peripheral CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 67 12.Enter '01:00' in the Value field and click Write Value . This enables the notifications on the CapSense proximity characteristic. The notifications received are displayed in the value field of the CapSense proximity characteristic. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 68 Figure 4-46. CapSense Proximity Sensing with PSoC 4 BLE Module Figure 4-47. CapSense Proximity Sensing with PRoC BLE Module 14.Write '00:00' to the Client Characteristic Configuration descriptor to disable notifications. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 69 To verify the CapSense proximity project using the CySmart mobile app, follow these steps: 1. To verify the PSoC_4_BLE_CapSense_Proximity project, plug in the PSoC 4 BLE Module on the Baseboard. Figure 4-49. BLE Pioneer Kit with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 70 7. The app will automatically search for available BLE peripherals and list them. Select the CapSense Proximity peripheral, as shown in Figure 4-51. Figure 4-51. Connect to CapSense Proximity Peripheral CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 71 11. To reconnect to the peripheral, press the user button ( SW2 ) on the BLE Pioneer Kit to restart the advertisement and scan for the device in the CySmart app. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 72: Ble Central Mode

    CySmart PC utility. Reprogram the Dongle with the CySmart firmware according to Dongle and LED Control on page 79 to use the CySmart PC Tool. Figure 4-54. PSoC_4_BLE_Central_IAS TopDesign CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 73 Example Projects Figure 4-55. PRoC_BLE_Central_IAS TopDesign Figure 4-56. BLE_Dongle_Peripheral_IAS TopDesign CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 74: Hardware Connections

    Figure 4-57. Pin Selection for BLE IAS Central Example Project Similarly, double-click BLE_Dongle_Peripheral_IAS.cydwr in Workspace Explorer and select the pins shown in Figure 4-58. Figure 4-58. Pin Selection for BLE IAS Peripheral Example Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 75: Flow Chart

    Write the next Alert Check for configured level (Alert levels will Button press event be repeated ) Does Button press connection detected ? exist ? CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 76: Verify Output

    Configure LED as per alert level 4.5.4 Verify Output 1. Connect the Dongle to one of the USB ports on the PC. Figure 4-61. Connect Dongle to USB Port CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 77 7. Check if the LED behavior changes for each alert notification on the Dongle according to the following table: Alert Level LED State No Alert LED OFF Mild Alert LED blinking High Alert LED ON CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 78 Figure 4-63. User Button on BLE Pioneer Kit with PRoC BLE Module Note: To revert the CySmart functionality to the Dongle, program the Dongle hex file, as described in Programming and Debugging BLE Device on page CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 79: Ble Dongle And Led Control

    Figure 4-64. Top Design for BLE_Dongle_CySmart project 4.6.2 Hardware Connections No specific hardware connections are required for this project because all connections are hardwired on the dongle board. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 80: Flow Chart

    W a it fo r s lid e r p o s itio n c h a n g e n o tific a tio n s CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 81: Verify Output

    3-second ON state of the red LED followed by the OFF state on the Baseboard. 6. Move your finger on the CapSense slider and check the LED brightness variation on the dongle. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 82 Example Projects CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 83: Hardware

    5-V power from onboard USB connector ■ 5-V to 12-V VIN power from Arduino shield ■ 3.3 V from I/O header ■ 3 V from CR2032 coin cell ■ CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 84 Schottky diode connected at the output of the LDO to protect against voltage applied at the output terminal of the regulator. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 85 ORing diodes prevent damage to components when the board is powered from different voltage ■ sources at the same time. ESD protection is provided for the USB mini-B connector. ■ CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 86 Figure 5-4. Schematics and Board Highlight of MOSFET Protection Circuit for 3.3-V Input R7 ZERO NO LOAD V3.3 PMOS( DMP3098L-7) 442 ohm PMOS( DMP3098L-7) 1K ohm CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 87: No Load Vtarg

    Figure 5-5. Figure 5-5. Schematics and Board Highlight of Current Measurement Jumper HDR2 BLE_VDD ZERO NO LOAD VTARG 0603 ZERO CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 88 When the board is powered through the USB port (J13), remove jumper J15 and connect an ■ ammeter, as shown in Figure 5-6. Figure 5-6. Current Measurement when Powered from USB Port CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 89: Programming Interface

    The kit allows you to program and debug the PSoC 4 BLE/PRoC BLE in two ways: Using the Onboard PSoC 5LP Programmer and Debugger ■ Using CY8CKIT-002 MiniProg3 Programmer and Debugger ■ CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 90: Expansion Connectors

    This kit has five Arduino compatible headers: J1, J2, J3, J4, and J12, as shown in Figure 5-8. You can develop applications based on the Arduino shield's hardware. Figure 5-8. Arduino Headers CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 91: P1_0

    The J12 header is a 2×3 header that supports Arduino shields. It is used on a small subset of shields and is unpopulated on the BLE Pioneer board. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 92 Materials (BOM) on page 183 for the header part number. Figure 5-10. Schematics and Board Highlight of PMOD Connector P0_2 P0_0 MOSI P0_1 MISO P0_3 CON6 NO LOAD PMOD Connector CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 93: P5Lp12_5

    P5LP12_6 ------------- UART RX P5LP12_7 ------------- UART TX P5LP12_0 ------------- SPI SCLK / I2C SCL P5LP12_1 ------------- SPI MISO / I2C SDA P5LP12_5 ------------- SPI MOSI P5LP2_5 ------------- SPI SSEL CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 94: Usb Mini-B Connector

    Figure 5-12. Schematics and Board Highlight of USB Mini-B Connector NO LOAD TP2 RED VBUS PTC Resettable Fuse VBUS P5LP_DM P5LP_DP USB MINI B 100K 0.01 uF CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 95: Capsense Circuit

    Populate R12 and remove R13 when evaluating waterproofing designs, which will connect the shield to the designated pin, P1[6]. Figure 5-13. Schematics and Board Highlight of CapSense Slider and Shield Setting CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 96 The baseboard contains a header (J14) for CapSense proximity wire connection (see Figure 5-14). Figure 5-14. Schematics and Board Highlight of Proximity Header P0_2 P0_0 MOSI P0_1 MISO P2_0 ZERO P0_3 1x1 RECP Proximity Header CON6 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 97: Pioneer Board Leds

    560 ohm Power LED 0603 ZERO Current Measurement Jumper Figure 5-16. Schematics and Board Highlight of RGB LED LED3 2.2K 1.5K P2_6 P3_6 BLE_VDD 1.5K P3_7 RGB LED CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 98: Push Buttons

    P2[7] of the BLE device. Both the push buttons connect to ground on activation (active low). Figure 5-17. Schematics and Board Highlight of Reset Button and User Push Button /XRES P2_7 /XRES 0.1 uF EVQ-PE105K EVQ-PE105K 0402 RESET USER SWITCH CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 99: Cypress Ferroelectric Ram (F-Ram)

    VDD pin of the F-RAM. The protection circuit cuts off the power to the F-RAM when the output of the regulator is greater than 3.6 V. Figure 5-18. Schematics and Board Highlight of F-RAM CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 100: Serial Interconnection Between Psoc 5Lp And Bluetooth Module

    Arduino shields with the SPI/I C/UART interface. Moreover, any shield that uses these pins for their functionality can be interfaced with PSoC 5LP by bootloading PSoC 5LP with custom firmware. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 101: P5Lp2_6

    NO LOAD ZERO P0_7 SWDCLK ZERO P0_0 SPI_MOSI NO LOAD ZERO P0_6 SWDIO P0_2 ZERO SPI_SSEL NO LOAD USB-SPI USB-SWD PSoC 5LP and PSoC 4 BLE/PRoC BLE Connections CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 102: Bluetooth Module Headers

    P1_1 P1_2 P2_6 P2_7 VREF P1_0 P2_4 P2_5 P0_4 P0_5 P2_2 P2_3 P0_2 P0_3 P2_0 P2_1 P0_0 P0_1 VDDR HEADER 10x2 HEADER 12x2 Digital Pins Analog Pins CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 103: Ble Module Board

    P1.5 VDDR P1.5 P1.4 GANT1 P1.4 P1.3 P1.3 P1.2 GANT2 P1.2 P1.1 1.5 pF VDDR P1.1 1.2 pF 6.8nH No Load VDDR VDDD PCA: 121-60159-01 PCB: 600-60195-01 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 104: Bluetooth Module Headers (20-Pin And 24-Pin Headers)

    HEADER 12x2 Analog Pins VDDD P1.6 BLACK P1.7 P1.5 /XRES P1.3 P0.7 VREF P1.4 P0.6 P1.1 P1.2 P1.0 P0.4 P0.5 P0.2 P0.3 P0.0 P0.1 HEADER 10x2 Digital Pins CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 105: Wiggle Antenna

    Hardware 5.2.3 Wiggle Antenna The Modules/Dongle uses the wiggle antenna. Refer to the Antenna Design Guide (AN91445) for details. Figure 5-23. Board Highlight of Wiggle Antenna CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 106: Antenna Matching Network

    Suppress harmonics to a level below the regulations level in TX mode. ■ Suppress the LO leakage in RX mode. ■ Figure 5-24. Schematics and Board Highlight of Antenna Matching Network and Antenna CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 107: Ble Passives

    1.0 uF 0.1 uF 1.0 uF 0402 0603 0402 0603 Zero Ohm No Load P4.0 P4.1 No Load Zero Ohm 2200 pF 10000 pF Shunt CMOD C_Tank Resistor CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 108: Test Points

    PRoC PSoC5LP E S D P rotection 5.3.1.1 Protection Circuits The PTC resettable fuse is connected to protect the computer's USB ports from shorts and overcur- rent. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 109: Proc Ble

    Wiggle Antenna on page 105. Figure 5-28. Board Highlight of Wiggle Antenna 5.3.4 Antenna Matching Network Antenna Matching Network on page 106. Figure 5-29. Board Highlight of Antenna Matching Network CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 110: Usb Type A Plug

    The VBUS, D+, and D– lines from the USB connector are also protected against ESD events using TVS diodes. Figure 5-30. Schematics and Board Highlight of USB Type A Plug CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 111: System Status Led And Power Led

    5-32). It is also used to show the bind status. Figure 5-32. Schematics and Board Highlight of User LED LED1 BLE_STATUS 0805 820 ohm Status LED Blue CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 112: Push Buttons

    Hardware 5.3.8 Push Buttons Push Buttons on page Figure 5-33. Push Buttons CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 113: Advanced Topics

    1. Create a new PSoC 4 BLE project in PSoC Creator, as shown in Figure 6-1. Select an appropriate location for your project and rename the project as required. Figure 6-1. Create New Project in PSoC Creator CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 114 3. To configure the UART, double-click or right-click on the UART component and select Configure , as shown in Figure 6-3. Figure 6-3. Open UART Configuration Window CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 115 4. Change the instance name to UART. Configure the UART as shown in Figure 6-4, Figure 6-5, Figure 6-6. Click OK . Figure 6-4. UART Configuration Tab Window Figure 6-5. UART Basic Tab Window CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 116 5. Select P1[4] for UART RX and P1[5] for UART TX in the Pins tab of <Project_Name>.cydwr , as shown in Figure 6-7. Figure 6-7. Pin Selection CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 117 UART component. An SCB implementation of UART will route the RX and TX pins to one of the following subsets: (P0[0], P0[1] or P0[4], P0[5] or P1[4], P1[5] or P3[0], P3[1] or P3[4], P3[5] or P5[0], P5[1]). CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 118 Device Manager, Ports (COM & LPT) . A communication port is assigned to the KitProg USB-UART , as shown in Figure 6-8. Figure 6-8. KitProg USB-UART in Device Manager CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 119 OK , as shown in Figure 6-9. For PuTTY, double-click the PuTTY icon and select Serial under Connection . Figure 6-9. Open New Connection CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 120 Prog USB-UART) in Connect using and click OK , as shown in Figure 6-10. In PuTTY enter the COMx in Serial line to connect to . This code example uses COM12 . Figure 6-10. Select Communication Port CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 121 . Click Session and select Serial under Connection type . Serial line shows the communication port (COM12) and Speed shows the baud rate selected. Click Open to start the communication. Figure 6-11. Configure the Communication Port CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 122 Terminal > Line discipline options to display the typed characters on PuTTY, as shown in Figure 6-13. Figure 6-12. Enable Echo of Typed Characters in HyperTerminal Figure 6-13. Enabling Echo of Typed Characters in PuTTY CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 123 6. The COM terminal software displays both the typed data and the echoed data from the PSoC 4 BLE or PRoC BLE UART, as shown in Figure 6-14 Figure 6-15. Figure 6-14. Data Displayed on HyperTerminal Figure 6-15. Data Displayed on PuTTY CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 124: Using Psoc 5Lp As Usb-I2C Bridge

    1. Create a new project targeting the PSoC 4 BLE/PRoC BLE device in PSoC Creator, as shown in Figure 6-16. Figure 6-16. Create New Project in PSoC Creator CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 125 C component, double-click or right-click on the I C component and select Con- figure , as shown in Figure 6-18. Figure 6-18. Open I C Configuration Window CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 126 C component according to the settings in Figure 6-19 Figure 6-20 and click OK . Figure 6-19. Configuration Tab Figure 6-20. I C Basic and Advanced Tabs CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 127 /* Enable the Global Interrupt */ CyGlobalIntEnable; /* Start I C Slave operation */ I2C_Start(); /* Initialize write buffer */ I2C_I2CSlaveInitWriteBuf((uint8 *) wrBuf, 10); /* Initialize read buffer */ CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 128 7. Build the project by choosing Build > Build Project or [Shift]+[F6] . After the project is built without errors and warnings, program ( [Ctrl]+[F5] ) this code onto the PSoC 4 BLE/PRoC BLE through the PSoC 5LP programmer or MiniProg3. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 129 8. Open the BCP from Start > All Programs > Cypress > Bridge Control Panel <version number> . 9. Connect to KitProg/ under Connected I2C/SPI/RX8 Ports , as shown in Figure 6-22. Figure 6-22. Connecting to KitProg/ in BCP CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 130 A '+' indication after each byte indicates that the transaction was successful and a '–' indicates that the transaction was a failure. Figure 6-24. Entering Commands in BCP CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 131 Figure 6-25. Figure 6-25. Read Data Bytes from BCP Note: Refer to Help Contents under Help in BCP or press [F1] for details of I C commands. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 132: Developing Applications For Psoc 5Lp

    The hex files are included in the following kit installer directory: <Install_Directory>\CY8CKIT-042-BLE Kit\<version>\Firmware\Programmer\ KitProg_Bootloader Figure 6-27. KitProg Bootloader Hex File Location CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 133 Device as CY8C5868LTI-LP039, as shown in Figure 6-28. Select the Application Type as Bootloadable from the drop-down list and click OK . Figure 6-28. Create New Project in PSoC Creator_PSoC 5LP CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 134 Figure 6-29. Select Device in PSoC Creator 2. Navigate to the Schematic view and drag and drop a Bootloadable component (Figure 6-30) on the TopDesign. Figure 6-30. Bootloadable Component in Component Catalog CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 135 Browse button, as shown in Figure 6-32. Select the KitProg_Bootloader.hex (Figure 6-33) and KitProg_Bootloader.elf files (Figure 6-34); click Open . Figure 6-32. Configuration Window of Bootloadable Component in “Dependencies” tab setting CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 136 Advanced Topics Figure 6-33. Select KitProg Bootloader Hex File Figure 6-34. Select KitProg Bootloader Elf File 3. Develop your custom project. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 137 6. To download the project onto the PSoC 5LP device, open the Bootloader Host Tool, which is available in PSoC Creator. Choose Tools > Bootloader Host , as shown in Figure 6-36. Figure 6-36. Open Bootloader Host Tool in PSoC Creator CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 138 Show USB Devices is enabled. Set VID as 0x04B4 , PID as 0xF13B , and click OK , as shown in Figure 6-37. Figure 6-37. Port Filters Tab in Bootloader Host Tool CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 139 100 ms, the PSoC 5LP enters into bootloader. Click the Program button (Figure 6-38) in the Bootloader Host tool to program the device. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 140 The status LED does not function unless used by the custom project. ■ For additional information on bootloaders, refer to Cypress application note, AN73503 - USB HID Bootloader for PSoC 3 and PSoC 5LP . CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 141: Building A Normal Project For Psoc 5Lp

    Figure 6-40. Create New Project in PSoC Creator_PSoC 5LP 2. Develop your custom project. 3. Build the project in PSoC Creator by choosing Build > Build Project or pressing [Shift]+[F6] . CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 142: Psoc 5Lp Factory Program Restore Instructions

    (SW1 Reset), plug in the BLE Pioneer Kit to the computer using the included USB cable (USB A to mini-B). This puts the PSoC 5LP into service mode, which is indicated by the blinking green status LED. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 143 3. The following message appears in the PSoC Programmer Results window, as shown in Figure 6-41: “KitProg Bootloader device is detected”. Figure 6-41. PSoC Programmer Results Window CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 144 Figure 6-42. Unplug all other PSoC programmers (such as MiniProg3 and DVKProg) from the PC before pressing the Upgrade Firmware button. Figure 6-42. Upgrade Firmware CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 145 6. The factory program is now successfully restored on the PSoC 5LP. It can be used as the programmer/debugger for the PSoC 4 BLE or PRoC BLE device. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 146 2. Using the File > Open menu, load the KitProg.cyacd file, which is installed with the kit software, as shown in Figure 6-44. The default location for this file is: <Install_Directory> \ CY8CKIT-042-BLE Kit\<version>\Firmware\Programmer\KitProg\KitProg.cyacd Figure 6-44. Load KitProg.cyacd File CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 147 Figure 6-45. Select USB Human Interface Device 5. Click the Program button (or choose Actions > Program ) to restore the factory-program by bootloading it onto the PSoC 5LP. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 148: Using Fm24V10 F-Ram

    C slave, it can be accessed or shared among various I C masters on the same line. For more details on the F-RAM device, refer to the device datasheet. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 149: Address Selection

    The device's datasheet includes details on how to perform a write/read operation with the F-RAM. Figure 6-48 Figure 6-49 provide a snapshot of the write/read packet structure as a quick reference. Figure 6-48. F-RAM Single-Byte and Multiple-Byte Write Packet Structure CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 150: Cysmart Ios Application

    1. Plug the BLE Pioneer Kit into the PC for power, using the J13 USB connector. 2. Program the kit with the desired BLE example project. 3. Open the app on the mobile device. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 151 6-51. Select the BLE Pioneer Kit peripheral in the list. The name displayed in the list will be the same as that set in the BLE Component. Figure 6-51. Peripheral Connections Page CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 152 CapSense slider of the BLE Pioneer Kit is reflected in the app. See Pioneer Baseboard on page Figure 6-53. CapSense Slider GUI 8. To go to different service, go back to service page in the GUI. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 153 The Data Logger option provides a textual form of all the events that has happened with a particular BLE peripheral device, including scanning and connection. Figure 6-55. Data Logger CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 154 CapSense buttons supported by the peripheral, as shown in Figure 6-56. Any touch on one of the CapSense buttons on the peripheral is reflected in the CySmart GUI. Figure 6-56. CapSense Buttons GUI Page CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 155 CapSense slider as supported by the peripheral, as shown in Figure 6-57. Swiping a finger on the CapSense slider on the peripheral is reflected in the CySmart GUI. Figure 6-57. CapSense Slider GUI Page CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 156 6-58. A change in proximity on the proximity sensor (such as a wire) on the peripheral is reflected in the CySmart GUI. Figure 6-58. CapSense Proximity GUI Page CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 157 Note: The onboard RGB LED color range depends on the LED being used. It is possible that the complete color gamut is not reflected on the onboard RGB LED due to limitations on the LED itself. Figure 6-59. RGB LED Profile CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 158: Cysmart Pc Tool

    Follow these steps to connect to a BLE peripheral device using the Dongle and CySmart PC tool and to transfer data. 1. Connect the Dongle to one of the USB ports on the PC. Figure 6-60. Connect Dongle to USB Port CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 159 Pioneer kit. To connect to the BLE Pioneer kit, power the kit through the J13 USB connector and program the appropriate BLE peripheral project to it. Follow the steps according to the project description to start advertising. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 160 Raw Data window: This window displays the raw data (in hexadecimal) of the field selected. ■ Log window: This window displays all the activities that occur on the Dongle and the data ■ communicated. This feature is also useful for debugging. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 161 2. After the available devices are listed, choose the desired peripheral and double-click Connect , as shown in Figure 6-64. Figure 6-64. Start Connection with selected device CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 162 BLE device. This action populates the list of services and characteristics in the Attribute window along with their values, if any, as shown in Figure 6-66. Figure 6-66. Discover All Attributes CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 163 Figure 6-68. Figure 6-68. Modify a Characteristic 7. Similarly, notifications or indications can be enabled on the characteristics that support those properties. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 164 Send Commands tab on the device window. Select the command to be sent from the list and click Send , as shown in Figure 6-70. Figure 6-70. Send Commands CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 165 Note: Refer to CySmart PC Tool User guide for more information. This user guide can be accessed from the tool by going to Help menu > Help Topics . CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 166 Advanced Topics CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 167: Appendix

    P5LP_TDI 0.1 uF P5LP_XRES P5LP12_4 RESET 50MIL KEYED SMD 50MIL KEYED SMD NO LOAD NO LOAD PSoC 5LP Program/Debug Header PSoC 4 / External PSoC Program/Debug Header CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 168 VBUS CR2032 Coin Cell Battery Holder SOD123 PTC Resettable Fuse 100uF VBUS P5LP_DM P5LP_DP USB MINI B 100K 2 PIN HDR NO LOAD 0.01 uF USB MiniB CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 169 SHORT 1 & 2 3.3V N.C. Unconnected terminal REMOVE JUMPER 1.9V Voltage output Output voltage regulation terminal BLACK BLACK BLACK NO LOAD NO LOAD Ground GND Test Points CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 170 Analog Pins (J1- J4) Arduino Connectors PSoC 4 BLE/PRoC BLE I/O Headers P0_1 P0_3 P0_0 /XRES 3x2 RECPT NO LOAD J12 Arduino ICSP compatible header for SPI Interface CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 171 NO LOAD P0_7 ZERO SWDCLK ZERO P0_0 SPI_MOSI NO LOAD P0_6 ZERO SWDIO ZERO P0_2 SPI_SSEL NO LOAD USB-SPI USB-SWD PSoC 5LP and PSoC 4 BLE/PRoC BLE Connections CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 172 CY8CKIT-142 PSoC 4 BLE Module CY8CKIT-142 PSoC 4 BLE Module ASSY DRW: 620-60195-01 Size Size Size Document Number Document Number Document Number R e v R e v R e v CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 173 BLE Dongle BLE Dongle ASSY DRW: 620-60197-01 Size Size Size Document Number Document Number Document Number R e v R e v R e v 630-60193-01 630-60193-01 630-60193-01 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 174 User Button Switch and User LED 630-60193-01 630-60193-01 630-60193-01 Custom Custom Custom Date: Date: Date: Tuesday September 30 2014 Tuesday September 30 2014 Tuesday September 30 2014 Sheet Sheet Sheet CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 175: Board Layout

    BLE Pioneer Board Figure A-1. Primary Side of BLE Pioneer Board Figure A-2. Ground Layer of BLE Pioneer Board Figure A-3. Power Layer of BLE Pioneer Board CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 176 Figure A-4. Secondary Side of BLE Pioneer Board Figure A-5. Primary Silkscreen of BLE Pioneer Board Figure A-6. Secondary Silkscreen of BLE Pioneer Board CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 177 PRoC BLE Module Figure A-7. Primary Side of PRoC BLE Module Figure A-8. Ground Layer of PRoC BLE Module Figure A-9. VCC Layer of PRoC BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 178 Figure A-10. Secondary Side of PRoC BLE Module Figure A-11. Primary Silkscreen of PRoC BLE Module Figure A-12. Secondary Silkscreen of PRoC BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 179 Figure A-13. Primary Side of PSoC 4 BLE Module Figure A-14. Ground Layer of PSoC 4 BLE Module Figure A-15. VCC Layer of PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 180 Figure A-16. Secondary Side of PSoC 4 BLE Module Figure A-17. Primary Silkscreen of PSoC 4 BLE Module Figure A-18. Secondary Silkscreen of PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 181 A.2.4 Dongle Figure A-19. Primary Side of Dongle Figure A-20. Ground Layer of Dongle Figure A-21. Power Layer of Dongle CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 182 Figure A-22. Secondary Side of Dongle Figure A-23. Primary Silkscreen of Dongle Figure A-24. Secondary Silkscreen of Dongle CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 183: Bill Of Materials (Bom)

    Bourns Inc. diode 5VDC 0603 LC-05LE DIODE ZENER BZT52C2 D9, D11 2V Zener 2V 500MW Diodes Inc V0-7-F SOD123 PTC RESET- FUSE TABLE .50A Bourns MSMF050 15V 1812 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 184: Status Led Green

    MOSFET P-CH Q1, Q2, Q3, DMP3098 PMOS 30V 3.8A Diodes Inc Q4, Q5, Q6 SOT23-3 RES 11K OHM ERJ- Panasonic - 11K 1% 1/10W 1% 3EKF1102 0603 SMD CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 185 RES 30K OHM ERJ- Panasonic - R24, R25 1/10W 5% 3GEYJ30 0603 SMD RES 1.5K OHM ERJ- Panasonic - R29, R30 1.5K 1/10W 5% 3GEYJ15 0603 SMD CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 186 BLACK Label LBL, PCA Label, Vendor Code, Date- code, Serial Cypress Number 121- Semiconductor 60158-01 Rev 04 (YYWWV- VXXXXX) LBL, QR code, Cypress 12mm X 12mm Semiconductor CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 187 Sullins HEADER PPPC032 Protectron P9403-06- Connector RECPT FMAL 6PS .1" LFBN-RC Electromech Solutions DL GOLD CONN Sullins FEMALE 6POS PPPC061 RECP Connector .100" R/A LGBN-RC Solutions GOLD CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 188: Y1 32.768Khz

    60160-01 Rev 04 (YYWWVVXXXXX) No Load components CAP CER 1.2PF Johanson 1.2 pF 500R07S1R2BV4T 50V NP0 0402 Technology Inc CAP CER 100PF 100pF Kemet C0603C101K5RACTU 50V 10% X7R 0603 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 189: Zero Ohm

    4POS .100 R/A 68016-204HLF 15AU TEST POINT 43 TP1, TP2, Keystone HOLE 65 PLATED 5000 TP3, TP4 Electronics TEST POINT 43 Keystone BLACK HOLE 65 PLATED 5001 Electronics BLACK CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 190: Zero Ohm

    1.2 pF 500R07S1R2BV4T ASK 0402 Technology Inc CAP CER 100PF 50V C0603C101K5RA 100pF Kemet 10% X7R 0603 RES 0.0 OHM 1/10W Zero Ohm TE Connectivity 1623094-1 JUMP 0603 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 191: Tp3 Tp4

    .100 R/A 15AU TP1, TP2, TEST POINT 43 HOLE 65 Keystone 5000 TP3, TP4 PLATED RED Electronics TEST POINT 43 HOLE 65 Keystone BLACK 5001 PLATED BLACK Electronics CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 192: Power Led Red

    RES 820 OHM 1/8W Panasonic - R22, R25 820 ohm ERJ-6GEYJ821V 5% 0805 SMD RES 2.2K OHM 1/10W Panasonic - R9, R10 2.2K ERJ-3GEYJ222V 5% 0603 SMD CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 193: R19 R20

    NP0 0402 nology Inc CAP CER 100PF 50V 100pF Kemet C0603C101K5RACTU 10% X7R 0603 CAP .1UF 16V TDK Corpora- 0.1 uFd C1005X5R1A104K050BA ASK CERAMIC Y5V 0402 tion CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 194: No Load Tp12

    Panasonic - R6, R16 4.7K ERJ-3GEYJ472V 5% 0603 SMD TP1, TP2, TP3, TP4, TP5, TP6, TP7, TP8, TP9, No load No load TP10, TP11, TP12, TP13, TP14, TP15 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 195: Revision History

    Document Title: CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide Document Number: 001-93731 Origin of Revision Issue Date Description of Change Change 11/09/2014 ROIT New kit guide CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 196 Index CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. **...
  • Page 197 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Cypress Semiconductor CY8CKIT-042-BLE...

Table of Contents