Register to reply

Gyroscope for angular rotation

by SUDHEER87
Tags: gyro, gyroscope
Share this thread:
SUDHEER87
#1
Jan28-11, 12:31 AM
P: 25
hello all..
Iam using LPY5150AL Breakout gyro. I have connected to a PIC16F877A microcontroller.The problem is that iam getting outputs of gyro around 1100 -1300 deg/sec when i rotate the axes.I donot know whether these values are correct are not??can anyone help me out..!
The formula used is:
X_deg=((V_out-V_reference)*5000/1024)/(sensitivity)
where v_ref=1.23 as suggested in datasheet.
THANKS ALOT..!
Phys.Org News Partner Science news on Phys.org
Suddenly, the sun is eerily quiet: Where did the sunspots go?
'Moral victories' might spare you from losing again
Mammoth and mastodon behavior was less roam, more stay at home
Integral
#2
Jan28-11, 02:09 AM
Mentor
Integral's Avatar
P: 7,314
What is your raw voltage out?

Is it zero with no rotation?
SUDHEER87
#3
Jan28-11, 02:38 AM
P: 25
Quote Quote by Integral View Post
What is your raw voltage out?

Is it zero with no rotation?
Thanks for the reply.
First i tested the gyro by keeping the ST pin of gyro high, i checked the v_offset=1.23V approx.
After i grounded the ST pin:
When there is no rotation the outputs from 4x and 1x are same i.e,1.23V approx.
when i move the gyro rapidly in any Axis the 4x output varies about 1.4V approx
The v_ref from gyro is 1.23V as mentioned in datasheet.
I have converted these in Deg/sec according to this formula:
X_deg=((Vxout-Vref)*5000/1024)/sensitivity
Z_deg=((Vzout-Vref)*5000/1024)/sensitivity

After converting i got the values randomly varying between 1100 to 1350 deg/sec.

My Question is that the values which i have obtained are ok or not??
THANK YOU..!

Integral
#4
Jan28-11, 12:40 PM
Mentor
Integral's Avatar
P: 7,314
Gyroscope for angular rotation

I can't tell you if your numbers are correct. You were the one spinning it, only you know that. Were you spinning it at over a 1000deg/sec that converts to around 200 RPM Pretty fast, spin it slower what do you get?

Something bothers me about your conversion equation, but since you don't provide any details on it we can only guess.what are you using for the sensitivity?

I can make some guesses, but if I am right your conversion is wrong.

in a reduced form you have:

[tex] V * \frac {5000} {1024} [/tex]

the fraction could be an expression of bits per volt, If so then you have 5000 of some unit spread over 1024 bits. So I am going to assume that your max voltage is 5v if so then that means you have 5000millivolts represented by 1024 bits your sensitivity is then given as degrees per bit.

To make the conversion work you would need to flip that fraction over. As it now stands your numbers has units of V2 per bit. If you multiply by [itex] \frac {1024} {5000} [/itex]you will get a result in bits. One other thing you will need to convert your Voltages to milliVolts. VRef = 1430milliVolts.

Give those changes a try, see what happens.

Try spinning it at a rate you can count, some thing 10 rpm is countable, with a bit of practice. Now you have a rough number to compare to your sensor output.

Good luck
mugaliens
#5
Jan29-11, 11:41 AM
P: 595
I'm not familiar with the electromechanical ways of stabilizing gyroscopic function, but there are simple mechanical ways of doing so, most of which have been employed in laboritory gyroscopes for decades.

My point: Why make something far more complicated when a far simpler solution has existed for thirty years?

?
SUDHEER87
#6
Jan30-11, 12:12 AM
P: 25
Quote Quote by Integral View Post
I can't tell you if your numbers are correct. You were the one spinning it, only you know that. Were you spinning it at over a 1000deg/sec that converts to around 200 RPM Pretty fast, spin it slower what do you get?

Something bothers me about your conversion equation, but since you don't provide any details on it we can only guess.what are you using for the sensitivity?

I can make some guesses, but if I am right your conversion is wrong.

in a reduced form you have:

[tex] V * \frac {5000} {1024} [/tex]

the fraction could be an expression of bits per volt, If so then you have 5000 of some unit spread over 1024 bits. So I am going to assume that your max voltage is 5v if so then that means you have 5000millivolts represented by 1024 bits your sensitivity is then given as degrees per bit.

To make the conversion work you would need to flip that fraction over. As it now stands your numbers has units of V2 per bit. If you multiply by [itex] \frac {1024} {5000} [/itex]you will get a result in bits. One other thing you will need to convert your Voltages to milliVolts. VRef = 1430milliVolts.

Give those changes a try, see what happens.

Try spinning it at a rate you can count, some thing 10 rpm is countable, with a bit of practice. Now you have a rough number to compare to your sensor output.

Good luck
BUT, as per the datasheet the equations are correct it seems.Here is the link for data sheet:http://www.sparkfun.com/products/9412

Full scale reading:1500/s max deflection is a lot! This means you've really got to spin the board quickly to see a change in output. This sensor range is good for potentially fast moving objects.

When there is no rotation on any axis of gyro, it outputs values near 1100 deg/s.
Since the output of the gyro is analog the expression is multiplied by 5000/1024
where 5000 is the supply voltage and 1024 is for 10-bit A/D converter.
Sensitivity is given in terms:millivolts/deg/sec
Can you please go through the datasheet and help me out..!
Thanks alot..!
SUDHEER87
#7
Jan30-11, 12:18 AM
P: 25
Quote Quote by mugaliens View Post
I'm not familiar with the electromechanical ways of stabilizing gyroscopic function, but there are simple mechanical ways of doing so, most of which have been employed in laboritory gyroscopes for decades.

My point: Why make something far more complicated when a far simpler solution has existed for thirty years?

?
I didn't understand what you are saying.Can you be more elaborative please?
Integral
#8
Jan30-11, 10:55 PM
Mentor
Integral's Avatar
P: 7,314
I could not find your conversion equation in the data sheet, where did you find it?
SUDHEER87
#9
Jan31-11, 12:57 AM
P: 25
Quote Quote by Integral View Post
I could not find your conversion equation in the data sheet, where did you find it?
OH sorry..!
It's in the 9th page figure4 below the diagram.:-)
He has given the equations for the full scale deflection i.e,1500 deg/s.
Integral
#10
Jan31-11, 11:01 AM
Mentor
Integral's Avatar
P: 7,314
So, how did you get from that relationship, to what you have?

Where did you get the factor of [itex] \frac {5000} {1024} [/itex]?

Try inverting that and be sure to convert all voltages to millivolts.










d
SUDHEER87
#11
Jan31-11, 01:48 PM
P: 25
[QUOTE=Integral;3112953]So, how did you get from that relationship, to what you have?

Where did you get the factor of [itex] \frac {5000} {1024} [/itex]?

Try inverting that and be sure to convert all voltages to millivolts.

The datasheet reads:
1.23V+SoA*1500=2.23V for 1500deg/s
Where, 1.23 is the Vref or Voffset
SoA=0.67mV/deg/s
That means Vref+SoA*angle=Vout
implies-->angle=(Vout-Vref)/SoA
From IEEE paper(Application of an Inertial Navigation System to the Quad-rotor UAV using MEMS Sensors Tin Thet Nwe, Than Htike, Khine Myint Mon, Dr.Zaw Min Naing and Dr.Yin Mon Myint) i got the equations as:(5/1023)*(Vout-Vref)/sensitivity.
Inverting that wouldn't give correct answer i think..!
:-(
SUDHEER87
#12
Feb1-11, 10:29 AM
P: 25
Quote Quote by Integral View Post
So, how did you get from that relationship, to what you have?

Where did you get the factor of [itex] \frac {5000} {1024} [/itex]?

Try inverting that and be sure to convert all voltages to millivolts.










d
The datasheet reads:
1.23V+SoA*1500=2.23V for 1500deg/s
Where, 1.23 is the Vref or Voffset
SoA=0.67mV/deg/s
That means Vref+SoA*angle=Vout
implies-->angle=(Vout-Vref)/SoA
From IEEE paper(Application of an Inertial Navigation System to the Quad-rotor UAV using MEMS Sensors Tin Thet Nwe, Than Htike, Khine Myint Mon, Dr.Zaw Min Naing and Dr.Yin Mon Myint) i got the equations as:(5/1023)*(Vout-Vref)/sensitivity.
Inverting that wouldn't give correct answer i think..!
:-(
SUDHEER87
#13
Feb2-11, 12:53 AM
P: 25
Quote Quote by SUDHEER87 View Post
The datasheet reads:
1.23V+SoA*1500=2.23V for 1500deg/s
Where, 1.23 is the Vref or Voffset
SoA=0.67mV/deg/s
That means Vref+SoA*angle=Vout
implies-->angle=(Vout-Vref)/SoA
From IEEE paper(Application of an Inertial Navigation System to the Quad-rotor UAV using MEMS Sensors Tin Thet Nwe, Than Htike, Khine Myint Mon, Dr.Zaw Min Naing and Dr.Yin Mon Myint) i got the equations as:(5/1023)*(Vout-Vref)/sensitivity.
Inverting that wouldn't give correct answer i think..!
:-(
Hey i got the correct answers.no need to invert the factor 5000/1024.
The correct equation is: x_deg/sec=(Vout-Voffset)*(5/1024)/0.00067(V/deg/s)
0.00067--->sensitivity
Voffset--->1.23V as per datasheet.
On stationary, the gyro outputs near 7deg/sec(due to erros)
On rotating rapidly along an axis gives near 300-500deg/sec
THANKS..!
SUDHEER87
#14
Feb4-11, 12:15 AM
P: 25
Quote Quote by Integral View Post
I can't tell you if your numbers are correct. You were the one spinning it, only you know that. Were you spinning it at over a 1000deg/sec that converts to around 200 RPM Pretty fast, spin it slower what do you get?

Something bothers me about your conversion equation, but since you don't provide any details on it we can only guess.what are you using for the sensitivity?

I can make some guesses, but if I am right your conversion is wrong.

in a reduced form you have:

[tex] V * \frac {5000} {1024} [/tex]

the fraction could be an expression of bits per volt, If so then you have 5000 of some unit spread over 1024 bits. So I am going to assume that your max voltage is 5v if so then that means you have 5000millivolts represented by 1024 bits your sensitivity is then given as degrees per bit.

To make the conversion work you would need to flip that fraction over. As it now stands your numbers has units of V2 per bit. If you multiply by [itex] \frac {1024} {5000} [/itex]you will get a result in bits. One other thing you will need to convert your Voltages to milliVolts. VRef = 1430milliVolts.

Give those changes a try, see what happens.

Try spinning it at a rate you can count, some thing 10 rpm is countable, with a bit of practice. Now you have a rough number to compare to your sensor output.

Good luck
hello thanks for the reply.
Iam giving 3Volts as the supply for the gyro.
Should i use (Vout-Voffset)*5/1024/sensitivity or (Vout-Voffset)*3/1024/sensitivity
Right now iam using the 1st equation.On stationary the gyro outputs around:x-axis -7.28deg/s and z axis -7.28deg/s
when i rotate quite fast along x axis the gyro outputs xaxis:-58.239deg/s zaxis: -7.28deg/s
and gives some positive values if rotated in another direction.
Are these values seems to be correct??
Integral
#15
Feb4-11, 01:37 AM
Mentor
Integral's Avatar
P: 7,314
Quote Quote by SUDHEER87 View Post
hello thanks for the reply.
Iam giving 3Volts as the supply for the gyro.
Should i use (Vout-Voffset)*5/1024/sensitivity or (Vout-Voffset)*3/1024/sensitivity
Right now iam using the 1st equation.On stationary the gyro outputs around:x-axis -7.28deg/s and z axis -7.28deg/s
when i rotate quite fast along x axis the gyro outputs xaxis:-58.239deg/s zaxis: -7.28deg/s
and gives some positive values if rotated in another direction.
Are these values seems to be correct??
I don't think either of them are right. You have the conversion factor for your ADC inverted. Look at your units. Are they correct?

The value you need is determined by your ADC. Do you have a link to documentation on that?
SUDHEER87
#16
Feb4-11, 01:58 PM
P: 25
Here is some information regarding the equation:http://www.egr.msu.edu/classes/ece48...Report_Web.doc
ON PAGE NUMBER 31.

Other documentation:From IEEE paper(Application of an Inertial Navigation System to the Quad-rotor UAV using MEMS Sensors Tin Thet Nwe, Than Htike, Khine Myint Mon, Dr.Zaw Min Naing and Dr.Yin Mon Myint)


THANKS..!
SUDHEER87
#17
Feb10-11, 12:50 AM
P: 25
Quote Quote by Integral View Post
I don't think either of them are right. You have the conversion factor for your ADC inverted. Look at your units. Are they correct?

The value you need is determined by your ADC. Do you have a link to documentation on that?
Hello..!
Did you see the material which i sent u.
Is my equation correct?
shyaminvi
#18
Feb23-11, 12:09 AM
P: 1
hi guys i shyam doing my final year and i am doing a project called" stair case climbing wheel chair " using inverted pendulum concept and i am using mems accelerometer for the stability. but the point is even after fine tuning the pot of the comparator stability is not obtained in my pendulum. so i thought of going into gyroscopes. wen surfed i came to see about adxrs150. but the point is it is not available in market. so i thought of using adxrs614/13. will it be a substitute to the adxrs150. the total wieght of the setup is 15Kg.


Register to reply

Related Discussions
Integrating angular damping into angular velocity and rotation Calculus 1
Gyroscope- Angular Speed, Rotational Kinematics, Precession Introductory Physics Homework 2
Angular rotation! Introductory Physics Homework 1
Angular rotation Introductory Physics Homework 3