Forums > MaxMSP

Acceration to Speed

Nov 10 2009 | 7:06 pm

Hi, I’m taking input from an accelerometer via arduino in max. I was just wondering hos is it possible to change this acceleration data into speed data? I now I should be integrating but I have no idea how to do this in max?

Nov 10 2009 | 7:34 pm

A simple accumulation would do (accum).

Nov 10 2009 | 8:28 pm

I’m starting to wonder is this at all possible?

If I’m taking in acceleration values on the x axis on an accelerometer and i’m moving at a constant speed then the only value I have to work with is 0 as that’s the acceleration?

Nov 10 2009 | 9:51 pm

When changing a derivative to its original value, such as changing acceleration to speed, you are converting the amount of change over time into the actual values that are changing-

Here’s a patch using [bucket] and [accum]-

— Pasted Max Patch, click to expand. —


Nov 10 2009 | 11:51 pm

Brilliant, [accum] works perfectly. My problems were lying in correct addition at the integration stage. Any Ideas on why this patch almost works? Its seems to work for a couple of steps then loses information. Strange.

— Pasted Max Patch, click to expand. —
Viewing 5 posts - 1 through 5 (of 5 total)

Forums > MaxMSP