Pages: [1] 2   Go Down
Author Topic: Help using LISY300AL Gyro with Arduino!!  (Read 1673 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 44
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am very new to arduino and am trying to use the LISY300AL Gyro to read angular accelerations.  I know it requires a 3.3v input so I am using the 3.3v from the arduino but am not sure how the rest of the circuit is supposed to be set up, right now I have the vcc connected to the 3.3v, the ground connected to the ground, and the DOUT connected to analog input 0.  Am I am missing anything, currently I am just getting a reading of 684 using the analog read command and it does not change when the gyro is rotated.  I am doing this for a project and school and really appreciate any help, feel free to e-mail me at genti337@gmail.com.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26290
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Please don't cross-post - could you please delete one of these identical posts?
Logged

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

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

Yes I'll delete the other one, sorry about that, I just saw that I put it in the wrong forum originally.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26290
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

3.3/5 * 1024 = 674, so your 684 is about right for a stationary gyro, give-or-take a few millivolts.[edit]Oops, forget that, it should probably be half that. Have you checked the wiring?[/edit]
« Last Edit: December 24, 2009, 03:09:30 pm by AWOL » Logged

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

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

That's where i'm not sure if I have it setup correctly this is what I have right now...

-3.3v to 3.3v
-ground to ground
-DOUT to analog input 0
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26290
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
-3.3v to 3.3v
I'll assume that's a bullet-point, not a minus sign!

I was right second time - the null-point voltage should be about supply/2, so the one you're reading is way too high.
Have you tied PD and ST to 0V?

« Last Edit: December 24, 2009, 03:18:37 pm by AWOL » Logged

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

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

Yeah, that was a bullet point.  

No I have not tied the PD and ST to 0V, how do I do that, connect them to the ground?...I'm teaching myself all this as I go along so I don't know completely what I'm doing.
Logged

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

I connected the PD and ST pins to the ground to get them to 0V and am now getting a stationary reading of 347.  It varies between 0 and 684 when rotating it depending on which way it is rotated.  So a reading of 0 corresponds to -300 deg/s and a reading of 684 corresponds to 300 deg/s correct and it is proportional in between?  Thanks for the help I was stuck on this for a couple days.
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26290
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
So a reading of 0 corresponds to -300 deg/s and a reading of 684 corresponds to 300 deg/s correct and it is proportional in between?
Sounds about right - I've never used this device, only just read the datasheet.
Logged

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

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

Hello, do you have any schematics of connection between micro controller and lisy,and which micro controller?
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26290
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
and which micro controller
Well, looking at the name of the forum, which do you guess?
Logged

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

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

ok ok...my bad smiley
Logged

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 302
Posts: 26290
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't measure degrees with a gyro, only degrees per second.
Logged

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

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

No, you can only measure the turn rate, not the absolute amount of 'turn'.
Logged

Per Arduino ad Astra

UK
Offline Offline
Faraday Member
**
Karma: 17
Posts: 2884
Gorm deficient
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Magnetometer?
Shaft encoder?
Logged

Per Arduino ad Astra

Pages: [1] 2   Go Up
Jump to: