Wireless Air Mouse Guide

From Texas Instruments Wiki
Jump to: navigation, search




LaunchPad Resource Portal  LaunchPadRocket.png


This wiki is open and can be edited by all!

More information available @ www.ti.com/launchpad


LaunchPad Banner.jpg

Introduction

This guide provides the information needed to establish a wireless connection between a Windows computer and the Tiva™ C Series LaunchPad with Sensor Hub BoosterPack.

Prerequisites

Install Components

  • Follow the ICDI Driver Installation Guide to install the debug drivers for the on-board debug interface found on the EK-TM4C123GXL and the EK-LM4F120XL.
  • Install TivaWare. This guide assumes default installation directory C:\ti\TivaWare_C_Series-1.0\.
  • Install RemoTI Protocol Stack. This guide assumes the default installation directory C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\
  • Install SmartRF Flash Programmer.
  • Install LM Flash Programmer.

Program the CC2533EMK Wireless Module

  • Power off the SmartRF 05 Evaluation Board. The power switch is a slider near the USB connection.
  • Place the CC2533EMK onto the SmartRF05 Evaluation Board's EM Connectors as shown.
Proper connection of SmartRF 05 and CC2533EMK
  • Power on the SmartRF 05 Evaluation board. Note that the display shows CC2533 is connected.
  • Launch the Smart RF Flash Programmer application.
    • Start Menu >> All Programs >> Texas Instruments >> SmartRF Flash Programmer >> Flash Programmer
  • Note the settings in the image at the top of Flash Programmer.
    • The top dropdown must have "Program CCxxxx SoC or MSP430" selected.
    • The "System-on-Chip" Tab must be selected.
    • The information window must show chip type CC2533.
Flash Programmer Settings to update Firmware image in CC2533EMK
  • Click the "..." button on the right hand side to select the RNP-CC2533F96.hex file from C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\bin\
Select the RNP-CC2533F96.hex file to be programmed
  • Select the Erase, program and verify radio button in the Actions area.
  • Click the Perform Actions button.
  • The blue progress bar at the bottom of Flash Programmer should progress across a few times and you should see a confirmation message.
  • The CC2533EMK is now ready for use with the Air mouse example provided in TivaWare.

Program the CC2531EMK Wireless USB Dongle

  • Power off the SmartRF 05 Evaluation Board. The power switch is a slider near the USB connection.
  • Insert the CC2531EMK USB Dongle into an available USB Slot on your machine.
  • Connect the ten-pin ribbon cable between the CC2531EMK and the SmartRF 05 as shown.
Proper connection of SmartRF 05 and CC2531EMK
  • Power on the SmartRF 05 Evaluation board. Note that the display shows CC2531 is connected.
  • Launch Smart RF Flash Programmer application.
    • Start Menu >> All Programs >> Texas Instruments >> SmartRF Flash Programmer >> Flash Programmer
  • Note the settings in the image at the top of Flash Programmer.
    • The top dropdown must have "Program CCxxxx SoC or MSP430" selected.
    • The "System-on-Chip" Tab must be selected.
    • The information window must show chip type CC2531.
Flash Programmer Settings to update Firmware image in CC2531EMK
  • Click the "..." button on the right hand side to select the ZID_Dongle-CC2531F256.hex file from C:\Texas Instruments\RemoTI-CC253xDK-1.3.1\bin\
Select the ZID_Dongle-CC2531F256.hex file to be programmed
  • Select the Erase, program and verify radio button in the Actions area.
  • Click the Perform Actions button.
  • The blue progress bar at the bottom of Flash Programmer should progress across a few times and you should see a confirmation message.
  • The CC2531EMK is now ready for use with the Air mouse example provided in TivaWare.

Assemble Air Mouse

  • Power off the LaunchPad.
  • Mount the BOOSTXL-SENSHUB on to the top of the LaunchPad. The EM connector must be at the top.
  • Mount the CC2533EMK onto the BOOSTXL-SENSHUB
Properly Assembled Wireless Air Mouse

Program the LaunchPad

  • Power on the LaunchPad. Plug the USB cable into the top of the LaunchPad.
  • Open LM Flash Programmer.
    • Start Menu >> All Programs >> Texas Instruments >> Stellaris >> LM Flash Programmer
  • From the QuickSet drop down box select LM4F120 LaunchPad. This setting should work for the Tiva LaunchPad as well.
LM Flash Programmer QuickSet Selection for LM4F120 LaunchPad
  • Click on the program tab.
  • Click on the "Browse" button, and select the airmouse.bin file from the C:\ti\TivaWare_C_Series-1.0\examples\boards\ek-tm4c123gxl-boostxl-senshub\airmouse\ccs\Debug\ directory.
Select airmouse binary
  • Select the options to Erase Entire Flash, Verify After Program and Reset MCU After Program. Address offset is 0
  • Click Progam.
  • Confirm that the bottom of LM Flash contains the message Verify Complete - Passed
  • You are now ready to pair the Air Mouse example.

Pairing the Air Mouse and the CC2531 Dongle

Note: Before you begin make sure that both the CC2531EMK dongle and the CC2533EMK are not paired to each other or any other radio. Pairing is only required once, as the pairing information is stored in non-volatile memory and retained through reset and power cycles.

  1. Plug in the CC2531EMK dongle to your computer. The green LED (LED2) on the CC2531EMK Dongle should not be lit.
    If the green LED on the dongle is lit, use the unpair instructions below.
  2. Also be sure that the CC2533EMK is not currently paired to any other dongles. Do this by following the unpair instructions below.
  3. Power off the LaunchPad. Be sure the power to the LaunchPad is provided by the Debug USB connector or a Battery BoosterPack.
  4. Hold the LaunchPad flat on a surface.
  5. Press and hold the left LaunchPad button (SW1), nearest the rocket logo.
  6. Power up the LaunchPad while holding the left button (SW1). This button may be released once the RGB LED on the LaunchPad begins to flash green.
  7. Press the pairing button (S1) on the CC2531EMK Dongle. This is the button farthest from your computer and nearest to the antenna.
  8. The red LED (LED1) on the CC2531EMK Dongle will blink. You have about 15 - 30 seconds of pairing time.
  9. If a successful pairing occurs, the green LED on the LaunchPad glows solid.
    In some cases, the CC2531EMK also immediately glows solid green.
    In most cases, wait until the CC2531EMK stops blinking red. Then unplug it from your computer and plug it back in.
  10. Reset the LaunchPad using the reset button near the LED.
  11. You should now be able to roll and pitch the LaunchPad and see the mouse on your computer move.
  12. Hold the air mouse (LaunchPad) so that the LaunchPad buttons are away from you and the debug connector is toward you.
    In this position, the mouse is properly oriented to your screen. The LaunchPad buttons perform left and right clicks. The movements of the LaunchPad control the mouse exactly as the wired version.

How to unpair the CC2531EMK Dongle

  1. If pairing entries exist on the CC2531, use the button nearest the computer to clear them.
  2. Alternately use the Target Emulator tool found in Start Menu >> All Programs >> Texas Instruments >> RemoTI-CC253xDK-1.3.1 >> Target Emulator to remove those entries.
    • When started, the Target Emulator presents a choice of USB HID or Serial. Choose USB HID.
    • The next dialog indicates a USB VID and PID. Keep the defaults.
    • A final dialog opens showing that a CC2531 has been found.
    • You should now be in the main Target Emulator program screen. Note the CC2531 message at the bottom right and Running status.
    • Select the Pairing menu and then click on Clear Pairing Info. This action clears any existing pairing data.
      Clear the pairing entries of the CC2531EMK Dongle
    • You may need to unplug and re-plug the CC2531EMK Dongle from your computer.
    • The Target Emulator is only needed to clear pairing data from the CC2531EMK Dongle. It can now be closed.

How to unpair the Air Mouse

  • While powering up or reseting the LaunchPad, press and hold the right button (SW2). This button is near the 'd' in the LaunchPad logo at the bottom of the board.