1 / 10

Lab 6 – Using 2 Wii remotes

Lab 6 – Using 2 Wii remotes. Objectives: Use 2 Wii remotes to acquire IR data Isolate the raw X/Y values from each Wii remote for future processing. Connect the Wii remotes as we have done in previous labs- Make the Bluetooth connection.

Download Presentation

Lab 6 – Using 2 Wii remotes

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 6 – Using 2 Wii remotes Southern Methodist University Bryan Rodriguez

  2. Objectives: • Use 2 Wii remotes to acquire IR data • Isolate the raw X/Y values from each Wii remote for future processing Southern Methodist University Bryan Rodriguez

  3. Connect the Wii remotes as we have done in previous labs- • Make the Bluetooth connection. • Run the WiimoteTest.exe to verify both Wii remotes are connected. Southern Methodist University Bryan Rodriguez

  4. This week we will be using a new lab sheet template “MultiMoteIR2”. (Download files from my website for this lab) This lab has the basic structure in place as well as a few necessary components. It will be your task to add the required missing blocks and to finish making the connections to all the blocks. At the conclusion of this lab you might want to save your sheet so that you can build on it for future labs and for your final project. Southern Methodist University Bryan Rodriguez

  5. Connections to be made- • “GET WIIMOTE DATA“ block needs all of it connections to be made. • The error out wire also need to be tapped into the “Status” block for the control logic of the while loop. • “MULTI WIIMOTE DISCON” needs connections on its left side (ie all but error out) • The data needs to indexed out of the arrays and properly fed into the correct output block for Raw X and Raw Y. • An explanation of how to do this is on the following slides. • If everything is connected and working properly you should be able to display the Raw X/Y values in the individual output windows on the front panel. You can verify this by comparing the to the values in the IR state array window. Southern Methodist University Bryan Rodriguez

  6. Southern Methodist University Bryan Rodriguez

  7. Extracting the data from the arrays- In the previous lab we used “Decimate array,” in this lab we will be using “Index array” In general this block works as follows: We begin with an array of data we then can extract the data from an individual element. Southern Methodist University Bryan Rodriguez

  8. The Wii remotes are stored in an array as well as the individual X/Y elements as we noted in the previous lab. • We will need to use this block for the following cases: • To gain access to each of the 2 wii remotes • To gain access to the first element of the raw X/Y array • To do this- • Connect your array you wish to separate to the Index array block • Connect a constant to pick an element ( right click on the block > create> constant) • Connect output Southern Methodist University Bryan Rodriguez

  9. For your report: • In your report I am looking for a more detailed explanation of the roles of the arrays and how you gained access to the desired elements. • In an extra paragraph after your conclusion please comment on any questions, doubts, or confusions you might have at this point in the lab. If you do not have any then please note that as well so I know everyone is on the same page. • For immediate feedback you can also email me or ask me in person as well. • (I will either address these issues to the lab as a whole if I see there is a consensus or it would clarify some concepts or I will speak to you in private to help clarify some ideas) Southern Methodist University Bryan Rodriguez

  10. Southern Methodist University Bryan Rodriguez

More Related