Go to Post Between Andy B. and Andy G. being Andy A. has some unspoken expectations put on it. - Andy A. [more]
Home
Go Back   Chief Delphi > Technical > Electrical
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 04-02-2008, 13:28
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Testing the Kit Gyro?

What is the easiest way to test the kit gyro to see if it is working?

I tried hooking up a PWM cable to analog input 1, and connecting it to the gyro (white to TW, black to GB, red to 5R) and adding a printf line to user_routines.c to display rc_ana_in01.

I get a constant output of 135 regardless of if I twist the gyro or even have it plugged in.

Does the gyro need to be initialized, calibrated, etc. before it will function at all, is my printf referencing the wrong variable, or am I doing something else wrong to see if the gyro is simply functioning at all?
  #2   Spotlight this post!  
Unread 04-02-2008, 13:37
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Testing the Kit Gyro?

Quote:
Originally Posted by EFastring View Post
I tried hooking up a PWM cable to analog input 1, and connecting it to the gyro (white to TW, black to GB, red to 5R) and adding a printf line to user_routines.c to display rc_ana_in01.

I get a constant output of 135 regardless of if I twist the gyro or even have it plugged in.

Does the gyro need to be initialized, calibrated, etc. before it will function at all, is my printf referencing the wrong variable, or am I doing something else wrong to see if the gyro is simply functioning at all?
rc_ana_in01 is a constant. You have to use Get_Analog_Value( rc_ana_in01 ) in order to get the actual analog value.
  #3   Spotlight this post!  
Unread 04-02-2008, 14:01
EFastring EFastring is offline
Registered User
AKA: Eric Fastring
FRC #2078 (Robotic Wolves)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2007
Location: Slidell, Louisiana, USA
Posts: 24
EFastring is an unknown quantity at this point
Re: Testing the Kit Gyro?

Ah, excellent. Thanks for the quick reply. I will give it a shot.
  #4   Spotlight this post!  
Unread 04-02-2008, 14:05
jgannon's Avatar
jgannon jgannon is offline
I ᐸ3 Robots
AKA: Joey Gannon
no team
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Pittsburgh, PA
Posts: 1,467
jgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond reputejgannon has a reputation beyond repute
Re: Testing the Kit Gyro?

Also, constant values from the gyro are a common sign that you've wired it incorrectly. Ensure that your wires connects to the pins labeled with a T, not the ones with an R.
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed

Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star

_
  #5   Spotlight this post!  
Unread 04-02-2008, 16:08
Mike Hendricks Mike Hendricks is offline
misses his IFI control system
FRC #0973 (GRR)
Team Role: Mentor
 
Join Date: Oct 2003
Rookie Year: 2004
Location: Arroyo Grande, CA
Posts: 237
Mike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to allMike Hendricks is a name known to all
Re: Testing the Kit Gyro?

Quote:
Originally Posted by jgannon View Post
Also, constant values from the gyro are a common sign that you've wired it incorrectly. Ensure that your wires connects to the pins labeled with a T, not the ones with an R.
Unless of course you wish to read relative temperature off the sensor. We figured this out the hard way last year ..
__________________
2004-2010: Founding Member, Technical Mentor - Team 1388, Eagle Robotics
2011: ???
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
pic: Testing the Lift Rapt0r9 Extra Discussion 2 04-02-2008 17:10
pic: 418: testing controller on the roboticWanderor Extra Discussion 1 14-01-2008 23:45
How do i connect the camera for testing? naor52 Programming 1 12-01-2006 01:11
pic: Testing the arm... Rob Robot Showcase 15 11-02-2005 20:34


All times are GMT -5. The time now is 13:27.

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