User Tools

Site Tools


faq:wiimote

This is an old revision of the document!


Wiimote and its extensions FAQ

Connecting and Operating the Wiimote

After Osculator has launched, simply press buttons 1 and 2 of your Wiimote. You can tell you Wiimote is connected because the Wiimote drawer opens up and messages are registered in the main window.

Please answer each of the items of this troubleshooting checklist:

  • Is your computer equipped with a bluetooth adapter?
  • Is the bluetooth adapter turned on?
    Please consult this Apple support page with handy Bluetooth troubleshooting tips.
  • Are the batteries in your Wiimote charged enough?
    If the batteries in the Wiimote are too low, a connection will start but not sustain.
  • Do you have a Wii console standing by?
    If you own a Wii console, it may possible that the Wiimote wakes your console up and connects to it instead of your Mac. To avoid further connections to the console:
    1. shut down the console,
    2. take the door to the battery off,
    3. and press the red button.

This will reset your Wiimote.

If you still experience problems, please note down the bluetooth address of your device.

Finally, here is a list of dongles that should work in theory.

http://wiibrew.org/wiki/List_of_Working_Bluetooth_Devices

You can press the power button on the upper right, and hold it for 3 seconds until the lights go out. To reconnect:

  • Open the drawer in Osculator, if closed
  • Click the “Start discovery” button if the wheel is not spinning.
  • As usual, simultaneously press and hold buttons 1 & 2 on the wiimote.

There are in effect 8 slots that you can use to remember settings for 8 individual Wiimotes. However, you can have only up to 4 Wiimotes connected at the same time. On exceptional cases, some users have been able to connect up to 6 Wiimotes.

If you want to use more Wiimotes, you must use several computers. Each computer must run Osculator and forward the Wiimote data to a master computer.

The maximum number of Wiimotes in this configuration is not known, I think there could be some radio interferences which would impose a limit, but can safely assume that this limit is fairly high since the bandwidth required by one Wiimote is rather low, and Bluetooth was designed to handle the case of many small devices dealing all together.

The Wiimote is sending data to the computer more than 60 times per seconds. This refresh rate is high enough to be difficult to be perceived by the human eye or ear.

Some settings, however, can affect the latency and jitter. In order to get the lowest latency, you will have to trade smoothing for speed. Set the smoothing at zero, and you get the raw response with no delay.

If you are using the Wiimote to trigger sounds on your computer, you should also check the size of the audio buffer, as this is the first cause of latency on computers used as synthesizer modules.

Make the sure the discovery process is running. Flip the Balance board, open the battery door, and press the the red button, it will launch the syncing process. After less than a second, you should see messages registering in the main window.

Using the Wiimote

Originally nautical terms: a boat pitches (nose going up and down) and rolls (tipping left or right so you might fall off the deck) and yaws (nose oscillating left and right). Though I prefer to think of a space ship =)  Pitch, Roll, Yaw on a Wiimote (please don't reproduce without permission)

This the the laws of physics! If you don't use a MotionPlus extension 1), the attitude angles are estimated by measuring the the angle between the direction of the gravity force and the acceleration sensors values, if the remote is reasonably still.

If you hold the Wiimote flat on a table, the gravity doesn't account in the measure of Yaw, which makes it kind of jerky. One obvious solution is merely to avoid using the Yaw parameter. Yaw becomes useful if you hold the Wiimote differently than the normal use. Another solution is to use a MotionPlus device which will secure yaw measurement but again, not totally (you get some drifting because of the very nature of the MotionPlus sensors).

As you noticed, yaw measure depends on gravity.

It is not required to use the IR bar 2), yaw is not compensated using the IR LEDs, thus the weird values when the Wiimote is laying flat. FYI, we try to block yaw from moving too much on some orientations of the Wiimote.

Now, if you point the Wiimote up, you will see that yaw is now acting like roll if you will. The gravity is acting on the sensors, and the yaw can be safely measured.

I don't think that yaw is less precise, but in terms of natural use, I find it less useful. I think it is really useful if the Wiimote is pointing up and that roll can not be safely measured, or if the Wiimote is on the side, where pitch is affected.

If you want to have a more precise “yaw”, you could try to use the MotionPlus extension. Here, yaw suffers from drifting, but can be reset with a custom event (checkout the Event Type menu). I found that on short timed movements, yaw on the MotionPlus can be very useful.

To summarize: it is not always desired to use all of the three attitude angles, and it is not required IMHO. That really depends on the situation in which you are using your Wiimote. Also, the MotionPlus can help getting more consistent results at a relatively small cost.

To use the infrared sensor built into the Wiimote, you can use any source light that produces infrareds, as long as you have at least two of them:

  • Krypton bulbs (weak under 40W)
  • Halogen spots (better)
  • A pair of candles (fire warning!)
  • and of coure the IR bar.

The IR bar is in reality a stand holding 4 infrared electro-luminescent diodes. This is cool addition but it requires that you slice off the end of the cord and solder a connector on it so you can use a DC adapter (wall wart) or a simple 9V battery.

We have one of those Radio Shack DC voltage supplies where you can select the voltage and polarity and we have ours set to 7.5 V. (One of the interesting things about the sensor bar is that you cannot see the infrared LEDs with your eyes, but you can see them through a digital camera!) The internal wires have some kind of colored enamel coating that you have to burn off by heating with the iron and tinning them before you can solder them.

Here are some online descriptions:

1)
which uses a different kind of sensors than the bulk Wiimote
2)
and it would not be convenient to enforce its use if for example you are playing on stage
faq/wiimote.1271350448.txt.gz · Last modified: 2010/04/15 18:54 by camille