Go Down

Topic: using 9 Degrees of Freedom - Razor IMU - AHRS (Read 12063 times) previous topic - next topic

aggrav8d

I got it.  I just wanted to confirm that the magnetometer and gyro data were yaw/pitch/roll.  I didn't know that gravity was affecting the accelerometers.  Interesting.

Xbee

i can say that for gyro but in fact i don't know how magnetometer is helpful in determining yaw/pitch/roll...if you figure out or get some useful link do let me know...

i will keep you posted....rather let me know your email ID as well so that we can communicate otherwise...

good luck

aggrav8d

post it here for the other 9DOF users who are frustrated with the documentation.

Xbee

Something is weird here...actually the data is not read by the arduino.....rather arduino is only used as a bridge here.....write no code in Arduino....even then the data is received.....

I read on Arduino that grounding the reset, reset micro-controller..

http://arduino.cc/en/Main/ArduinoBoardDuemilanove

and we are here keeping it Gnd that is we are just bypassing micro-controller that is not desired.

aggrav8d

That's not wierd at all.  My goal is to get to the sensor, learn what it is doing, then write code to talk to it.  When I have it working I can use Serial to talk to it while the PC is disconnected.

Your goals may not be the same as mine :)

Xbee

No....actually thats exactly what i want...but if you remove the reset to gnd connection then you didn't receive anything....i am trying too..let me know if you are able to analyze raw data from micro-controller....

aggrav8d

What I understand is that if you don't have the PC connection you still get the data.  However, the RX/TX pins have to be swapped.  I try to remember that they have to be backwards when using the arduino as poor man's FTDI.

Xbee

I also got it but if i write 4 on the IMU the data is received but it stops after a minute or two....after that i have to reset Arduino and IMU to get new data....

I can't understand why is that happening...try to see and confirm by toggling an led that are you receiving data continuously?

Xbee

Can I interpret raw data in anyway to control my Helicopter? I started with yaw control, First i detect the change in Gyro reading about Z-axis (Vertical axis), then i see that the magnetometer readings increase or decrease from what those were initially. So that i can turn the helicopter in the other direction to maintain its position. But the problem is that sometimes the magnetometer increases when heli turns right and some time when it turns left!

So i can't find out whether to turn left or right to reach the initial state.

I dont think that we can use accelerometer for yaw control as it immediately returns to its original position after increasing or decreasing.

Any insight on how these three devices (Gyro, Accelerometer and magnetometer) work side by side.

thanks!

Please help!

aggrav8d

Accelerometer will always try to return to 0 when there is no movement.  Remember it is reporting acceleration, not velocity or position.  that's why if you leave it flat on a table the AZ is a big number - it is accelerating downward because of gravity.

I don't have any insights on the gyro and magno other than I was told they give yaw, pitch, and roll.  turning those three numbers into a vector should be fuuuuun.

Xbee

Here is what I THINK how those might be useful:

Lets start with yaw!

Gyro increase or decrease will tell us the direction in which we moved (clockwise/anticlockwise) left or right.

The magnetometer readings difference can then be reduced by turning in the opposite direction in which we moved.

Accelerometers are for playing with the speed in three axis.

Xbee

aggrav8d....

Any update dude. Have you tried the AHRS code by any chance.....i am trying to get the stability using the same scheme i mentioned below. Some success but not much.

Let me know what are you upto.

aggrav8d

I'm waiting on a logic step-down from sparkfun.  I had been connecting the 3.3v imu to a 5v input from the arduino and the last thing I want is to shorten the breakout's life.  Once I have it I'll be able to start running some serious tests and get my gimbal gyro working.

geckosenator


I finally got back to my 9 axis ahrs project yesterday.   I am using 3 9-dof so I get 9 axes and therefore can auto-calibrate and automatically detect sensor failure.  


geckosenator

I had to double post for the images since the forum has a rule that you cant post links in your very first post.

http://imagebin.org/103813
http://imagebin.org/103814

Go Up