Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > General Hardware Discussion > Fusion Brain > FB Sensors


Reply
 
Share Thread Tools Display Modes
Old 04-24-2008, 04:23 PM   #1
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
Accelerometer and Noise Filtering (Moving Average Example)

Often times, in data collection, the raw data is rather noisy. In the figure below, I have connected all 3 axes of our accelerometer to our board, and set the board to log every 100mS.

I then moved the accelerometer through a serious of orientations, such that acceleration due to gravity (1 G) was sensed on each of the axes. As you can see, the resulting data was quite noisy.



However, we can apply a moving average to the data inside the MDX software as follows:
Code:
<iochannel id="Port9" port="9" brain="TestBrain1" type="analogue_input"> <options history="10" auto_average="true"></options> </iochannel>

Note the options history and auto average. Options history specifies how many of the past parameters to hold in memory when performing the averaging calculation. For example, in this case:

Value _new = (Value1 + Value2 + Value3 + Value4 + Value5 + Value6 + Value7 + Value8 + Value9 + Value10) / 10

where values 1-10 are the past 10 measured values, respectively.

Then, the accelerometer is put through a range of motions, as shown below:




The units are 100mS and G-force.

Hope this helps! Post any questions.
greenman100 is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 05-12-2008, 02:52 PM   #2
FLAC is for flaccid
 
parksgm's Avatar
 
Join Date: Dec 2005
Location: Dallas, Texas
Posts: 1,119
parksgm will become famous soon enough
Quote: Originally Posted by greenman100 View Post
Hope this helps! Post any questions.

Great post...thanks for the tips!
__________________

An amateur built the Ark. The Titanic was built by professionals.
parksgm is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




All times are GMT -5. The time now is 03:15 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics