Go Down

Topic: How to use RAZOR 9DoF AHRS for positioning (Read 3201 times) previous topic - next topic

Sep 16, 2012, 07:49 am Last Edit: Sep 16, 2012, 07:52 am by wanget1234 Reason: 1
Hi dear friends,

Im quite new on the RAZOR 9DoF IMU unit.

Basically, I hope to use the sensor to get the position of a vehicle. Is there anyone knows how to do this? it would be nice if there is a sample code or interface for the positioning.

Many thanks!

johnwasser

You can only use an inertial navigation system to measure changes in position.  For each time interval, determine the orientation and acceleration to get the 3D velocity vector. Integrate that vector over time to get position.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Thanks for your reply, I understand that I need integration to get the change in position. My problem is that my programming skill is really bad... :(
I have the firmware given in the tutorial, but I don't know how should I write the code based on the firmware to achieve it. Could you pls kindly help me on this?
Many thanks!


Thanks for your reply, I understand that I need integration to get the change in position. My problem is that my programming skill is really bad... :(
I have the firmware given in the tutorial, but I don't know how should I write the code based on the firmware to achieve it. Could you pls kindly help me on this?
Many thanks!


The level of programming required to do what you're looking for is quite advanced.  This is not your basic issue a call and get your coordinate type of thing.  Basically, even if someone wrote custom code for you to calculate your position you still wouldn't be able to implement that information to do anything useful as that would also require a bunch of custom programming, and so on...

Here's a thread that may help you grasp the complexity of what you're asking for:

http://arduino.cc/forum/index.php/topic,58048.0.html

If this is about your pay grade, you either need to work on your coding skills or hire someone to program for you.

Tim
Arduino - Teensy - Raspberry Pi
My libraries: NewPing - LCDBitmap - toneAC - NewTone - TimerFreeTone

wwbrown

In most circumstances GPS will give you the position of a car much easier than an IMU.  Trying to get your position in an urban canyon with GPS can be difficult because you may not have large enough view of the sky to be able to connect to 4 or more sats, in this instance you may want to try an IMU and update the the position as soon as you get a GPS lock to correct the drift the IMU WILL have.

wade

Hi I am also working on the distance travelled using accelerometer data can some help me how to do it?

Go Up