Go to Post Is CAD essential to all teams? No, but neither are power tools. - 346CADmen [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 15-01-2008, 21:20
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
Ever use a helicopter heading hold gyro before?

RC helicopters use gyros to control the tail rotor. They sit between the receiver and the servo/esc for the tail and modify the control signal sent to the output. The input is the desired PWM value and the output is the modified PWM value. The gyro will attempt to hold the heli tail in a fixed position when the input is neutral, but will allow the tail to move when a non-neutral input is applied.

We used the ADXRSxxx gyros on the robot to integrate the heading, but I never thought of using one of these simple gyros to make the robot drive straight. For a holonomic platform you have three components to your drive commands: X, Y, and rotation (W). Take the W value and send to to one of the user-controlled PWM outputs connected to the gyro input. Connect the gyro output back to the RC and read the pulse width to determine the modified signal value. Use the modified value to drive the robot instead of the original W value. I have no idea whether it would work or how well, but I was curious whether anyone has done it.
  #2   Spotlight this post!  
Unread 15-01-2008, 22:36
Mr.G Mr.G is offline
Registered User
AKA: Kevin
FRC #0326 (Xtreme Eagles / Romulus High School / General Motors)
Team Role: Engineer
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Romulus
Posts: 244
Mr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond reputeMr.G has a reputation beyond repute
Send a message via AIM to Mr.G
Re: Ever use a helicopter heading hold gyro before?

All sounds good, but you can't read in PWM with the controller. Have looked into it ourselves though.
  #3   Spotlight this post!  
Unread 16-01-2008, 02:36
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 211
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Ever use a helicopter heading hold gyro before?

Quote:
Originally Posted by Mr.G View Post
All sounds good, but you can't read in PWM with the controller. Have looked into it ourselves though.
You can read a PWM signal, but it's a little tricky. You'll need to use one interrupt pin and a timer. When the input signal goes high, that'll trigger an interrupt. Start the timer. When the input signal goes low, that'll trigger another interrupt. Stop the timer. The PWM value is the timer value. Of course, you'll have to make sure you choose appropriate values for the timer. The PWM signal will give you a high bit that ranges from approximately 1.0 ms to 2.0 ms.

On the other hand, if you don't actually care what the value of the PWM signal is, you just want to "copy" it to an output PWM signal, you could just have an interrupt on the input PWM signal, and toggle your output pin. You would not need to use a timer at all.
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion

Last edited by ay2b : 16-01-2008 at 11:36. Reason: typo
  #4   Spotlight this post!  
Unread 16-01-2008, 10:28
Jetweb Jetweb is offline
is good at making robots find walls
AKA: Jonathan
FRC #0179 (Children of the Swamp!!!)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jupiter, FL
Posts: 213
Jetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to allJetweb is a name known to all
Re: Ever use a helicopter heading hold gyro before?

The only difference between a heading hold gyro and the regular gyro they give us in the kit is that in the Heading hold Gyro there is a separate chip (of which I know nothing about) that interprets the input from the driver/flyer.

I’m not sure if it would work with the FRC controller, but if it doesn’t than you can do the same thing with the kit gyro and some creative code.
  #5   Spotlight this post!  
Unread 16-01-2008, 10:36
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
Re: Ever use a helicopter heading hold gyro before?

Quote:
Originally Posted by Jetweb View Post
The only difference between a heading hold gyro and the regular gyro they give us in the kit is that in the Heading hold Gyro there is a separate chip (of which I know nothing about) that interprets the input from the driver/flyer.

I’m not sure if it would work with the FRC controller, but if it doesn’t than you can do the same thing with the kit gyro and some creative code.
Yes, that's true. My point was that you can offload that processing and not deal with it at all. It would be straight-forward to use an edge triggered interrupt and a timer to measure the pulse width of the input PWM signal. What I don't know is how well those units are suited to driving a robot.
  #6   Spotlight this post!  
Unread 16-01-2008, 11:23
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,113
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: Ever use a helicopter heading hold gyro before?

Quote:
Originally Posted by Jetweb View Post
I’m not sure if it would work with the FRC controller, but if it doesn’t than you can do the same thing with the kit gyro and some creative code.
The basic framework for such code is already available from Kevin Watson. You'd just have to add the part that applies control to the drivebase motors based on the measured heading.
  #7   Spotlight this post!  
Unread 16-01-2008, 12:49
AdamHeard's Avatar
AdamHeard AdamHeard is offline
Lead Mentor
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2004
Location: Atascadero
Posts: 5,526
AdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond reputeAdamHeard has a reputation beyond repute
Send a message via AIM to AdamHeard
Re: Ever use a helicopter heading hold gyro before?

I've used them in battlebots before and they work amazingly.

But, to make them work within the rules of FIRST it requires more complex code than just using a gyro + Kevin's code. I was looking into it in 2005 when we last used a gyro.
  #8   Spotlight this post!  
Unread 16-01-2008, 12:59
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Ever use a helicopter heading hold gyro before?

Quote:
Originally Posted by Mr.G View Post
All sounds good, but you can't read in PWM with the controller. Have looked into it ourselves though.
If the frequency is all that is needed you can use an frequency to voltage converter. Then all you would need to do is read the value off an ADC.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
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
Gyro Heading always zero, yet operating? marccenter Programming 3 16-01-2008 10:54
Reading gyro before Autonomous mode Doug Leppard Programming 9 06-01-2008 21:02
Has this ever happened before? BBnum3 General Forum 22 17-04-2007 11:39
Keeping a certain heading using a gyro DanDon Programming 12 08-03-2006 14:27
Ever seen this serial port problem before??? Aidan F. Browne Programming 5 05-02-2003 12:03


All times are GMT -5. The time now is 11:01.

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