Acceration to Speed

Nov 10, 2009 at 7:06pm

Acceration to Speed

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 at 7:34pm

A simple accumulation would do (accum).

Nov 10, 2009 at 8:28pm

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 at 9:51pm

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 at 11:51pm

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. –

You must be logged in to reply to this topic.