The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

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

Reply
 
Thread Tools Display Modes
Old 04-24-2008, 03:23 PM   #1
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 1,864
My Photos: (0)
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
Sponsored Links
Old 05-12-2008, 01:52 PM   #2
FLAC is for flacid
parksgm's CarPC Specs
 
parksgm's Avatar
 
Join Date: Dec 2005
Location: Dallas, Texas
Vehicle: Mustang GT
Posts: 1,113
My Photos: (4)
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
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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


All times are GMT -5. The time now is 04:46 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics