Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lab 5- IR tracking Southern Methodist University Bryan Rodriguez.

Similar presentations


Presentation on theme: "Lab 5- IR tracking Southern Methodist University Bryan Rodriguez."— 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) - 1.Establish the Bluetooth communication between the Wii remote and the PC. 2.Run the WiimoteTest.exe file to initialize the Wii remote 3.Open the Acquisition + IR (polled). Vi lab sheet Southern Methodist University Bryan Rodriguez

5 Getting IR data- 1.We will be doing a similar process as we did last semester. This time we will “tap” into the IR state wire. 2.Use Context Help to see what information is available. 3.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: 1.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 ? 2.What are the data types of X/Y values and Raw X/Y values? example: string, char, single, double, long, boolean, etc. 3.What is a data array? 4.How does an array relate to the X/Y values and Raw X/Y values? Southern Methodist University Bryan Rodriguez

8


Download ppt "Lab 5- IR tracking Southern Methodist University Bryan Rodriguez."

Similar presentations


Ads by Google