Bluetooth Tutorial 2 - Find Me

Introduction

PSoC Setup

  1. Open PSoC Creator and selct file –> Code Example… from the top menu.

    Open a Code Example
    Open a Code Example

  2. Search for “BLE” in the list that opens

    Search for BLE
    Search for BLE

  3. Click the World Icon to download the code example

    Select “BLE_FindMe”
    Select “BLE_FindMe”

  4. Create a new project using the defaults

    Create a new project
    Create a new project

  5. A .pdf tutorial will open that you can follow along with, in conjunction with this tutorial.

    A pdf tutorial
    A pdf tutorial

  6. In the project workspace, right click on the project

    Open the Device Selector
    Open the Device Selector

  7. Select the BLE module plugged into your Pioneer Board

    Select your BLE module
    Select your BLE module

  1. The project will update, mapped to your selected microcontroller

    Updated Project
    Updated Project

  1. Download your project to the PSoC

    Download your project
    Download your project

CySmart PC App

  1. Open the CySmart app.

    Open CySmart
    Open CySmart

  2. Plug in the BLE Dongle

    BLE Dongle
    BLE Dongle

    Select the CySmart BLE Dongle
    Select the CySmart BLE Dongle

    Press the Reset Button
    Press the Reset Button

    The LED will rapidly flash blue
    The LED will rapidly flash blue

    The LED will remain on green
    The LED will remain on green

  1. Select “Start Scan”

    Select Start Scan
    Select Start Scan

  2. Select the closest “Find Me Target” Item and then click “Connect”

    Select the Find Me Target
    Select the Find Me Target

    Connect
    Connect

  3. Select “Discover all Attributes”

    Discover all Attributes
    Discover all Attributes

  4. Select “Alert Level”

    Select Alert Level
    Select Alert Level

  5. Enter 1 into the text box on the right side of the window.

    Enter 1
    Enter 1

  6. Select “Write Value Without Response”

    Select Write Value Without Response
    Select Write Value Without Response

  7. Write values of 0, 1, and 2. Observe the difference

    Change Values and rewrite
    Change Values and rewrite

  8. Disconnect from the BLE device

    Disconnect
    Disconnect

Phone App

  1. Open the LightBlue App in your phone

    Select the LightBlue App
    Select the LightBlue App

    Press the Reset Button
    Press the Reset Button

    The LED will rapidly flash blue
    The LED will rapidly flash blue

    The LED will remain on green
    The LED will remain on green

    Select the Filter
    Select the Filter

Filter
Filter

Select “Filter By RSSI” to identify nearby bluetooth devices

Select Filter By RSSI
Select Filter By RSSI

Select “connect” next to the “Find me Target” device with the strongest signal. The device screen will open

Find Me Target
Find Me Target

Device Screen
Device Screen

Scroll down to “Alert Level”

Scroll down
Scroll down

On the “Alert Level” screen, write values of 0, 1, and 2. Observe the difference

Write Value 0
Write Value 0

Write Value 1
Write Value 1

Write Value 2
Write Value 2