Forums > MaxMSP

Track Wiimote Position on a table from overhead sensor bar

January 24, 2008 | 3:08 pm

Hi guys.

whacky idea that I can’t get working, maybe someone can help.

I ran out of time trying to get a reacTIVision project working so I thought I’d give it a go with a table, a wiimote and a sensor bar stuck to the ceiling. Nice easy alternative you would think. Very possibly is but I can’t get it working.

(Essentially I want to be able to move visuals around on a table using an upwards pointing wii controller)

I set up a system to calibrate the wii for this use – scaling the XY IR coordinates to the extremities of the table. This works ‘nearly’ ok (it is precise in the middle but loses precision towards the sides).

The problem is that if the wiimote is taken away from the table and then put back on, sometimes the polarity of the XY coordiantes reverses even if the rotation value is the same. Obviously this is no good for moving a projected image around on a table and have it seem like it is connected to the wiimote.

Does anybody have any ideas/advice on why I might be having these problems. I have looked on:

http://www.wiili.org

to find more about Wii IR but there was nothing there that helped.

Cheers

Andy


January 27, 2008 | 2:59 pm

have a look at the projects of johny chung lee, he uses the wiimote for tracking purposes (but not with max)
The forum is wiimoteproject.com
or just google johny’s name up and you will find his very (!!!)interesting wii projects


January 27, 2008 | 3:12 pm

have a look at the projects of johny chung lee, he uses the wiimote for tracking purposes (but not with max)
The forum is wiimoteproject.com
or just google johny’s name up and you will find his very (!!!)interesting wii projects


January 28, 2008 | 12:52 am

Yeah I’ve seen them before and had a go. Really easy to implement. Which is what I don"t understand really.

Since the IR component of the wiimote is essentially an infrared camera, I don"t see why the polarity should switch if the wiimote loses sight of the sensor bar. I’ve been watching the rotational values as well and there does not seem to be any pattern to it.

So essentially I can’t program it out. Is this a problem with the external as it doesn’t seem to occur when using the ‘Johnny chun lee’ reflective finger technique using the actual wii console.

I have also heard that this problem exists with Darwiin Remote. Which is what the external is based on (i think).

Andy


January 28, 2008 | 1:18 am

Why don’t you fix the wii remote and move a sensor bar or other infra red
source instead? Will make things much easier, unless you’ve got a specific
reason for moving the wiimote. You could have a module with two IR leds,
powered by a battery. This would mean you could ensure the device is always
in view, and maybe eliminate your polarity reversal problems.

On 28/01/2008, Andy Brennan wrote:
>
>
> Yeah I’ve seen them before and had a go. Really easy to implement. Which
> is what I don"t understand really.
>
> Since the IR component of the wiimote is essentially an infrared camera, I
> don"t see why the polarity should switch if the wiimote loses sight of the
> sensor bar. I’ve been watching the rotational values as well and there does
> not seem to be any pattern to it.
>
> So essentially I can’t program it out. Is this a problem with the external
> as it doesn’t seem to occur when using the ‘Johnny chun lee’ reflective
> finger technique using the actual wii console.
>
> I have also heard that this problem exists with Darwiin Remote. Which is
> what the external is based on (i think).
>
> Andy
>
>
>
>


January 28, 2008 | 3:21 am

On Jan 27, 2008, at 5:18 PM, Joe Bicker wrote:

> Why don’t you fix the wii remote and move a sensor bar or other
> infra red source instead? Will make things much easier, unless
> you’ve got a specific reason for moving the wiimote. You could have
> a module with two IR leds, powered by a battery. This would mean
> you could ensure the device is always in view, and maybe eliminate
> your polarity reversal problems.
>
>

also, check out the OSCulator app…I’ve been using it & Max/MSP for
a while now with 2 wii remotes:

> Hi to all the Max community,
>
> I am pleased to announce the release of OSCulator 2.5, a software
> that helps to use the OSC protocol on Mac OS X.
>
> It is designed for all OSC controllers, but you can also natively
> use the Nintendo Wiimote and 3Dconnection’s SpaceNavigator. You
> will be able to control other software or devices with OSC, MIDI,
> Kyma Firewire, and also control Mouse or keyboard.
>
> This version add, amongst many other improvements, the ability to
> get data from the 4 tracked points in the Wiimote.
>
> Please take a look at http://www.osculator.net for more information.


January 28, 2008 | 3:19 pm

Quote: Kim Cascone wrote on Sun, 27 January 2008 20:21
—————————————————-

also, check out the OSCulator app…I’ve been using it & Max/MSP for a while now with 2 wii remotes:

—————————————————-

Thanks for the response. I’ll have a play with it. I need to be able to perform two way communication between the controller and max. Hopefully this can be done with OSCulator via UDP?

Andy


January 28, 2008 | 8:32 pm

I’m not sure how to format the OSC message needed to operate functions of the Wiimote via OSCulator.

The sticking point for me is the ip address and how that should be formatted. For example if my controller is 0-19-1d-83-9d-3e how would this be formatted to be sent over OSC. What I have been experimenting with so far is:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 60 88 30 196617 t b s;
#P newex 60 120 90 196617 OpenSoundControl;
#P message 60 60 327 196617 /wii/0191d839d3e/{extension device/}[Vibrate]/{acceleration type};
#P newex 60 150 138 196617 udpsend 0191d839d3e 8000;
#P connect 2 0 0 0;
#P connect 3 0 2 0;
#P fasten 3 1 2 0 85 112 65 112;
#P connect 1 0 3 0;
#P window clipboard copycount 4;

I know that the port I need is 8000, so the only variable is the IP address.

Apparently the format of the message is :

/wii/[wiimote id]/{extension device/}[control type]/{acceleration type}

Can anybody help as I have no clue when it comes to this sort of thing.

Thanks

Andy


Viewing 8 posts - 1 through 8 (of 8 total)