Cypress Semiconductor CY8CKIT-042-BLE User Manual

Cypress Semiconductor CY8CKIT-042-BLE User Manual

Bluetooth low energy (ble)
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. *A
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

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. *A 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

    Updating the Onboard PSoC 5LP Programmer Firmware.........40 Measure Coin Cell Power Consumption ..............40 4. Example Projects Using Example Projects.....................42 CapSense Slider and LED..................47 4.2.1 Project Description ..................47 4.2.2 Hardware Connections...................50 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 4 Using PSoC 5LP as USB-UART Bridge ..............115 Using PSoC 5LP as USB-I2C Bridge ..............126 Developing Applications for PSoC 5LP ..............134 6.3.1 Building a Bootloadable Project for PSoC 5LP ..........134 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 5 A. Appendix Schematics ......................168 Board Layout ......................176 Bill of Materials (BOM) .....................184 KitProg Status LED States..................194 Adding BLE module compatible headers on your own baseboard ......195 Revision History CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 6: 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. Due to this reason, the board may cause interference with other electrical or electronic devices in close proximity.
  • Page 7 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 8 The kit contains devices that transmit and receive radio signals in accordance with the spectrum regulations for the 2.4-GHz unlicensed frequency range. Cypress Semiconductor Corporation has obtained regulatory approvals for this kit to be used in specific countries. These countries include United States (FCC Part 15), Canada (IC RSS210) and Japan (JRF/ TELEC).
  • Page 9 Dans ce cas, le produit final doit être étiqueté dans un endroit visible par le texte suivant: “Contains Transmitter Module IC 7922A-CY8CKIT142 and 7922A-CY5671” “Contains IC: 7922A-CY8CKIT142 and 7922A-CY5671” CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 10 Japan (TELEC)     Model:CY5671 Model:CY8CKIY-142 FCC ID: WAP-CY5671 FCC ID : WAP-CY8CKIT-142 IC: 7922A-CY5671 IC : 7922A-CY8CKIT142 TELEC: 005-100920 TELEC : 005-100919 CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 11: 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. *A...
  • Page 12: Board Details

    12.Coin cell holder (bottom side) 13.USB connector (J13) 14.Power LED 15.Status LED 16.System power supply jumper (J16) - LDO 1.9 V~5 V 17.Arduino compatible I/O header (J3/J4) CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 13 Introduction 18.BLE power supply jumper (J15) - for current measurement 19.BLE module headers (J10/J11) Figure 1-2. BLE Pioneer Baseboard CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 14 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. *A...
  • Page 15: 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. *A...
  • Page 16: Getting Started

    PSoC 3, PSoC 4, PSoC 4 BLE, PRoC BLE, and PSoC 5LP. Visit this site for PSoC 4BLE and PRoC BLE application notes. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 17: 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. *A...
  • Page 18: 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. *A...
  • Page 19: 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. *A...
  • Page 20: 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 21 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 22 PC to emulate as a BLE Central device. Refer to CySmart PC Tool on page 160 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. *A...
  • Page 23: 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. *A...
  • Page 24: Kit Operation

    BLE/PRoC BLE devices using serial wire debug (SWD), and as a USB-Serial bridge. The firmware on PSoC 5LP device enables bootloading PSoC 5LP over USB to upgrade the firmware. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 25 MATCHING Type-A 68QFN 56QFN CIRCUIT 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. *A...
  • Page 26: Ble Pioneer Kit Usb Connection

    (24-pin and 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. *A...
  • Page 27: Programming And Debugging Ble Device

    1. To program the BLE Pioneer kit, plug the USB cable into the programming USB connector, J13, and connect it to the USB port on the PC, as shown in Figure 3-7. The kit will enumerate as a composite device. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 28 Figure 3-9 for this implementation. Figure 3-9. SWD Programming PSoC 4 BLE/PRoC BLE using PSoC 5LP SWDCLK PSoC 4 BLE/ Mini USB PSoC 5LP SWDIO PRoC BLE Reset CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 29 PSoC Creator will enter the 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 BLE. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 30: Programming Using Psoc Programmer

    3. Go to Start > All Programs > Cypress > PSoC Programmer <version> > PSoC Programmer <version> . The PSoC Programmer window will open as shown in Figure 3-13. Note: BLE projects support PSoC Programmer 3.21 or later. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 31 4. Click the File Load button at the top left corner of the window. Browse for the desired hex file and click Open . Figure 3-15. Select Hex File 5. Go to File > Program to start programing the kit with the selected file. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 32 Figure 3-16. Program Hex File to Kit 6. When the programming is finished successfully, indicated by a PASS message on the status bar, the kit is ready for use. Close PSoC Programmer. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 33: Updating Ble Dongle For Cysmart Pc Tool

    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. *A...
  • Page 34 Note: If Cypress releases new versions of the CySmart PC tool and the BLE dongle firmware, then the CySmart PC tool will display a message requesting to update the firmware on the BLE dongle, as shown in the following figures. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 35 Figure 3-20. Update Dongle Firmware with Hex from Web In this scenario, choose the hex file from the respective location and update the dongle firmware with the following steps. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 36: Usb-Uart Bridge

    For both the baseboard and the dongle, the UART lines are hardwired onboard between the PSoC 5LP and BLE Modules. No external UART connection between the two devices is needed. Simply CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 37: Usb-I2C Bridge

    Connected I2C/SPI/RX8 Ports in the BCP, as shown in Figure 3-23. To open BCP in your system, go to Start > All Programs > Cypress > Bridge Control Panel . CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 38 To use the USB-I C functionality, select the KitProg USB-I C in the BCP. On successful connection, the Connected and Powered tabs turn green, as shown in Figure 3-24. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 39 C speed of 50 kHz, 100 kHz, 400 kHz, and 1 MHz. Using PSoC 5LP as USB-I2C Bridge on page 126 to build a project that uses the USB-I bridge functionality. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 40: Updating The Onboard Psoc 5Lp Programmer Firmware

    CY5671 PRoC BLE Module, remove the BLE module from the baseboard and connect the coin cell (Figure 3-27). This setup enables an accurate power consumption measurement for the application. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 41 Connect an ammeter in series with the battery to measure the power consumption as shown in Figure 3-28. Figure 3-28. Current Measurement of BLE Module when Powered from a Coin Cell CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 42: Example Projects

    1. Launch PSoC Creator from Start > All Programs > Cypress > PSoC Creator 3.1 > PSoC Creator 3.1 . 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.
  • Page 43 Alternatively, you can select the 'Silicon generated' device address by selecting the check box. This way, the BD address is generated using the silicon ID, unique to each silicon. Click OK . CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 44 26. Ensure that the correct BLE Module (PSoC 4 BLE or PRoC BLE) is placed on the baseboard, depending on the project opened. 8. Choose Debug > Program in PSoC Creator, as shown in Figure 4-4. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 45 10.After the device is acquired, it is shown in a structure below the KitProg. Click the Connect but- ton and then OK to exit the window and start programming, as shown in Figure 4-6. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 46 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. *A...
  • Page 47: Capsense Slider And Led

    These properties for the custom service/characteristics are configured in the BLE component under the Profiles tab, as shown in Figure 4-7. Figure 4-7. Attributes Configuration in BLE Component for Custom Services CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 48 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. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 49 Example Projects Figure 4-8. TopDesign for PSoC_4_BLE_CapSense_Slider_LED Project Figure 4-9. TopDesign for PRoC_BLE_CapSense_Slider_LED Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 50: 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-10. Pin Selection for CapSense Slider and LED Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 51: Flow Chart

    Received RGB brightness on LED. LED Data? Keep LED ON for set time BLE Connection Still Present? System in Deep Sleep and waiting for User button press CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 52: Verify Output

    Bluetooth address on 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. *A...
  • Page 53 10.If the connection is successful, you will see another tab opening besides the Master tab. Click Discover All Attributes to find all the services and attributes supported by the BLE peripheral. Figure 4-15. Discover All Attributes CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 54 12.Modify the Value field of CCCD to '01:00' 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. *A...
  • Page 55 Figure 4-19 see the notification values in the CapSense Slider value field, as shown in Figure 4-18. Figure 4-18. CapSense Slider Notification Received Figure 4-19. CapSense Slider CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 56 Red, Green, and Blue; the fourth byte is the overall intensity value, all in the range of hexadecimal 0x00 to 0xFF. Figure 4-21. Read RGB LED Control Characteristic Value CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 57 This is because the coin cell provides a lower driving voltage for RGB LEDs. Figure 4-22. Write RGB LED Control Characteristic Value Figure 4-23. RGB LED Control with PSoC 4 BLE Module and PRoC BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 58 152), 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-25. BLE Pioneer Kit with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 59 6. After Bluetooth is enabled, the application will automatically search for available BLE peripherals and list them. Select the BLE Slider and LED peripheral as shown in Figure 4-27. Figure 4-27. BLE Slider and LED Peripheral CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 60 8. Swipe your finger on the CapSense slider on the BLE Pioneer kit and see a similar response on the CapSense page in the CySmart application (Figure 4-29). Figure 4-29. CapSense Slider CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 61 This is because the coin cell provides a lower driving voltage for RGB LEDs. Figure 4-31. RGB LED Control with PSoC 4 BLE Module and PRoC BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 62: Capsense Proximity

    The properties for the custom service/characteristics are configured in the BLE component under the Profiles tab, as shown in Figure 4-32. Figure 4-32. Attributes Configuration in BLE Component for CapSense Proximity CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 63 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-33. Top Design for PSoC_4_BLE_CapSense_Proximity Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 64: 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-35. 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. *A...
  • Page 65 Table 4-2. 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 P2_6 Figure 4-37. Pin Selection for CapSense Proximity Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 66: Flow Chart

    Proximity value 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. *A...
  • Page 67: Verify Output

    Bluetooth address on the list. This should be the same as the one in the Gap Settings tab of the BLE component GUI in PSoC Creator. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 68 Figure 4-42. Update Connection Parameter Option Note: If you select No , the project will still work. However, the current consumption will be higher due to faster connection interval. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 69 13.Modify the Value field to '01:00' 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. *A...
  • Page 70 Figure 4-46. Figure 4-46. CapSense Proximity Notification Received Figure 4-47. CapSense Proximity Sensing with PSoC 4 BLE Module CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 71 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. *A...
  • Page 72 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. *A...
  • Page 73: Ble Central Mode

    30 seconds. If the particular BLE peripheral device is found advertising before timeout, a connection is made (blue LED always ON). If no such device is found, then the CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 74 CySmart PC utility. Reprogram the dongle with the CySmart firmware according to Updating BLE Dongle for CySmart PC Tool on page 33 to use the CySmart PC tool. Figure 4-53. PSoC_4_BLE_Central_IAS TopDesign CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 75 Example Projects Figure 4-54. PRoC_BLE_Central_IAS TopDesign Figure 4-55. BLE_Dongle_Peripheral_IAS TopDesign CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 76: Hardware Connections

    Figure 4-56. Pin Selection for BLE IAS Central Example Project Similarly, assignment dongle peripheral project BLE_Dongle_Peripheral_IAS.cydwr in the Workspace Explorer as shown in Figure 4-57. Figure 4-57. Pin Selection for BLE IAS Peripheral Example Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 77: 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. *A...
  • Page 78: Verify Output

    Configure LED as per alert level 4.4.4 Verify Output 1. Connect the BLE dongle to one of the USB ports on the PC. Figure 4-60. Connect Dongle to USB Port CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 79 4. Power the BLE Pioneer kit through USB connector J13 . 5. In the Workspace Explorer, right-click on the PSoC_4_BLE_Central_IAS project and select Set As Active Project , as shown in Figure 4-62. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 80 10.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. *A...
  • Page 81: Ble Dongle And Led Control

    Cypress USB-UART bridge functionality from the PSoC 5LP-based KitProg module described in Using PSoC 5LP as USB-UART Bridge on page 115. Note: This project is meant only for the PRoC BLE device and works on the dongle hardware. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 82: Hardware Connections

    The pin assignment for this project is in BLE_Dongle_CySmart.cydwr in the Workspace Explorer, as shown in Figure 4-65. Figure 4-65. Pin Selection for BLE Dongle Project CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 83: Flow Chart

    Enable notifications for Capsense slider Update LED USB suspend brightness as per triggered ? slider position Notification occurs with valid position value ? Wait for slider position change notifications CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 84: Verify Output

    BLE stack and does not involve sepa- rate application handling. The only task is to start the BLE component and call the API to process the events. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 85 RS232 port on the tester. The UART pins of the BLE device can be assigned to P0_0 and P0_1 and the header J5 can be used to connect to the RS232 translator. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 86: Hardware Connection

    If the tester is an external hardware tester (CBT), then connect any of the RS232 voltage translators to header J5 on the BLE Pioneer kit. The UART pins should be assigned as follows. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 87: Verify Output

    BLE component. 5. Start the test. The tool will generate the report after the end of the test. This depends on the tes- ter/tool being used. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 88: Hardware

    5-V power from onboard USB connector ■ 5-V to 12-V VIN power from Arduino shield at J1 ■ 3.3 V from I/O header J1 ■ 3 V from CR2032 coin cell ■ CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 89 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. *A...
  • Page 90 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. *A...
  • Page 91 When reverse voltage is applied from J1.5, the Q1 PMOS will turn off, protecting the onboard components from reverse voltage. Figure 5-4. Schematics and Board Highlight of MOSFET Protection Circuit for 3.3-V Input R7 ZERO NO LOAD V3.3 PMOS( NTR4171PT1G) PMOS(PMV48XP,215) CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 92 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. *A...
  • Page 93 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. *A...
  • Page 94: 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 a CY8CKIT-002 MiniProg3 Programmer and Debugger ■ CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 95: Expansion Connectors

    BLE and PRoC BLE are brought to this header. The Port 2 pins also connect to the onboard CapSense slider through 560-ohm resistors. When the CapSense feature is not used, remove these resistors to help ensure better performance with these pins. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 96 Bill of Materials (BOM) on page 184 for the header part number. Figure 5-9. Schematics and Board Highlight of PMod Connector ® Digilent Pmod compatible I/O header (J5) CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 97 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. *A...
  • Page 98: Usb Mini-B Connector

    Figure 5-11. 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. *A...
  • Page 99: Capsense Circuit

    Populate R12 and remove R13 when evaluating waterproofing designs, which will connect the shield to the designated pin, P1[6]. Figure 5-12. Schematics and Board Highlight of CapSense Slider and Shield Setting CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 100 The baseboard contains a header (J14) for CapSense proximity wire connection (see Figure 5-13). Figure 5-13. 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. *A...
  • Page 101: Pioneer Board Leds

    NO LOAD VADJ LED1 0805 560 ohm Power LED Figure 5-15. 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. *A...
  • Page 102: Push Buttons

    Figure 5-16. 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 RESET (SW User Button (SW2) CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 103: 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-17. Schematics and Board Highlight of F-RAM CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...
  • Page 104: Serial Interconnection Between Psoc 5Lp And Ble Module

    NO LOAD P0_7 ZERO SWDCLK ZERO P0_0 SPI_MOSI NO LOAD ZERO P0_6 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. *A...
  • Page 105: Bluetooth Module Headers

    Analog Pins For information on how to add these on your own board refer to Adding BLE module compatible headers on your own baseboard on page 195. CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit Guide, Doc. # 001-93731 Rev. *A...

Table of Contents