Low pass filter on Analog sensors

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

Post Reply
zechdz
Posts: 44
Joined: Sun Nov 08, 2015 3:04 pm

Low pass filter on Analog sensors

Post by zechdz »

I have a brake pressure sensor that I am using and I wanted to know if there is a way to use a low pass filter on the data before it is sent over telemetry.

https://podium.live/events/2017-02-08-t ... ?laps[]=50
vroom

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

Post by brentp »

Yes, there is a way to specify that in the configuration, but it's not exposed in the UI, yet.

Open the configuration file and search for the field "alpha". you'll see that it's set to 1.0, which means no filtering. The lower the number, the more filtering you will see. Set it to a lower number greater than 0 and you'll be able to see the effect. 0.1 is a good starting point.
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter

zechdz
Posts: 44
Joined: Sun Nov 08, 2015 3:04 pm

Post by zechdz »

Ok thank you!
vroom

dewittpayne
Posts: 67
Joined: Sun Dec 11, 2016 1:07 am

Post by dewittpayne »

I assume that means you're using an exponentially weighted moving average filter. The time constant of an EWMA filter is a function of sampling rate as well as alpha. A higher sampling rate gives a smaller time constant for a given alpha.

Post Reply