Software filtering of sensor raw data
robotics
Posts: 90
Hi,
I have a mechanical linear displacement sensor that obtains digital numeric position data. The data values obtained constantly fluctuate around each sensor position making the data hard to use. I would appreciate if I could be directed to some basic introductory resources where I can create a basic/simple software filter whereby the filtered data can be used on-the-fly in other calculations.
In advance, many thanks!
I have a mechanical linear displacement sensor that obtains digital numeric position data. The data values obtained constantly fluctuate around each sensor position making the data hard to use. I would appreciate if I could be directed to some basic introductory resources where I can create a basic/simple software filter whereby the filtered data can be used on-the-fly in other calculations.
In advance, many thanks!
Comments
Thank you for your response.
As an example, a sensor position of 10 may continuously oscillate as 10, 9, 11, 11, 10, 9, 11, etc. I am totally new to filtering, so if I could program in Spin a simple filter that I understand rather than using someone else's object, this would be preferred.
Thank you!
··········· X := (X*7 + newx) /8
i.e. you take 1/8 of the new value each time you get a sensor reading. Depending on how much you want to filter
you can use different numbers e.g. 3 and 4 is less filtering, 15 and 16 is more filtering
Much appreciated
-Phil
I appreciate you mentioning this so I can do some additional research!
http://www.emesystems.com/BS2math5.htm
John Abshier
Many thanks for taking the time to include this Excellent reference. It has a lot of information that I hadn't known about or considered.
Have a great day!
-Phil
That's a really great link with valuable information. Many thanks for your help.
That's a really great link with lots of goodies! My sincere thanks.