Bluetooth® Low Energy (BLE)

Bluetooth® Low Energy (BLE)
Bluetooth® Low Energy (BLE)
Controlled Robot
Powered by Kinetis KW40 MCUs
Quick Reference Guide
TM
External Use
Hardware Changes
Zumo Shield
FRDM-KW40Z
1
Verify and apply the required changes to be done on the
FRDM-KW40Z
2
FRDM – KW40Z
TRACES
CUT
SH7
SH8
SH9
SH10
POPULATE
R3
R4
R5
R8
REMOVE
POT
R78
ADD
J26
Add pins on the outlined areas of the Pololu Zumo Robot
to enable battery measurement feature. Use AA
rechargeable batteries in order to use this feature.
COMPONENTS
R3, R4, R5, R8 requires to be populated wit 0 ohm resistors. Please review
FRDM-KW40Z schematic for further information on the component
locations.
Please review ZumoBot User’s Guide for further information about
enabling/disabling Battery Measurement.
TM
External Use
1
3
Connect battery level with A1 (Outlined in green above).
4
Connect GND with A0 (Outlined in blue above).
5
Remove the blade from the Pololu Zumo Robot.
Downloading the Firmware
6
Download and install the KW40Z Connectivity Software.
7
.
Download the ZumoBot firmware from www.freescale.net/tools/embedded-software-and-tools/referencedesigns/kinetis-designs/bluetooth-low-energy-controlled-robot:BLUETOOTH-CONTROLLED-ROBOT
8
9
.Unzip the file on the following path:
C:\Freescale\KW40Z_Connectivity_Software_1.0.0\Conn
Sw\examples\bluetooth
Connect a micro-USB cable from the computer to the
FRDM-KW40Z board. Wait for drivers to install. Once the
drivers are installed, FRDM-KW40Z will be detected as a
removable storage device.
TM
External Use
2
Downloading the Firmware
10
Select a method to download the firmware to the board
and follow the required steps.
Using IAR
Using Bin File
•Locate
zumobot.bin
on
the
following
path
C:\Freescale\KW40Z_Connectivity_Software_1.0.0\Conn
Sw\examples\bluetooth\zumobot\bin.
•Download and install IAR Embedded Workbench 7.4 or
later. A 30-days trial version can be downloaded from
http://supp.iar.com/Download/SW/?item=EWARM-EVAL
•Drag and drop zumobot.bin on DAPLink unit.
•Open the file zumobot.eww. This file can be located at
the following path:
C:\Freescale\KW40Z_Connectivity_Software_1.0.0\Conn
Sw\examples\bluetooth\zumobot\application\frdmkw40z\
FreeRTOS\build\iar
•Wait until the computer finishes copying the file to the
FRDM-KW40Z board.
•Compile zumobot project.
•Click on Download and Debug button to download the
firmware to the FRDM-KW40Z board.
•Once the board
Debbuging button.
TM
External Use
3
is programmed,
click on
stop
Running the Demo
11
12
13
14
15
Disconnect the micro-USB cable from the FRDM-KW40Z
board.
Connect the FRDM-KW40Z with the Pololu Zumo Robot.
Make sure the Pololu Zumo Robot pins match FRDMKW40Z headers.
Install the AA rechargeable batteries into the ZumoBot.
Download the ZumoBot mobile application. The mobile
application requires a smartphone with Bluetooth 4.0 and
Android 4.3 or later.
Turn on the ZumoBot. ZumoBot will start advertisement
process automatically.
TM
External Use
4
16
Search and launch the ZumoBot app on the smartphone.
If Bluetooth is turned off, the application will request to
turn it on.
Running the Demo
ZumoBot application will start scanning automatically.
Scan can be stopped or started again manually by the
user using the scan/stop button.
Any ZumoBot device found will be listed as displayed
18
below. Tap over the ZumoBot device to connect to it.
17
TM
External Use
5
19
Once the connection with the ZumoBot has been
established, a screen like below will appear.
20
The connect/disconnect button can
disconnect/re-connect to the ZumoBot.
be
used
to
Running the Demo
21
To operate the ZumoBot, move the slider controls, like the ones displayed below, to change the speed and/or
direction of the ZumoBot.
TM
External Use
6
TM
www.Freescale.com
© 2015 Freescale Semiconductor, Inc. | External Use
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising