dimanche 20 mars 2011

Sending nunchuk and Wii Motion Plus data from Arduino to LabView

I created a small application with an Arduino which get data from:
1- a Nintendo nunchuck 
2- a Nintendo Wii motion Plus 
and send these data to Labview for plotting

The embedded program in the arduino prints out information from these different sensors.
The LabView program get the data from the serial port and plots the data two three graphs.
 




The codes are available here:
 http://code.google.com/p/my-arduino-projects/downloads/list

 Parts of the code are adapted from the following codes:
 Nunchuck management: http://www.windmeadow.com/node/42
WiiMotionPlus management: http://randomhacksofboredom.blogspot.com/2009/06/wii-motion-plus-arduino-love.html
http://voidbot.net/nunchchuk-and-wii-motion-plus-6-DOF.html


The Labview code was adapted from code found here: http://web.me.com/iklln6/automation/LabVIEW.html

5 commentaires:

  1. Hi, my name is Henrique and I am an engineering student in Brazil. I'm developing a project, a quadcopter, which will use the sensors on the Nintendo Wii and would like to view the Yaw, Pitch and Roll in a LabVIEW interface, and later working as a 3D visualization.
    I have the LabVIEW 2011, VISA and also downloaded the LIFA (LabVIEW Interface for Arduino).
    My question is: how do I read the sensors of the Wii in "passthrough"? I do not understand how to initialize the sensors, get the bytes required for the information of Yaw, Pitch and Roll, and how to interpret them. Could you help me with this question using the LIFA?
    I would be grateful if you could help me! Sorry to bother, but would really like to learn this, and also run this projeto.Se prefer possso pass my email to you, if it is easier. Already grateful for the attention.

    RépondreSupprimer
  2. Dear Henrique,

    I can help you however, I think there's a dedicated community for the LIFA on the NI website, I think there's a lot of developpers that can help you for this question and the subsequent.
    Click on this url: https://decibel.ni.com/content/groups/labview-interface-for-arduino

    Best regards,

    jérémie

    RépondreSupprimer
  3. Thanks for the info Jérémie, as visualized various information in this community. I think I will ask there too, to get the help I need ... I asked you because you were the one who found it posted the code to get data from the Wii controls. I wanted a code to build and learn, because I am new to LabVIEW and Arduino.
    Thank you for your attention and then, if I did not get the information I need, I come in contact with you again, "ok"?

    Thank you very much, Jérémie!

    RépondreSupprimer
  4. Jérémie Hello, how are you?

    Sorry to bother you again, but I'm getting no output and also a bit dismayed by the development of my project. I came in contact with the forum dedicated to the LIFA, but I have not been successful.

    Will not you help me, if not too much to ask? A little help as to how I would do to initialize the sensors (Nunchuck and Wii Motion Plus) and get their data? Please, I'm trying very hard, but unsuccessfully.

    I posted this discussion forum:

    https://decibel.ni.com/content/thread/13619?tstart=0

    At the end of this discussion, I put the diagram I made in LabVIEW (very simple to read data from the Wii Motion Plus only), because I am new to LabVIEW. You could take a look to see what I'm doing wrong? I think I'm wrong initializing the sensor, I do not think I quite understand this question of sending request to unlock the sensor at (0x53) ...
    Any help would be his very good for me, especially on this issue to read the sensor data, that's my biggest problem!
    Jérémie I apologize again and thank you for your patience and attention!

    Best regards,

    Henrique

    RépondreSupprimer