Acceration to Speed

krosullivan@gmail.com's icon

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?

jvkr's icon

A simple accumulation would do (accum).

krosullivan@gmail.com's icon

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?

Eli's icon

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]-

Max Patch
Copy patch and select New From Clipboard in Max.

Eli

krosullivan@gmail.com's icon

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.

Max Patch
Copy patch and select New From Clipboard in Max.