Go to Post You know you're addicted to FIRST when...You relabled the speedometer in your parents car so that 0 is 127 - Sharkbyte [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 27-02-2003, 22:51
goegan31 goegan31 is offline
Registered User
#0064
 
Join Date: Jan 2003
Location: Highland High
Posts: 29
goegan31 is an unknown quantity at this point
Programming Gyros

Does anyone have programming for a gyro? My team has thrown this new task at me and I need a little assistance. If you can help me out on this, that would be awesome. Thanks!
  #2   Spotlight this post!  
Unread 27-02-2003, 23:20
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
I'd check the white papers in the programming section. Also, try to search the forums. I'm guessing this has come up a few times in previous threads, and you could find some info in them.

Other than that, I can't help. Maybe someone else has info.
__________________
Brandon Martus
e-mail
  #3   Spotlight this post!  
Unread 06-03-2003, 18:49
goegan31 goegan31 is offline
Registered User
#0064
 
Join Date: Jan 2003
Location: Highland High
Posts: 29
goegan31 is an unknown quantity at this point
New Problem

Hey, thanks, the technokat gyro program has been extremely helpful, but it has raised a few questions. First, what is the KFilt variable? It is in your Sensor1Filt, and does not have a value. I think this may be the only source of error to our programming. However, what is happening is the gyro just seems to count from 0 to 256 over and over again. I thought that it may be hooked up uncorrectly, but from what we can tell, it is not. If anyone can help, it is greatly appreciated.
  #4   Spotlight this post!  
Unread 10-03-2003, 13:42
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
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,862
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
If hooked up properly at rest the Gyro will normally read 127. It will return other readings only when you move it. Try using a simple test program that only reads the analog input and debug prints the results to eliminate any other potential code errors, e.g.,
debug 2,0,1, DEC3 sensor1

Tell us what pins you hooked to, so we can double check.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #5   Spotlight this post!  
Unread 10-03-2003, 14:07
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
if you still have any questions i will have our programmer get on here later and answer them...we used the gyro extensively this year and he seems to have picked up on alot of the stuff associated with it.
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #6   Spotlight this post!  
Unread 26-03-2003, 08:11
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
Hey. We're using the Gyros for a project outside of FIRST. If someone can show us or point us to a diagram showing the correct hook-up of the Gyro, we'd be thankful. I've checked the BEI and systron websites, but neither show the model that we have. Also, if there's any special way to hook 2 up (one for pitch, the other for yaw), then we'd be VERY grateful. Thanks!
  #7   Spotlight this post!  
Unread 26-03-2003, 08:27
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
Look in the image gallery for 2003. I posted it there. Or do a search for "Gyro Pinout" and you should be able to find it.

<EDit> In case people are lazy i'll post the links here:
Full Sheet:
http://www.chiefdelphi.com/forums/pi...&quiet=verbose

Just the PinOut:
http://www.chiefdelphi.com/forums/pi...&quiet=verbose

</edit>
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!

Last edited by Josh Hambright : 26-03-2003 at 10:36.
  #8   Spotlight this post!  
Unread 28-03-2003, 15:15
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
Thanks! One more question, though.....

Hey. I got the code great, but I have another problem. I need to use 2 gyros for my project (one for yaw, one for pitch), Any changes I need to make, or just add a copy the program and substitute sensor2 in for sensor1 and so on? Let me know. Thanks!
  #9   Spotlight this post!  
Unread 08-04-2003, 07:51
AdmiralPaddon AdmiralPaddon is offline
Registered User
#0768
 
Join Date: Mar 2002
Location: Woodlawn High School
Posts: 16
AdmiralPaddon is an unknown quantity at this point
Umm, can anyone help? Thanks in advance.
  #10   Spotlight this post!  
Unread 08-04-2003, 08:03
rust710's Avatar
rust710 rust710 is offline
Registered User
#0862 (Lightning Robotics)
 
Join Date: Dec 2002
Location: Canton, MI
Posts: 103
rust710 is an unknown quantity at this point
Send a message via AIM to rust710
Programing is not really the problem. The issue is one I don't think two gyros are allowed on the robot, but if that is not a issue then the issue is power. Pin 1 on the anolog inputs of the control system is the only 10 volt power supply for the gyro. I don't know if that pin can give enough power for 2 gyros. But other wise hooking them up is the same, except you need to use a diffrent anolog input pin.
__________________
Andrew Radamis
Programmer on 862
info@lightingrobotics.com
  #11   Spotlight this post!  
Unread 08-04-2003, 09:10
Josh Hambright's Avatar
Josh Hambright Josh Hambright is offline
{Error Processing Custom Title}
AKA: oneangrydwarf/jtosh
no team (old school gangsta)
Team Role: Alumni
 
Join Date: Apr 2002
Rookie Year: 2000
Location: Indiana
Posts: 1,421
Josh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond reputeJosh Hambright has a reputation beyond repute
Send a message via AIM to Josh Hambright
If you can get the gyros from digikey or future active you can use as many as you want as long as you stay within the limits of spending set in the manual...

Atleast it seems that it should be that way.
__________________
Former 461 Student/Mentor. Former 1272 and 1018 Mentor. Team 1555 Super-Fan.
Science and Engineering Can Open New Doors. --S.E.C.O.N.D.--
=~=!=@= #=$=%=
Co-Founder IndianaFIRST

Share your FIRST photos on Flickr!
  #12   Spotlight this post!  
Unread 08-04-2003, 09:26
seanwitte seanwitte is offline
Registered User
None #0116
Team Role: Engineer
 
Join Date: Nov 2002
Location: Herndon, VA
Posts: 378
seanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant futureseanwitte has a brilliant future
Send a message via AIM to seanwitte
it should be ok

The gyro takes 5V, not 10. I can't swear to it, but I think the 5V supply pins on the analog port can only source 25mA. There is one specific pin that is fused that can source more current, which is meant for the gyro. You should be able to connect two gyros to that pin, the data sheets indicate it only draws 20mA. Maybe the gyro from previous years used more current?

The larger problem, I think, is finding one. According to some other posts here, that part is specific to FIRST and isn't available off-the-self. Maybe you can borrow one, but the value counts towards your electronics budget.
  #13   Spotlight this post!  
Unread 08-04-2003, 20:40
Dusan Dusan is offline
Registered User
#0548 (Robostangs)
 
Join Date: Mar 2003
Location: Northville, Michigan
Posts: 8
Dusan is an unknown quantity at this point
Gyro Help

Hey, I think i can help you with your problem ... just e-mail me at
robostangs548@hotmail.com

Send me any specific questions you have about programming the gyro .... and perhaps about electronic wiring.
  #14   Spotlight this post!  
Unread 08-04-2003, 20:54
Cory's Avatar
Cory Cory is offline
Registered User
AKA: Cory McBride
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: May 2002
Rookie Year: 2001
Location: Redwood City, CA
Posts: 6,818
Cory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond reputeCory has a reputation beyond repute
Send a message via AIM to Cory
I am positive that 2 Gyros are allowed. At both inspections in Sacramento and SVR, inspectors saw that we were using two, noth on the robot and on the BOM. At SVR, we had an incredibly thorough inspection and they were also not questioned.

Cory
__________________
2001-2004: Team 100
2006-Present: Team 254
  #15   Spotlight this post!  
Unread 08-04-2003, 21:38
Dave Flowerday Dave Flowerday is offline
Software Engineer
VRC #0111 (Wildstang)
Team Role: Engineer
 
Join Date: Feb 2002
Rookie Year: 1995
Location: North Barrington, IL
Posts: 1,366
Dave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond reputeDave Flowerday has a reputation beyond repute
Quote:
Originally posted by Cory
I am positive that 2 Gyros are allowed. At both inspections in Sacramento and SVR, inspectors saw that we were using two, noth on the robot and on the BOM. At SVR, we had an incredibly thorough inspection and they were also not questioned.
Hmm.. unless you bought one gyro from Future or Digikey then I'm afraid you're violating the rules. Check page 28 of the Robot Rules - Yaw Rate Sensor Quantity 1 was included in the kit. If you follow the additional parts flow-chart you'll see that you'll end up in the box that says "Is the part an Additional Electronics Component (refer to rule K5)?" Rule K5 is the one that says it must come from Digikey or Future and no part can cost more than $100.

The fact that the inspectors didn't catch it doesn't make it legal - having been an inspector at Midwest I can tell you that inspectors don't have time to go through the whole list of rules and additional parts and everything - basically except for inspecting for obvious violations or safety problems we have to rely on the teams to follow the rules on their own.

BTW, what are you measuring with two gyros? I know we really wish we were able to use 2 so we could use one for our angular position and one for ramp detection... Is that what you're doing?
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
Programming Compatition Angela06 Programming 30 08-04-2005 23:12
Hooking up Controller to computer for programming. Dragon45 General Forum 3 30-01-2003 00:22
Pneumatics electrical wiring and programming archiver 2001 1 23-06-2002 23:10
Error found in programming for the pump and pressure switch sjharobotics Programming 4 06-02-2002 17:46
pbasic programming punarhero Programming 4 21-01-2002 23:32


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

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