Sponsored links

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


Reply
 
Share Thread Tools Display Modes
Old 09-03-2008, 09:47 PM   #1
Newbie
 
Join Date: Mar 2007
Posts: 1
mbdishon is an unknown quantity at this point
Estimating Tilt with 3-axis accelerometer

Would it be possible to estimate tilt (pitch, roll, theta) using a 3-axis accelerometer in MDX?

I'd be very interested in displaying a graph in MDX showing pitch and roll.

I'm currently not much more than a novice in MDX and as of yet haven't got my hands really dirty...

Does MDX support the trigonometric and power functions required to calculate the pitch roll and theta values? (Basic equations in a static context can be found in this PDF: http://www.freescale.com/files/senso...ote/AN3461.pdf)

As an aside, would it be possible to use a button to calibrate the accelerometer based on a given position. i.e. I guess it would need to set three offset variables based on the current X, Y and Z values, these offset variables would then be used in a (root?) function to set the values of calibrated X, Y and Z variables? Had a quick look in the MDX UI and can't see if its possible to set a variable based on another variable, or if its possible to set more than one.

Thanks
mbdishon is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 09-04-2008, 02:17 AM   #2
Fusion Brain Creator
 
Join Date: Mar 2005
Posts: 2,197
greenman100 is on a distinguished road
Both are possible, but be advised you can't really use an accelerometer to measure that stuff when the vehicle is in motion
greenman100 is offline   Reply With Quote
Old 11-09-2008, 11:03 PM   #3
Newbie
 
Join Date: Nov 2007
Posts: 17
jss812 is an unknown quantity at this point
Quote: Originally Posted by mbdishon View Post
Would it be possible to estimate tilt (pitch, roll, theta) using a 3-axis accelerometer in MDX?

I'd be very interested in displaying a graph in MDX showing pitch and roll.

I'm currently not much more than a novice in MDX and as of yet haven't got my hands really dirty...

Does MDX support the trigonometric and power functions required to calculate the pitch roll and theta values? (Basic equations in a static context can be found in this PDF: http://www.freescale.com/files/senso...ote/AN3461.pdf)

As an aside, would it be possible to use a button to calibrate the accelerometer based on a given position. i.e. I guess it would need to set three offset variables based on the current X, Y and Z values, these offset variables would then be used in a (root?) function to set the values of calibrated X, Y and Z variables? Had a quick look in the MDX UI and can't see if its possible to set a variable based on another variable, or if its possible to set more than one.

Thanks

Looks like you could use the single axis method fairly easily. The only problem I see is that MDX doesn't seem to have the trig functions. And, if I were doing it, I would ignore any sensor reading over 1g. I'm no math wiz but looks like you could use sin=opp/hyp where opp=1 and hyp=sensor reading in g's. Since MDX can't do sin, I think I would hand calculate something like every 2° or so (maybe every 5°?) and then create a logic statement. A really big logic statement. Looks like it would work while moving as long as you don't hit any bumps and speed remains constant (yeah, right). I guess you could use averaging to help out there. The only thing it wouldn't tell you is in what direction you're tilting. If you are at rest, then the x and y axis could give direction but I don't know that it would be worth the trouble. Looks like all it would take is a lot of time, and since all I seem to have right now is lots of time..........
jss812 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tilt angle sensor mx270a FB Sensors 3 03-02-2009 11:48 PM
Accelerometer and Noise Filtering (Moving Average Example) greenman100 FB Sensors 1 05-12-2008 02:52 PM
SOLVED fix for broken motorized lilliput lcd's (broken tilt gear) wirelessdreamer LCD/Display 0 04-21-2008 03:56 PM
Linux Space Navigator Development Thread shotgunefx Linux 43 08-06-2007 07:05 AM



All times are GMT -5. The time now is 04:50 PM.


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