CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Requesting motion-algorithm help

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
UFAnders



Joined: 13 Apr 2005
Posts: 36
Location: Michigan

View user's profile Send private message Send e-mail Visit poster's website AIM Address

Requesting motion-algorithm help
PostPosted: Sat Jun 25, 2005 9:40 am     Reply with quote

Friends-->

I am using a tri-axis accelerometer with a PIC 18F2520 in hopes that I can eventually calculate velocity and displacement from the ADC results. Has anyone done this sort of thing?

I'm not looking to save myself effort, but moreso time - does anyone know of any algorithm resources that could help point me in the right direction?

Thanks for taking a look!

Anders
Ttelmah
Guest







PostPosted: Sat Jun 25, 2005 2:39 pm     Reply with quote

Question, is do you have the system gyro stabilised, or a seperate compass?. Three axes, do not maintain a position fix, unless you have data about the direction of the axes at any time, or keep the axes in a constant direction.
If the axes are stabilised, then you can sample at a fixed time interval, and simply sum the accelerations in each direction, so you maintain an integral of acceleration, which directly gives you velocity. A second integral, gives the actual position.
If the axes are not stabilised, you need to take a direction term as well, and then generate a sin, and cos from this, and use this to generate the sums. This is assuming that your vertical axis is stabilised by gravity. Otherwise you need a term in this direction as well.

Best Wishes
treitmey



Joined: 23 Jan 2004
Posts: 1094
Location: Appleton,WI USA

View user's profile Send private message Visit poster's website

PostPosted: Sat Jun 25, 2005 5:52 pm     Reply with quote

Ttelmah, are you a teacher in real life?
kender



Joined: 09 Aug 2004
Posts: 768
Location: Silicon Valley

View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger

Gyros
PostPosted: Sat Jun 25, 2005 7:01 pm     Reply with quote

Hope you are not building an IMU for a cruise misile.

If you decide to go with gyros, check out Analog Devices' iMEMS gyros. These are, probably, the cheapest one s you can find. There are 2 warnings about the MEMS gyros, though. (1) You can damage them with vibration. (2) Readings drift with temperature. You can keep the gyros at a constant temperature, and/or you can compensate for the temperature (the gyros have an on-chip temperature sensor for that).

Nick
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group