Pages: 1 [2] 3   Go Down
Author Topic: using 9 Degrees of Freedom - Razor IMU - AHRS  (Read 10351 times)
0 Members and 1 Guest are viewing this topic.
Vancouver, Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
I want to make a living designing robots
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Vancouver, Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
I want to make a living designing robots
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Vancouver, Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
I want to make a living designing robots
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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....
Logged

Vancouver, Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
I want to make a living designing robots
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

Vancouver, Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
I want to make a living designing robots
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 33
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Vancouver, Canada
Offline Offline
Jr. Member
**
Karma: 0
Posts: 73
I want to make a living designing robots
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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.  

Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 2
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: 1 [2] 3   Go Up
Jump to: