Go Down

Topic: 9 DOF Razor help (Read 1 time)previous topic - next topic

samoc

Aug 15, 2010, 05:10 am
Hi, I'm a newbie and am a little stuck. I have just purchased a 9 DOF Razor IMU (SEN-09623) and a 3.3v FDTI breakout  (DEV-08772) which I'm powering via usb.

I'm trying to convert the gyro reading to angles but am doing something wrong. If i turn the board 90 degrees my conversion will only give me readings of around 30 degrees.

Here is my algorithm

sensitivity = 0.83 // as per datasheet
zeroLevel = 1.23 // as per datasheet

degPerSecond = (gyroXvalue * 3.3/1024 - zeroLevel)/sensitivity

angle = degPerSecond * elapsedTime + previousAngle

I'm using the values of 3.3 because its a 3.3V power supply and 1024 because its a 10 bit ADC

What am i doing wrong? Do i have the sensitivity and zero level correct? I would like post the datasheet, but not allowed.

Any guidance would be really appreciated.

Cheers

Andrew

#1
Aug 15, 2010, 11:32 am
Now you've made one post you'll be allowed to post a link to the data sheet.

Andrew

samoc

#2
Aug 15, 2010, 11:43 am
The 9DOF razor
http://www.sparkfun.com/commerce/product_info.php?products_id=9623
has two gyro's. A LY530AL (single-axis gyro) and a LPR530AL (dual-axis gyro).

Here are the links to the datasheets

LY530AL:
http://www.sparkfun.com/datasheets/Sensors/IMU/LY530ALH.pdf

LPR530AL:
http://www.sparkfun.com/datasheets/Sensors/IMU/lpr530al.pdf

AWOL

#3
Aug 15, 2010, 01:45 pm
What is your analogue reference voltage?
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

samoc

#4
Aug 15, 2010, 04:58 pm
Not too sure. How do i find out the analogue reference voltage? It's powered via USB if thats any help.

Sorry, im new to this

onedaime

#5
Dec 21, 2010, 03:57 pm
hi, i'd purchased the same type of 9 dof as you are and connected it to my pc via Ftdi basic . Could u give me the code in adruino software, to display the value of gyroscope, accelerometer and magnetometer? thank you an advance.

Go Up

Please enter a valid email to subscribe