Go to Post Having a spare arm that you can put on in 5 minutes or less intimidates the hardware into not breaking. - ChrisH [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 30-01-2005, 03:35
SteveO SteveO is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: NV
Posts: 122
SteveO will become famous soon enoughSteveO will become famous soon enough
Unhappy Gyro Troubles

I apologize in advance if this problem is hidden elsewhere in another thread; I couldn't find anything similar.

We have received our analog devices ADXRS150 gyro and wired up the pins real nice to a PWM cable. We made sure with a multimeter that our connections were good and there was no cross talk etc. We housed the wired gyro board in a small enclosure similar to the one used for the camera from Radio Shack, filled with foam (perhaps the problem is here?). Using the gyro code provided by Kevin Watson we were able to get some output from our gyro.

Letting the program calculate the gyro bias gave us a little bit of drift even clamped securely with a rubber clamp to a table. We used the averaging function to get our gyro bias (a value of around 6537 I believe it was) and with that we still get a little drift but it is certainly acceptable.

My problem is, that when we turn the gyro 180 degrees (or any angle for that matter) we do not see any change in the output that would indicate we have done so. Does anyone else have this problem or know what I am doing wrong?
  #2   Spotlight this post!  
Unread 30-01-2005, 03:50
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: Gyro Troubles

This may be a bit obvious but make sure you are rotating it on the proper axis.
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #3   Spotlight this post!  
Unread 30-01-2005, 03:58
SteveO SteveO is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: NV
Posts: 122
SteveO will become famous soon enoughSteveO will become famous soon enough
Re: Gyro Troubles

Quote:
Originally Posted by Mike Betts
This may be a bit obvious but make sure you are rotating it on the proper axis.
Thanks, I think it is something obvious I am missing. I'm still not quite sure what the right axis would be, but when I rotate it on any axis (I've tried all directions) I don't get a reading that looks any different than when it is clamped to the table.
  #4   Spotlight this post!  
Unread 30-01-2005, 11:36
roboticsjenkins's Avatar
roboticsjenkins roboticsjenkins is offline
robotics_jenkins
AKA: Andrew
#0616 (Southampton Indian Robotics)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Courtland, Virginia
Posts: 15
roboticsjenkins can only hope to improve
Send a message via AIM to roboticsjenkins Send a message via Yahoo to roboticsjenkins
Re: Gyro Troubles

I would like to see a simple wiring diagram for a gyro if it is at all possible. I have a gyro from the Kit of Parts from last year. I am looking for a wiring diagram for it if at all possible.

Last edited by roboticsjenkins : 30-01-2005 at 13:56.
  #5   Spotlight this post!  
Unread 30-01-2005, 13:52
Biff Biff is offline
Registered User
AKA: Tom Cooper
#1227 (Techno Gremlins)
Team Role: Mentor
 
Join Date: Jan 2004
Location: Grand Rapids MI
Posts: 214
Biff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the roughBiff is a jewel in the rough
Re: Gyro Troubles

Quote:
Originally Posted by SteveO
Thanks, I think it is something obvious I am missing. I'm still not quite sure what the right axis would be, but when I rotate it on any axis (I've tried all directions) I don't get a reading that looks any different than when it is clamped to the table.
The axis of revolution is viewed from the top of the chip. Look at the top and twist left or right while bottom of device is on table. You can also check the output voltage with a voltmeter. expect the voltage to rise or fall from about 2.5 as the gyro is in rotation and settle back to 2.5 while not rotating. Noise in the system tends to make 10 bit math not that stable unless you code for limiting the drift and noise. I haven't looked through Kevin's gyro code for this year. These issues may already be addressed. Measurement are from testing we did last year.
  #6   Spotlight this post!  
Unread 30-01-2005, 13:57
SteveO SteveO is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: NV
Posts: 122
SteveO will become famous soon enoughSteveO will become famous soon enough
Re: Gyro Troubles

Quote:
Originally Posted by roboticsjenkins
I would like to see a simple wiring diagram for a gyro if it is at all possible.
Go to kevin.org/frc and download the gyro code, the readme explains how to wire it.
  #7   Spotlight this post!  
Unread 30-01-2005, 14:20
roboticsjenkins's Avatar
roboticsjenkins roboticsjenkins is offline
robotics_jenkins
AKA: Andrew
#0616 (Southampton Indian Robotics)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Courtland, Virginia
Posts: 15
roboticsjenkins can only hope to improve
Send a message via AIM to roboticsjenkins Send a message via Yahoo to roboticsjenkins
Re: Gyro Troubles

The readme did not explain the wiring, it was only programming language which I have no clue how to interpret. I know I have to wire it to the analog input to get power pu on this Gyro it says nothing about which color wire is what, I am still scratching my head on what to do. It has a blue, green and white wire. I believe the green wire is a ground, however I do not know where the blue and white wire go.

Last edited by roboticsjenkins : 30-01-2005 at 14:23.
  #8   Spotlight this post!  
Unread 30-01-2005, 14:59
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Gyro Troubles

Quote:
Originally Posted by roboticsjenkins
The readme did not explain the wiring, it was only programming language which I have no clue how to interpret. I know I have to wire it to the analog input to get power pu on this Gyro it says nothing about which color wire is what, I am still scratching my head on what to do. It has a blue, green and white wire. I believe the green wire is a ground, however I do not know where the blue and white wire go.
I have never personally used this gyro, but you can find the datasheet for this gyro at http://www.analog.com/UploadedFiles/...ADXRS150_B.pdf . It will include a pinout.

----------------------- EDIT --------------------------------
You are obviously using some kind of demo board for this chip, bc there is almost no way to solder to it.
The dasheet for the demo board is at http://www.analog.com/UploadedFiles/...XRS150EB_0.pdf

It looks like you need to conect it as follows:
AGND AND OR PGND: connect ground
AVCC AND PDD: connect to 5v
RATEOUT: connect to input (sig)

In order to get better noise rejection, you may want to add some bandwidth reducing capacitors as described in the datasheet.
__________________
1139 Alumni

Last edited by Rickertsen2 : 30-01-2005 at 15:11.
  #9   Spotlight this post!  
Unread 30-01-2005, 15:00
SteveO SteveO is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: NV
Posts: 122
SteveO will become famous soon enoughSteveO will become famous soon enough
Re: Gyro Troubles

I'm not sure what kind of gyro you are using. There is probably a spec sheet that either came with the gyro or is available online that will tell you what cable is what.

Even when I rotate as described I don't get a change. Has anyone been able to get an ADXRS150 to work?

EDIT: I apologize, I am using the demo board, I thought everyone would assume that lol

Last edited by SteveO : 30-01-2005 at 15:11.
  #10   Spotlight this post!  
Unread 30-01-2005, 15:24
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,825
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Gyro Troubles

Quote:
Originally Posted by SteveO
Has anyone been able to get an ADXRS150 to work?
Quite a few of us have used it for awhile.

Attach 5 wires total to the chip. Several of them combine, so you end up with three wires going to the RC. Look at the datasheet to see which pin is #1.

pins 8 & 12 = Ground
pins 1 & 13 = +5v
pin 2 = signal
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #11   Spotlight this post!  
Unread 30-01-2005, 15:53
SteveO SteveO is offline
Registered User
no team
 
Join Date: Jan 2003
Rookie Year: 2003
Location: NV
Posts: 122
SteveO will become famous soon enoughSteveO will become famous soon enough
Re: Gyro Troubles

I don't believe I soldered anything to pin 12. Could this be my problem? I only had a total of 4 wires on my chip: Pin1 and Pin13 +5, Pin8 GND, and Pin2 rateout.
  #12   Spotlight this post!  
Unread 30-01-2005, 16:00
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Gyro Troubles

Quote:
Originally Posted by roboticsjenkins
The readme did not explain the wiring, it was only programming language which I have no clue how to interpret. I know I have to wire it to the analog input to get power pu on this Gyro it says nothing about which color wire is what, I am still scratching my head on what to do. It has a blue, green and white wire. I believe the green wire is a ground, however I do not know where the blue and white wire go.
Blue is the analog rate output
Green is ground
White is +5 volts.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #13   Spotlight this post!  
Unread 30-01-2005, 16:05
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Gyro Troubles

Quote:
Originally Posted by SteveO
I don't believe I soldered anything to pin 12. Could this be my problem? I only had a total of 4 wires on my chip: Pin1 and Pin13 +5, Pin8 GND, and Pin2 rateout.
This is correct. You don't need to solder anything to pin 12 because it's internally connected to pin 8.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #14   Spotlight this post!  
Unread 30-01-2005, 16:46
roboticsjenkins's Avatar
roboticsjenkins roboticsjenkins is offline
robotics_jenkins
AKA: Andrew
#0616 (Southampton Indian Robotics)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Courtland, Virginia
Posts: 15
roboticsjenkins can only hope to improve
Send a message via AIM to roboticsjenkins Send a message via Yahoo to roboticsjenkins
Re: Gyro Troubles

Thanks Kevin for your help, it helped me a lot. I have been scratching my head trying to figure this gyro out for 2 and a half days.
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Example gyro code released. Kevin Watson Programming 60 17-03-2005 18:32
No Signal From Gyro colt527 Programming 12 19-10-2004 07:30
ADXRS150 gyro yaw rate sensor Brian M. Electrical 13 17-10-2004 02:28
Wierd gyro code problems...pls help Salik Syed Programming 4 14-03-2004 01:29
gyro code odin892 Programming 2 08-04-2003 14:50


All times are GMT -5. The time now is 22:16.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi