Go to Post You know you're addicted to FIRST when you text your mentors more than your friends from school. - LindsayC [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-06-2002, 02:50
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Gyro interface to software

Posted by Erik at 03/26/2001 1:08 PM EST


Engineer on team #381, Trenton Tornados, from Trenton High School and Princeton University.



Can someone give me a heads up on how to interface the gyro with software, how to set up a variable to act as the input, is it digital or is it an analog signal, and if so is a simple if statement htat checks to see the value of the analog variable sufficient to use as a conditional starter for some automatic control of the robot? Any help and guidence appreciated.

-engineer forced to program


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #2   Spotlight this post!  
Unread 24-06-2002, 02:51
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Gyro interface to software

Posted by Lloyd Burns at 03/26/2001 2:20 PM EST


Engineer on team #188, Woburn Robotics, from Woburn Collegiate and TorDistSchoolBrd, ScotiaBank. OntPwrGen, Enbridge.


In Reply to: Gyro interface to software
Posted by Erik on 03/26/2001 1:08 PM EST:



: Can someone give me a heads up on how to interface the gyro with software,

' Use the connector or solder directly to the pins of the gyro, but use pin 1 on the RI for 5 V, gnd on any analog gnd pin listed in the RI part of the manual, and signal to any input you like on the RI analog. The signal is contiuously variable from 0 V (variable "sensor#" = 0, where # is the number of the input corresponding to the pin in the Dx25 analog connector you're using - again, see the RI manual) to 5 V (sensor# = 254), and the output voltage is 2.5 V (sensor# = 127 give or take [connect up and take measurements on yours])when not turning.

' The manual should be downloaded and printed for study. It's on the Innovation First web site.

: how to set up a variable to act as the input,

' set c_sensor# = 1 in the list, include sensor# in the list of variables (in the right order) in the SERIN command. If you want you can make an alias like "pitch VAR sensor#" or "yaw VAR sensor#" for easier programming. Samples are given in the manual, and the default program from the InnoFirst site.

' the PBASIC manual should also be studied. Goto www.parallaxinc.com for details.

: is it digital or is it an analog signal,
' YES :-) , but see above

: and if so is a simple if statement htat checks to see the value of the analog variable sufficient to use as a conditional starter for some automatic control of the robot?

' Yes, but you'll have trouble unless you specify a minimum value of pitch change - your robot may bounce enough, or the centre value may drift enough to trigger your balance routine.

' You might worry about direction of the pitch, too.
"if (pitch > 147) then (goto) enoughthatway
"if (pitch
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
SCRRF Design Classes Redhead Jokes Southern California Regional Robotics Forum 0 10-07-2003 17:29
which software Ryan Foley 3D Animation and Competition 5 01-03-2003 23:39
Looking for operator interface... Where is it? mike325 General Forum 2 07-01-2003 15:28
software software software archiver 2001 5 24-06-2002 00:21
Have YOU used the gyro chip? FotoPlasma Technical Discussion 10 31-01-2002 13:26


All times are GMT -5. The time now is 05:19.

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