Tag Archive for 'wmgui'

Programming with the WiiMote (I)

This year we will make a workshop at my school about programming with the WiiMote. In parallel to this workshop I will give a small round-up every week on our process in the form of a tutorial. Things mentioned in this tutorial are not all from the workshop since this article is published before any meeting of our workshop.

As the first step, we want just see what information the WiiMote provides. We are using the programm “WMGui”. The WiiMote is connected to use with this program by the following:

  1. Turn on the bluetooth of you PC
  2. Start wmgui
  3. Press the buttons 1 and 2 of the WiiMote simultaneously to make it discoverable
  4. Choose File->Connect in the wmgui-menu

By default only the Buttons section is enabled, here a button is highlighted green if it is pressed. You could press any button without fear, at the moment they do not modify anything. The most interesting thing on the WiiMote for a common user are the acceleration sensors which we could enable by Settings->Acc Data. X, Y, Z show the acceleration in the different coordinate directions. Acc shows the acceleration of the motion in all directions. Roll shows the position of the WiiMote, exactly its sidewards position, 0 is when it rests upside up on the table. Pitch shows the position on the other axis(front/back). There are only 2 values of positioning since the WiiMote could only be turned on two axes, front up/down or turning sidewards. People already knowing more about the WiiMote will be more interested in the IR camera which is activated through Settings->IR Data. If you want to play a bit, take a look under Controls->…, this gives you the probability to switch on the different LEDs on the WiiMote and to let it rumble!

Keep up for coming posts getting into detail with the WiiMote, we will start programming ;-)