1 / 8

Lab 5- IR tracking

In this lab at Southern Methodist University, Bryan Rodriguez explains how to acquire information from the Wii remote's IR camera. Learn how to obtain the Cartesian coordinates of an IR source using the IR camera and visualize the data on an XY graph.

Download Presentation

Lab 5- IR tracking

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 5- IR tracking Southern Methodist University Bryan Rodriguez

  2. Objectives: • Learn how to acquire information from the Wii remote’s IR camera Southern Methodist University Bryan Rodriguez

  3. Clarification from previous lab- In the last lab, the charts we generated were using information from the Wii remote’s accelerometer, not the IR camera. The X, Y, and Z values we saw corresponded to the axis of motion felt by the accelerometer. This week’s lab we will be using the IR camera to obtain the coordinates of an IR source. This time the X and Y values we see will be the Cartesian coordinates. Southern Methodist University Bryan Rodriguez

  4. Getting started (Refer to Lab 3 if you need help) - Establish the Bluetooth communication between the Wii remote and the PC. Run the WiimoteTest.exe file to initialize the Wii remote Open the Acquisition + IR (polled) . Vi lab sheet Southern Methodist University Bryan Rodriguez

  5. Getting IR data- • We will be doing a similar process as we did last semester. This time we will “tap” into the IR state wire. • Use Context Help to see what information is available. • Right click and connect the “Unbundle by name” block to this wire. • Note- Each element is actually an array of elements. This has to be kept in mind as we attempt to access the elements. • 4. We need to add and connect the following block to our project: • Decimate 1D array (Block diagram: Right click on element bock > Array Palette) • Bundle (Block diagram: Right click on element bock > ClusterPalette) • XY graph (On front panel: Right click and search) Southern Methodist University Bryan Rodriguez

  6. Testing your project- If everything is working properly you should be able to point your Wii remote at an IR source and you should be able to see the point on your XY graph. If you would like to adjust your scale just click and type over the axis value. Try plotting using a connection from X/Y values and Raw X/Y values and compare the axis values. Southern Methodist University Bryan Rodriguez

  7. Questions: • What are the domain and range limits of the IR camera as reported by your XY graph axis for both X/Y values and Raw X/Y values ? • What are the data types of X/Y values and Raw X/Y values? • example: string, char, single, double, long, boolean, etc. • What is a data array? • How does an array relate to the X/Y values and Raw X/Y values? Southern Methodist University Bryan Rodriguez

  8. Southern Methodist University Bryan Rodriguez

More Related