Go to Post Success to me is a feeling that is associated with achieving something you truly worked hard for; something that you can look at and say "That's my best work." - OneAngryDaisy [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 17-02-2007, 23:39
spinmunky's Avatar
spinmunky spinmunky is offline
Mechanical/Photographer/Photoshoper
AKA: LJ (Little John)
FRC #0100 (The Wildhats)
Team Role: Driver
 
Join Date: Nov 2005
Rookie Year: 2005
Location: Redwood City, California
Posts: 85
spinmunky will become famous soon enough
Send a message via AIM to spinmunky Send a message via MSN to spinmunky Send a message via Yahoo to spinmunky
Re: Gear Tooth Sensor Help

are you sure it's programming issues? i don't know much about sensors but if that gear tooth sensor is one of the magnetic field ones i won't work on non magnetic metals. i don't know if this helps at all. just giving my input and trying to help.
__________________
"FIRST is like the WWF, but for smart people" -George Herbert Walker Bush
  #2   Spotlight this post!  
Unread 18-02-2007, 00:02
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Re: Gear Tooth Sensor Help

Quote:
Originally Posted by spinmunky View Post
are you sure it's programming issues? i don't know much about sensors but if that gear tooth sensor is one of the magnetic field ones i won't work on non magnetic metals.
Namely, aluminum.

The kit GTS are hall effect sensors. They require a magnetic metal to work.
  #3   Spotlight this post!  
Unread 18-02-2007, 01:05
lightning_blast lightning_blast is offline
Registered User
FRC #1814
 
Join Date: Feb 2006
Location: Canada
Posts: 15
lightning_blast is an unknown quantity at this point
Re: Gear Tooth Sensor Help

we tried the gears that was on the mabuchi motors, do those work?
  #4   Spotlight this post!  
Unread 18-02-2007, 09:34
purduephotog purduephotog is offline
Active Defense Design Engineer
AKA: Jason
FRC #3015
Team Role: Leadership
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Rochester, NY
Posts: 162
purduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the roughpurduephotog is a jewel in the rough
Send a message via AIM to purduephotog
Re: Gear Tooth Sensor Help

Quote:
Originally Posted by lightning_blast View Post
we tried the gears that was on the mabuchi motors, do those work?
We had to move out GTS around to find it would work on IO pin 2 from the default code.

The first one we wired up didn't work at all.

Do you have 12V to the power ? I see you have two PWM cables hooked up...
  #5   Spotlight this post!  
Unread 18-02-2007, 10:15
BLP BLP is offline
Registered User
FRC #1943
 
Join Date: Feb 2007
Location: Israel
Posts: 2
BLP is an unknown quantity at this point
Re: Gear Tooth Sensor Help

What code did you use from Kevin's site?

I'm using the encoders code from his site but im only getting it to work on the first and second input and also only when rotating in one direction...

I've read the readme that was included and still nothing works...

I've wired the J2 part to the digital inputs and J1 to a circuit breaker for the 12V and still it doesn't work properly...

Any help will be appreciated,

Thanks

Last edited by BLP : 18-02-2007 at 10:43.
  #6   Spotlight this post!  
Unread 18-02-2007, 11:42
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 Help

Quote:
Originally Posted by BLP View Post
I'm using the encoders code from his site but im only getting it to work on the first and second input and also only when rotating in one direction...
The GTS signal doesn't have a Phase B, so using it with code intended for quadrature encoders is not always going to work. Specifically, the first two inputs can deal with it because they only trigger on one edge of the signal, but the other four will trigger on both edges and think the encoder is moving slightly back and forth at one spot. Since there's no information on direction from the GTS, you'll always count up (or down, depending on defaults) no matter which way the gears are turning.

If you must use digital inputs 3-6, you'll have to remove a lot of the code in the interrupt service routine that deals with relationships between the two phases of a quadrature signal.
Quote:
I've wired the J2 part to the digital inputs and J1 to a circuit breaker for the 12V and still it doesn't work properly...
The digital inputs? There's only one digital signal from the GTS.
  #7   Spotlight this post!  
Unread 18-02-2007, 12:16
BLP BLP is offline
Registered User
FRC #1943
 
Join Date: Feb 2007
Location: Israel
Posts: 2
BLP is an unknown quantity at this point
Re: Gear Tooth Sensor Help

Quote:
Originally Posted by Alan Anderson View Post
The GTS signal doesn't have a Phase B, so using it with code intended for quadrature encoders is not always going to work. Specifically, the first two inputs can deal with it because they only trigger on one edge of the signal, but the other four will trigger on both edges and think the encoder is moving slightly back and forth at one spot. Since there's no information on direction from the GTS, you'll always count up (or down, depending on defaults) no matter which way the gears are turning.

If you must use digital inputs 3-6, you'll have to remove a lot of the code in the interrupt service routine that deals with relationships between the two phases of a quadrature signal.

The digital inputs? There's only one digital signal from the GTS.
Oh yeah, was a typo hehe, I meant to a single input.

The reason I wanted the 3rd input is because the readme says they are better for getting position.

Anyway I got it to work but it counts only once every 3 teeth, it's really strange
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 Nathan Programming 4 12-01-2008 15:09
Gear Tooth Sensor? Raikon Kit & Additional Hardware 3 09-02-2007 16:40
Gear Tooth Sensor nukem Programming 9 04-02-2006 20:21
Help with Gear Tooth Sensor RedOctober Electrical 3 27-01-2006 18:38
Gear Tooth Sensor Talha Electrical 1 23-01-2006 21:29


All times are GMT -5. The time now is 04:48.

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