Gyrometer data to Fantastick, c74 or TouchOSC?

Gmix's icon

Does anyone know of a way to get the gyrometer data from an iPhone or iPad into Max?

I also heard somewhere that the new Wiimote pluses have gyros built in. Anyone know how to route that data as well?

Rodrigo's icon

You can use the Alex Harker wiimote object to get the gyro data (as well as accel data), otherwise the regular aka.wiimote will do accel/buttons.

As far as the iPhone/iPad something like TouchOSC will send the data out for you (though I think for accel only?).

Peter Castine's icon

Sorry, was only looking at your main text when I wrote the following and ignored the subject line. Yes, both FantaStick and c74 will provide accelerometer data. The FantaStick people have a demo on YouTube demonstrating this rather nicely.

---

FantaStick will do this for you, and more. If you search at the iTune store using the search term "Max/MSP", you'll find one or two other apps that may serve your purpose.

Hope this helps,
-- P.

Gmix's icon

Thanks, Rodrigo, I know the ajh.wiiremote external now recognizes the motion plus as an extension to the wiiremote, but I still only see the same red/green/blue accelerometer lines. I guess you can deduce the general 3d position of the controller from these lines, but I got the impression that there was a separate gyrometer (apart from the original accelerometers) that would give more precise 3d orientation such as pitch, rotation and yawl. Something for instance that would allow me to create a 3d globe in jitter and have a dot that moves around the edge of the sphere according to where the pointer end of the wiimote is facing. This would be great for controlling the vantage point in a 3d environment for example. Anyone have experience with the wii gyros or know how to parse the information into something like I described above?

Peter, I have used the accelerometer data from my ipod touch and ipad in all of the applications I listed in the subject. The newer iPhones and iPads also have gyrometers, and that is what I am curious about routing to Max. Thank you for your suggestion though. - G

Rodrigo's icon

I've not actually used the ajh.wiiremote object so I don't know how the data comes in (or how it is dealt with in the wiimote for that matter).

I would've assumed it came in as 6 analog streams, but maybe the gyros are just there to get more stable values out of the accel, in which case you'd still see only the same three analog streams, but more accurately..

Gmix's icon

Harker's looks pretty much the same as aka.wiiremote with some added support for different external controllers, and the same 3 axis stream (red, green, blue) with greater accuracy using the wii motion plus. If there is a separate gyrometer, it would be great to parse that separately into Max. Anyone know if this is possible?

Gmix's icon

Found an app that let's you do this for anyone that's interested. Called 'control,' and seems like a cool project especially if you're looking for a touch control interface that works on android and iphones. Here's a link:

-G

kcoul's icon

I'm working on a project that could benefit from gyrometer data as well. Using Kinect as a compromise butit has a blind spot and can be finicky.

Since I saw the new Zelda game is coming out with 1 to 1 gameplay, I know it must be possible to get the data we are looking for, orientation relative to the earth's magnetic grid.

If we are to look at the source, where would we start to try and listen for this data coming from the MotionPlus over BT?