NOTICE: The Processors Wiki will End-of-Life on January 15, 2021. It is recommended to download any files or other content you may need that are hosted on processors.wiki.ti.com. The site is now set to read only.
Wireless Air Mouse Guide
This wiki is open and can be edited by all! More information available @ www.ti.com/launchpad
|
Contents
Introduction[edit]
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[edit]
- Tiva TM4C123G LaunchPad (EK-TM4C123GXL) or Stellaris LaunchPad (EK-LM4F120XL)
- TivaWare for C Series, version 1.0 or greater.
- BOOSTXL-SENSHUB Sensor Hub BoosterPack
- RemoTI™ Wireless protocol stack
- SmartRF Flash Programmer For programming the CC2531 and CC2533.
- LM Flash Programmer For programming the Tiva LaunchPad.
- CC2533DK Development Kit Includes:
Install Components[edit]
- 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[edit]
- 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.
- 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.
- 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 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[edit]
- 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.
- 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.
- 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 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[edit]
- 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
Program the LaunchPad[edit]
- 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.
- 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 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[edit]
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.
- 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.
- Also be sure that the CC2533EMK is not currently paired to any other dongles. Do this by following the unpair instructions below.
- Power off the LaunchPad. Be sure the power to the LaunchPad is provided by the Debug USB connector or a Battery BoosterPack.
- Hold the LaunchPad flat on a surface.
- Press and hold the left LaunchPad button (SW1), nearest the rocket logo.
- 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.
- Press the pairing button (S1) on the CC2531EMK Dongle. This is the button farthest from your computer and nearest to the antenna.
- The red LED (LED1) on the CC2531EMK Dongle will blink. You have about 15 - 30 seconds of pairing time.
- 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.
- Reset the LaunchPad using the reset button near the LED.
- You should now be able to roll and pitch the LaunchPad and see the mouse on your computer move.
- 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[edit]
- If pairing entries exist on the CC2531, use the button nearest the computer to clear them.
- 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.
- 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[edit]
- 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.