Noisy accelerometer / gyro

All sensor specific discussions! Temperature, pressure, steering angle, brake and throttle, etc. Post adaptations of OEM-style sensors, and also your clever DIY hacks and custom designs here too!

Moderators: JeffC, rdoherty, stieg

brentp
Site Admin
Posts: 6274
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Good news- I'm experimenting with an exponential moving average IIR filter using a particularly fast algorithm implementation. Accelerometer / Yaw sensor is being sampled at 100Hz in the background independent of the logging rate.

The accelerometer filter algorithm is here, if you're curious. https://github.com/autosportlabs/RaceCa ... r_filter.c
Visual observations using the mobile app as a display is looking really good. Just from eyeball response time it looks like an alpha setting of 0.5 to 0.7 will be ideal. Fyi, close to zero alpha = slow response time, 1 = no filtering)

Plan is to test it with with the accelerometer, then make the alpha setting configurable, and then extend it to analog / timer channels.

Almost ready for a Beta-grade firmware; who would like to test it?
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

neoraptor
Posts: 43
Joined: Thu May 16, 2013 3:08 pm
Location: Alsace, France

Post by neoraptor »

I would happily test it.
Could you send me the firmware?

brentp
Site Admin
Posts: 6274
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

brentp
Site Admin
Posts: 6274
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

Here is a preview of the 1.2.5 firmware. please give it a spin.

The IIR filtering is sampled at 100Hz with an alpha of 0.1. Default firmware samples accelerometer at 30Hz.

http://autosportlabs.net/asl_dist/rcp/f ... -1.2.5.elf
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

Post Reply