[PD] reading suggestions for wii/sensor data conversion

Andrew Turley aturley at acm.org
Wed Apr 2 18:13:11 CEST 2008

>From what I understand about pmpd, it looks like you can send an force
message to a mass object. As Claude says, F=m*a, so you can calculate
the force to send to the object based on the object's mass and the
acceleration data coming from the Wiimote.

You will probably have to scale the signals coming from the Wiimote to
use in your application. For example, if the acceleration on one axis
is 542, you will have to decide what you want that to mean in your

Also remember that gravity causes acceleration, so even if you aren't
moving the Wiimote you will still detect accelertion. You may want to
try to remove that from your calculations.

I'm not sure if any of this is helping. I've been playing around with
accelerometers a little bit lately, so I might be able to help you,
but I'm still not sure I fully understand what you're trying to do and
where you're running into trouble.


On Wed, Apr 2, 2008 at 3:45 AM, Claude Heiland-Allen
<claudiusmaximus at goto10.org> wrote:
> Luigi Rensinghoff wrote:
>  > I would liek to simply generate some force in the x or -x dirction to
>  > move a mass.
>  >
>  > The data i get from the wii is i guess already "accelleration" and not
>  > absolute position, since i would liek to avoid using the ir-sensor bar.
>  One of Isaac Newton's laws of motion [1]
>  F = m a
>  force = mass * acceleration
>  where force and acceleration are vectors
>  I might be misunderstanding what you need, though.
>  Claude
>  [1] http://en.wikipedia.org/wiki/Newton%27s_laws_of_motion
>  --
>  http://claudiusmaximus.goto10.org
>  _______________________________________________
>  PD-list at iem.at mailing list
>  UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list

More information about the Pd-list mailing list