Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Been doing real-time measurements with Mathematica! (Wii Balance

  • To: mathgroup at smc.vnet.net
  • Subject: [mg98763] Re: Been doing real-time measurements with Mathematica! (Wii Balance
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Sat, 18 Apr 2009 03:38:31 -0400 (EDT)
  • References: <gs47kc$7nn$1@smc.vnet.net> <gs6pld$h9f$1@smc.vnet.net>

jjmc wrote:
> On Apr 15, 1:58 am, "Sjoerd C. de Vries" <sjoerd.c.devr... at gmail.com>
> wrote:
>> Just wanted to report that for the first time in my life I've been
>> using Mathematica to do actual real-time measurements in an experiment
>> that I'm currently performing. Jay!
>>
>> I'm using a Wii balance board (from the Wii fit game) to measure
>> changes in my subjects' centre of gravity.
>>
>> The Wii Balance Board connects through bluetooth to my laptop. Using
>> the programs GlovePIE (http://carl.kenner.googlepages.com/
>> glovepie_download) and PPJoy (http://www.geocities.com/deonvdw/Docs/
>> PPJoyMain.htm) and a small script I wrote for GlovePIE this is
>> converted to a virtual Windows joystick X,Y values which can be read
>> directly and easily using Mathematica's ControllerState function.
>>
>> This gets me about 400 samples per second. A real-time plot of the
>> user's motions reduces it to about 20 Hz. Still not bad at all, and
>> very useful. Works for the Wiimote (acceleration sensors!) as well.
>>
>> Cheers - Sjoerd
> 
> This is excellent!  Thanks for sharing the links.
> 
> Anyone else find it a little limiting that one needs to virtualize
> devices to a "joystick" before Mathematica can access it through
> controller-state?    Perhaps I've been looking in the wrong places,
> but I'd very much appreciate documentation towards writing new Mathematica 
> drivers for unrecognized controllers.
> 
> Barring that, anyone familiar with similar joystick virtualization
> under mac os  X?
> 
> Best, JJ
> 
Does your joystick come with a Java driver - if it does, it would be 
easy to interface that to Mathematica via J/Link.

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: Re: FindRoot
  • Next by Date: Re: Axes in 3D?
  • Previous by thread: Re: Been doing real-time measurements with Mathematica! (Wii Balance
  • Next by thread: Re: Been doing real-time measurements with Mathematica! (Wii Balance