Go to Post Although I don't agree with the ref's call...we accept it because a ref's call is a final call. - David Guzman [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 29-01-2005, 13:09
pakrat pakrat is offline
Rich Ross
no team (The Rat Pack)
Team Role: Alumni
 
Join Date: May 2004
Rookie Year: 2003
Location: Ann Arbor
Posts: 328
pakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nice
Send a message via AIM to pakrat
Hall Sensor working?

We have the ATS665LSG encoders, and we can't get them to work... Are they just digital ins?? Could someone give me a print statement that has a way of displaying whether its working.. Thanks in advance
__________________
  #2   Spotlight this post!  
Unread 29-01-2005, 13:14
Thadanator's Avatar
Thadanator Thadanator is offline
Program/Electric/Driver/Website/etc
AKA: Walking Disaster
#1188 (Oaktown Crewz)
Team Role: Programmer
 
Join Date: Feb 2004
Location: Royal Oak, MI
Posts: 11
Thadanator is an unknown quantity at this point
Send a message via AIM to Thadanator
Re: Hall Sensor working?

Yeah, i'm having big problems too.
They are analog ins. I cannot get them to output usable data.
no matter where they are when I start the program, they just float around 0 and 1. Sometimes the value starts at like 50, then every second it drops by like 1 or 2.
but if i move the sensor, it goes back to 0, and once it's at 0, i cant get it any higher than 1.

theres no consistancy, what kind of value should i be gettnig frmo a working hall effect?
__________________

1188 - Oaktown Crewz
Programmer, electrician, website, driver, and of course builder.
¤ It aint no thang but a chicken wang ¤
</Stupidness>
  #3   Spotlight this post!  
Unread 29-01-2005, 13:49
pakrat pakrat is offline
Rich Ross
no team (The Rat Pack)
Team Role: Alumni
 
Join Date: May 2004
Rookie Year: 2003
Location: Ann Arbor
Posts: 328
pakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nice
Send a message via AIM to pakrat
Re: Hall Sensor working?

well, we just got it to work digitally, but you have to be pretty close, it should switch between 1 and 0. Thanks anyways guys, i guess we solved our own problem.
__________________
  #4   Spotlight this post!  
Unread 29-01-2005, 13:59
Hieb Hieb is offline
Registered User
no team
Team Role: Teacher
 
Join Date: Mar 2004
Rookie Year: 2004
Location: St. Louis, MO
Posts: 125
Hieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to behold
Re: Hall Sensor working?

The Hall Effect Sensor should output a digital signal. According to the documentation, it converts its analog signal to digital before output. It also appears that it should be positioned between .5 and 2.5 mm from the gear. We just finally mounted ours Thursday night, and it was able to reliably detect the teeth, although we have yet to incorporate it into our code.
  #5   Spotlight this post!  
Unread 30-01-2005, 00: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: Hall Sensor working?

Quote:
Originally Posted by Thadanator
Yeah, i'm having big problems too.
They are analog ins. I cannot get them to output usable data.
no matter where they are when I start the program, they just float around 0 and 1. Sometimes the value starts at like 50, then every second it drops by like 1 or 2.
but if i move the sensor, it goes back to 0, and once it's at 0, i cant get it any higher than 1.
No, they produce digital signals. But the signals are just a transistor switched to ground, so unless there is a pullup to +5 volts, you will read either an essentially random (and decaying) voltage or ground on the RC analog inputs.

The RC digital inputs provide a +5 pullup resistor, so they're all ready to handle the Allegro gear tooth sensor with no additional components. (The application note strongly suggests filters on the supply and the output, but you can ignore them if you're not concerned about electrical noise.)
  #6   Spotlight this post!  
Unread 30-01-2005, 10:27
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,560
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Hall Sensor working?

Quote:
Originally Posted by Alan Anderson
No, they produce digital(The application note strongly suggests filters on the supply and the output, but you can ignore them if you're not concerned about electrical noise.)
I looked at the output on our 100mhz scope and did not see any noticeable noise when the sensor was looking at the output sprocket of the kit gearbox. The sensor was on the end of a 36" PWM cable. It may be worse if you tried it on one of the internal gears that moved a lot faster.
  #7   Spotlight this post!  
Unread 30-01-2005, 12:03
pakrat pakrat is offline
Rich Ross
no team (The Rat Pack)
Team Role: Alumni
 
Join Date: May 2004
Rookie Year: 2003
Location: Ann Arbor
Posts: 328
pakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nice
Send a message via AIM to pakrat
Re: Hall Sensor working?

Do you have to have interrupts?? or is the fast loop fast enough??
__________________
  #8   Spotlight this post!  
Unread 30-01-2005, 12:25
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Hall Sensor working?

all you need to do is set the counting part of your program in user_routines_fast.c this is plenty fast enough... no need for interupts... (we didn't need them....) it counted almost everytooth on the last stage gear in the stock tranny running at full speed....

for the code do something really simple like

Code:
////in variables section
int numteeth=0; //num of teeth
int lastreading=0;

/// in code
if((rc_dig_in01-lastreading)!=0)  // if the value of the sensor changes then......
{
numteeth++;  // add one to teeth count....
}
lastreading=rc_dig_in01;
also this will count from going from the valley before the tooth to the tooth and then from the tooth to the valley after the tooth... so the tooth count will be double ... but this is better...more resolution (half a tooth is more resolution than you can use anyways!)
__________________
Team 701
  #9   Spotlight this post!  
Unread 30-01-2005, 12:28
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Hall Sensor working?

YES... if you move the counter you need to reset there is a automatic calibration... this is okay to move the sensor if your using a sprocket or something... but if you are using a gear...NO NO NO... get that thing mounted EXTREMELY stable... with in 3-4 mm of the gear teeth... it will not read if it is out of appx. that range.
__________________
Team 701
  #10   Spotlight this post!  
Unread 30-01-2005, 14:04
pakrat pakrat is offline
Rich Ross
no team (The Rat Pack)
Team Role: Alumni
 
Join Date: May 2004
Rookie Year: 2003
Location: Ann Arbor
Posts: 328
pakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nice
Send a message via AIM to pakrat
Re: Hall Sensor working?

We'r eusign it on the last sprocket (the one on our wheel) that came with the kitbot. It seems to not count all of the teeth, unless its going pretty slow...
__________________
  #11   Spotlight this post!  
Unread 29-01-2005, 22:04
bigqueue bigqueue is offline
Registered User
#0811 (A.R.C.)
 
Join Date: Dec 2001
Location: Nashua, NH
Posts: 231
bigqueue will become famous soon enough
Send a message via AIM to bigqueue Send a message via Yahoo to bigqueue
Re: Hall Sensor working?

Ys, we have them working.....and he trick I was not aware of until I "READ THE SPEC" was that they do a self-calibration when you power them on....that is, if they are not powered on "in position", they do not get the magnetic lay of the land and do not sense teeth too well.

(if that makes sense to anyone)
__________________
Live free or die....
  #12   Spotlight this post!  
Unread 30-01-2005, 15:07
pakrat pakrat is offline
Rich Ross
no team (The Rat Pack)
Team Role: Alumni
 
Join Date: May 2004
Rookie Year: 2003
Location: Ann Arbor
Posts: 328
pakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nice
Send a message via AIM to pakrat
Re: Hall Sensor working?

Well, i tried that stuff, and it still wo't work, where did you guys mount your sensors?? maybe thats our mistake....
__________________
  #13   Spotlight this post!  
Unread 30-01-2005, 20:56
Salik Syed Salik Syed is offline
Registered User
FRC #0701 (RoboVikes)
Team Role: Alumni
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Stanford CA.
Posts: 514
Salik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud ofSalik Syed has much to be proud of
Send a message via AIM to Salik Syed
Re: Hall Sensor working?

Thats odd... it seemed on our robot to count all teeth on the sprocket even at full speed! ....
remember the sensor needs to be fairly stable ... you guys aren't just holding it near the teeth to test or anything like that right? (cuz we tried that !)

try running some code that will stop the motors after the count reaches a certain number (like the 2Xnumber of teeth on the sprocket...) at full speed the motors will of course not stop in time... but you can see how many extra revolutions the sprocket made.... and then see if its ballpark with in the count value....

are you printf the count value? also keep the sensor about 10-15 mm away from the SPROCKET (with gears its different) try different things till it works...
__________________
Team 701
  #14   Spotlight this post!  
Unread 30-01-2005, 21:29
pakrat pakrat is offline
Rich Ross
no team (The Rat Pack)
Team Role: Alumni
 
Join Date: May 2004
Rookie Year: 2003
Location: Ann Arbor
Posts: 328
pakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nicepakrat is just really nice
Send a message via AIM to pakrat
Re: Hall Sensor working?

We have it there with a bracket, but it's probobaly about an inch or so away from the sprocket. with the double chips running at 2/3 speed, it goes 10 revs in "100 teethcount" . But when its at 10 off 127, it goes just about 2 revolutions counting "100 teeth" so thats a problem...
__________________
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
Hall Effect Sensor. Nixterrimus Electrical 77 29-01-2005 10:48
Hall Effect Source LaughingJack Programming 3 26-01-2005 05:28
Chairmans Award Dinner With Dean. Josh Hambright Chairman's Award 26 20-07-2004 19:05
FIRST Hall of Fame Chris Fultz Chairman's Award 2 16-04-2004 19:35
hall of fame nuggetsyl General Forum 15 05-05-2002 22:54


All times are GMT -5. The time now is 13: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