Close

WiiMote Communication

A project log for Star Wars training droid

Flying training droid that interacts with its opponent.

wimbWimB 04/08/2014 at 18:210 Comments

It's been quiet around here, so I thought I'd give a quick update about what I was doing.

We decided that I should take care of the WiiMote part of the project. We're using WiiMotes and IR-leds to track the position of our quadcopter during flight.

I wanted to use the opensource library WiiMoteLib to talk with the WiiMotes, but it prooved to be a rather tricky job to get the WiiMotes connected using HID. So I kept looking for a different solution.

I found the solution in a commercial library (BOOH!) of which I was able to obtain a demo version (fully functional, yay!). This library allows us to talk to the WiiMotes directly over bluetooth or HID. 

I have wrapped a little bit of my own code around the library and came up with my own little library which outputs the 2D position of a single WiiMote or the 3D position based on 3 or more WiiMotes.

Here's a screenshot of my testprogram which shows the 2D position of a single WiiMote:

And ofcourse as with all great software, we have a bug I can't get rid of (so I won't).

Here's what my test setup looked like:

Discussions