Go to Post Chairman's Award is not about building the robot. Every team builds a robot. - Retired Starman [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
  #31   Spotlight this post!  
Unread 31-01-2007, 10:43
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Gear Tooth Sensor

Ok, I understood how to connect the GTS....well, except for the connection to the 20 AMP one. How do we do that?
And what's with the phase B, what is it, what's the illustration in Kevin's FAQ and what do I need to do with it in Kevin's Encoder code to make things work?
  #32   Spotlight this post!  
Unread 31-01-2007, 11:14
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: Gear Tooth Sensor

Quote:
Originally Posted by Bomberofdoom View Post
Ok, I understood how to connect the GTS....well, except for the connection to the 20 AMP one. How do we do that?
One wire goes from a 20-amp-protected tab on the black breaker panel to the +12v connection on the board. Another wire goes from the ground connection on the board to a ground tab on the breaker panel.
Quote:
And what's with the phase B, what is it, what's the illustration in Kevin's FAQ and what do I need to do with it in Kevin's Encoder code to make things work?
References to "phase B" apply to quadrature encoders. The Gear Tooth Sensor is not one of those; it has no "phase B" signal.

The illustration I believe you are referring to shows how a too-fast quadrature signal can be misread if the software is not responsive enough to process an interrupt before the signals change. It is not relevant to the Gear Tooth Sensor. (A different problem is possible if the GTS interrupt rate gets too high, but "too high" in this case means more than several thousand pulses per second.)

If you use inputs 1 and 2 and leave the associated phase B inputs disconnected so they remain high, I think Kevin's encoder software will work without modification. To change it so that it works specifically with a single-phase pulse instead of a quadrature signal, just remove the test for the level of the phase B input, and make the code always increment the counter when the interrupt occurs. If you want to, you can get fancier and choose whether to increment or decrement the counter based on which direction you think the gear is turning.
  #33   Spotlight this post!  
Unread 31-01-2007, 12:39
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Gear Tooth Sensor

Quadrature signal??? (O_o')
  #34   Spotlight this post!  
Unread 01-02-2007, 21:12
slloyd slloyd is offline
Registered User
AKA: Sonny
FRC #1221 (Nerbotics)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: CANADA -eh?
Posts: 20
slloyd is an unknown quantity at this point
Re: Gear Tooth Sensor

our team's head programmer (GO 1221!!) got the encoder going earlier this week. the posts on this message board and kevin's code/FAQ were invaluable.

now... what to do with this information? we would like to use it to help the mobility of our robot become smooth and accurate. i have read the FIRST document for PID control of motors, it was linked somewhere but i forget now. seems this is a good match and is the right way to go.

but, looks really tough to program. maybe need floating point math?

also, has anyone successfully determined which direction the gear is rotating (see my earlier post that proves it IS at least possible with 2007 sensor). i'd appreciate your comments if you have.

slloyd
  #35   Spotlight this post!  
Unread 10-08-2007, 05:45
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Gear Tooth Sensor

Just realized, haven't got an answer from this question and the programming sub-team is about to start working soon, so if we could get assistance we that we'll be able to work on this encoder faster.

So, anyone, quardrate signal and stuff? Anyone knows?
__________________
TEAM 2230 ZECHARIA'S ANGELS

2009 Microsoft Israel FRC Regional Winners!
2009 Microsoft Israel FRC Regional Chairman's Award Winners!!!
---------------------------------
2008 Microsoft Israel FRC Regional semi-finalist.
2008 Microsoft Israel FRC Regional Delphi's "Driving Tommorow's Technology" Award winner.
2008 Robot Driver
---------------------------------
2007 GM/Technion Israel FRC Regional semi-Finalist.
2007 GM/Technion Israel FRC Regional Xerox Creativity Award winner.
2007 Robot Driver.
  #36   Spotlight this post!  
Unread 25-12-2007, 14:06
Steve_Alaniz Steve_Alaniz is offline
Registered User
FRC #2848 (All Sparks)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 1997
Location: Dallas
Posts: 211
Steve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond repute
Re: Gear Tooth Sensor

Is that last question asking for an explanation of Quadrature Output? OK if it is, Wikipedia has a pretty basic one and there are a lot others but look at
http://en.wikipedia.org/wiki/Rotary_encoder And scroll down to the section headed "Incremental rotary encoder". They also explain that backward count problem so kudos to them for being through.
This same theory applies to rotary and strip encoding schemes so the entire article is a good read.

Hope that's what you were asking.

Steve
  #37   Spotlight this post!  
Unread 25-12-2007, 14:35
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Gear Tooth Sensor

Thank you, that was an excellent read!

I even tried with the mouse (yes...I admit..I use old mouses ) and if I spinned one of the "scrollers" top fast the mouse on the screen actually bounced to the other side and then back!

I think I might have a question about the "two sensors" thing. I belive the GTS has those "two sensors" (as in Phase A and Phase B) inside them, is that correct?

I'm just quite tired now and I don't think I'll be able to go over the encoder code now, but I'm hoping to do so tommorow and maybe finally understand how to work with this stuff.

Thanks again.
__________________
TEAM 2230 ZECHARIA'S ANGELS

2009 Microsoft Israel FRC Regional Winners!
2009 Microsoft Israel FRC Regional Chairman's Award Winners!!!
---------------------------------
2008 Microsoft Israel FRC Regional semi-finalist.
2008 Microsoft Israel FRC Regional Delphi's "Driving Tommorow's Technology" Award winner.
2008 Robot Driver
---------------------------------
2007 GM/Technion Israel FRC Regional semi-Finalist.
2007 GM/Technion Israel FRC Regional Xerox Creativity Award winner.
2007 Robot Driver.
  #38   Spotlight this post!  
Unread 27-12-2007, 12:47
Steve_Alaniz Steve_Alaniz is offline
Registered User
FRC #2848 (All Sparks)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 1997
Location: Dallas
Posts: 211
Steve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond repute
Re: Gear Tooth Sensor

Quote:
Originally Posted by Bomberofdoom View Post

I think I might have a question about the "two sensors" thing. I belive the GTS has those "two sensors" (as in Phase A and Phase B) inside them, is that correct?
NO... the Gear Tooth sensor only give ONE signal. The Quadrature output refers to a device that can give two signals with one being 90 degrees from the other. IF you could use TWO GTS sensors and align one so that it peaks 90 degrees after the other then you could use the Quad scheme for direction.
Single GTS is intended to give you theoretical distance traveled on a wheel but you keep track of direction by knowing WHICH direction you are driving the motor.
IN other words if my PWM is > 127 and I get a signal I add to my counter... < 127 and I get a signal then I subtract from the count. Same with a relay driving a motor. if the forward direction is set and the interrupt occurs you add to the count...well you get the idea.
Rotary optical encoder have two sensors built in at 90 degree offsets so they are very accurate and directional information comes from knowing what the previous state was... or in hardware by using a simple flipflop. clocked by the A phase. (See the banebot encoder schematic for their divider page 5 of the manual http://banebots.com/pc/ELECTRONICS/EN-A0001-KT )
Now ALL this tells you how much the motor and wheel have rotated but do not take into account slippage of the wheel to the ground, so one more "fly in the ointment" ( Where do we get these old sayings anyway? )

OK that's my piece for now

Steve
  #39   Spotlight this post!  
Unread 27-12-2007, 13:07
Uberbots's Avatar
Uberbots Uberbots is offline
Mad Programmer
AKA: Billy Sisson
FRC #1124 (ÜberBots)
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Avon
Posts: 739
Uberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond reputeUberbots has a reputation beyond repute
Re: Gear Tooth Sensor

Quote:
Originally Posted by Steve_Alaniz View Post
NO... the Gear Tooth sensor only give ONE signal. The Quadrature output refers to a device that can give two signals with one being 90 degrees from the other. IF you could use TWO GTS sensors and align one so that it peaks 90 degrees after the other then you could use the Quad scheme for direction.
Single GTS is intended to give you theoretical distance traveled on a wheel but you keep track of direction by knowing WHICH direction you are driving the motor.
IN other words if my PWM is > 127 and I get a signal I add to my counter... < 127 and I get a signal then I subtract from the count. Same with a relay driving a motor. if the forward direction is set and the interrupt occurs you add to the count...well you get the idea.
assuming a momentum-less world, are we?
__________________
A few of my favorite numbers:
175 176 177 195 230 558 716 1024 1071 1592 1784 1816
RPI 2012
BREAKAWAY
  #40   Spotlight this post!  
Unread 27-12-2007, 15:28
Steve_Alaniz Steve_Alaniz is offline
Registered User
FRC #2848 (All Sparks)
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 1997
Location: Dallas
Posts: 211
Steve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond reputeSteve_Alaniz has a reputation beyond repute
Re: Gear Tooth Sensor

Ah! I see what you are saying... you kill power but the bot still rolls. Well ok you have to "remember" which direction you were rolling and allow the bot to come to a complete stop... before changing direction with a single GTS. Yes in that case Quad is preferable.
But probably not a problem with something like positioning an arm.
In any case... this is still a "dead reckoning" scheme so it's an approximation anyway. (If it were easy it wouldn't be worth doing. )

In an aside... to obtain Quad with GTS... one suggestion has been that :
1) using a gear with an odd number of teeth.
2) using two GTS
3) IF you carefully position them at 90 degrees to the gear center, you get a 90 degree phase shift and can treat them as an A B phased encoder.
I haven't done the math on this but it seems plausible.

Steve
  #41   Spotlight this post!  
Unread 29-12-2007, 02:29
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: Gear Tooth Sensor

Quote:
Originally Posted by Steve_Alaniz View Post
3) IF you carefully position them at 90 degrees to the gear center, you get a 90 degree phase shift and can treat them as an A B phased encoder.
I haven't done the math on this but it seems plausible.
Steve
If you did this, you WOULD actually get a quadrature signal that should work with Kevin Watson's encoder code out of the box.

Has anyone actually done this? My gut feeling is that the trouble of mounting and keeping two GTSs aligned out of phase would be more trouble than just using an encoder.

I'd love to hear from anyone who's done this with the kit GTSs though!
  #42   Spotlight this post!  
Unread 09-01-2008, 21:03
Mike Bennett Mike Bennett is offline
Registered User
FRC #1918
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Fremont, Michigan
Posts: 5
Mike Bennett is an unknown quantity at this point
Re: Gear Tooth Sensor

I have been wiring up the Gear Tooth sensor boards and found that there are two of them but the labeling on one has J1 & J2 while the other has J4 & J5.

We have two sets and I found that the J4 & J5 sensor boards do not work while the two J1 & J2 sensor boards work.

What is the difference?
  #43   Spotlight this post!  
Unread 09-01-2008, 22:35
Sunshine's Avatar
Sunshine Sunshine is offline
Mr. S
FRC #2062 (C.O.R.E)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Wisconsin
Posts: 482
Sunshine is a splendid one to beholdSunshine is a splendid one to beholdSunshine is a splendid one to beholdSunshine is a splendid one to beholdSunshine is a splendid one to beholdSunshine is a splendid one to beholdSunshine is a splendid one to beholdSunshine is a splendid one to behold
Re: Gear Tooth Sensor

Is this what you are looking for?

Try This
__________________
C.O.R.E. Community Of Robotic Engineers
2015 Wisconsin Regional Champs, Safety Award
2015 Midwest Regional Champs, Safety Award, Industrial Controls Award
2014 Midwest Regional Judges Award
2013 Lake Superior Champs
2012 World Championship Safety Award, World Finalist for the Autodesk Award
2011 Wisconsin Regional - Website Award 10,000 Lakes - Innovation in Control, Safety Award
2010 World Championship - Archimedes Semi-Finalists -World Finalist for the Autodesk Award
2010 10,000 Lakes Regional Champs, Entrepreneurship Award; Wisconsin Regional- Entrepreneurship Award, Safety Award
2009 WI Regional- Quality Award, Safety Award 10,000 Lakes - Safety Award, Motorola Quality Award, Animation Award
2008 World Championship Safety Award
2008 Wisconsin Regional Champs, Safety Award
2008 St. Louis Regional Entrepreneurship Award, Safety Award, Website Award
2007 Wisconsin Regional All-Star Rookie Award
  #44   Spotlight this post!  
Unread 15-01-2008, 21:02
macpanes's Avatar
macpanes macpanes is offline
C.E.O.
AKA: Marko
FRC #2590 (Nemesis)
Team Role: Driver
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Robbinsville, NJ
Posts: 6
macpanes will become famous soon enoughmacpanes will become famous soon enough
Send a message via AIM to macpanes
Re: Gear Tooth Sensor

We know how to wire our gear tooth sensor, but how do we put the wires through the gearbox to the board. Anyone have any solutions to sending the wires through the gear box to the board, is there a certain way to run the wires?
  #45   Spotlight this post!  
Unread 15-01-2008, 21:35
comphappy comphappy is offline
Registered User
AKA: Brennan Ashton
FRC #2605 (A2D_16)
Team Role: Leadership
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Bellingham, WA
Posts: 157
comphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to beholdcomphappy is a splendid one to behold
Send a message via AIM to comphappy
Re: Gear Tooth Sensor

Quote:
Originally Posted by slloyd View Post
our team's head programmer (GO 1221!!) got the
but, looks really tough to program. maybe need floating point math?
slloyd
Why?
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
Gear Tooth Sensor nukem Programming 9 04-02-2006 20:21
Gear Tooth Sensor Talha Electrical 1 23-01-2006 21:29
Gear Tooth Sensor AMIRAM Electrical 2 22-01-2006 04:09
Gear Tooth Sensor Question (InsrtNameHere) Electrical 2 20-01-2006 02:19
Gear tooth sensor issues Nine9cracker Electrical 2 17-01-2006 02:37


All times are GMT -5. The time now is 02:07.

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