Go to Post I believe there is a strong link between a reliable drivetrain and an inspirational FIRST season. - Joe Johnson [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
  #61   Spotlight this post!  
Unread 19-01-2005, 18:44
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: Hall Effect Sensor.

Quote:
Originally Posted by Excelsior
We are having problems getting this particular sensor to work. We are currently testing it with an o-scope, and it appears that all our wiring is done correctly, but we are getting no output at all.

Any suggestions?
As noted elsewhere, the color coding is reversed from the norm. Red is ground, black is +5v. Could this be it?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #62   Spotlight this post!  
Unread 20-01-2005, 16:06
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,590
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 Effect Sensor.

Quote:
Originally Posted by Kevin Watson
As noted elsewhere, the color coding is reversed from the norm. Red is ground, black is +5v. Could this be it?

-Kevin
That issue is for the accelerometer.


Excelsior, When you tested it, how exactly did you have it hooked up electrically, and what were you trying to test?
  #63   Spotlight this post!  
Unread 20-01-2005, 16:29
Excelsior's Avatar
Excelsior Excelsior is offline
Electrical Head
AKA: Alex Hughes
None #1208 (Metool Brigade)
Team Role: Electrical
 
Join Date: Jan 2005
Rookie Year: 2003
Location: O'Fallon
Posts: 30
Excelsior is on a distinguished road
Send a message via AIM to Excelsior
Re: Hall Effect Sensor.

Quote:
Originally Posted by Joe Ross
That issue is for the accelerometer.


Excelsior, When you tested it, how exactly did you have it hooked up electrically, and what were you trying to test?
Well, we mounted it on a protoboard, and hooked up power and ground to the first and fourth pins respectively. We connected the third and fourth pins, and simply put a wire to pin two to hook up to the o-scope. We were really just testing it to make sure it was putting out a signal, and what kind of signal it put out, but we can't get anything from it. Does that help you help me?
  #64   Spotlight this post!  
Unread 20-01-2005, 20:47
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,590
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 Effect Sensor.

Quote:
Originally Posted by Excelsior
Well, we mounted it on a protoboard, and hooked up power and ground to the first and fourth pins respectively. We connected the third and fourth pins, and simply put a wire to pin two to hook up to the o-scope. We were really just testing it to make sure it was putting out a signal, and what kind of signal it put out, but we can't get anything from it. Does that help you help me?
What type of gear did you use, and how good was your rotation mechanism. Also, how close was it? Remember that it needs to see 8 teeth in a row to calibrate, and if you were just moving the gear in and out or rotating it by hand, it may not have ever been able to calibrate.
  #65   Spotlight this post!  
Unread 21-01-2005, 22:17
mschulkind mschulkind is offline
Registered User
#0395
 
Join Date: Jan 2005
Location: New York City
Posts: 2
mschulkind is an unknown quantity at this point
Re: Hall Effect Sensor.

Quote:
Originally Posted by Joe Ross
What type of gear did you use, and how good was your rotation mechanism. Also, how close was it? Remember that it needs to see 8 teeth in a row to calibrate, and if you were just moving the gear in and out or rotating it by hand, it may not have ever been able to calibrate.
You will definitely need a pullup resistor on the output line to the specified voltage range or you will not see anything useful at all on the scope. Hopefully that addition works for you.
  #66   Spotlight this post!  
Unread 21-01-2005, 23:05
Doug G's Avatar
Doug G Doug G is offline
Coach / Teacher
FRC #0701 (Robovikes)
Team Role: Coach
 
Join Date: Dec 2002
Rookie Year: 2001
Location: Fairfield, CA
Posts: 880
Doug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond reputeDoug G has a reputation beyond repute
Re: Hall Effect Sensor.

We got it up and running last night, very cool. A couple of things... We did not use pin 3 (internal connection), I bet it is a safeguard for grounding and we may hook this up and retry it soon. As far as mounting it, we made a small hole in the top of the transmission closest to the 50 tooth output gear and wired it to a piece of proto circuit board and connected it directly to the analog input on the RC via PWM cable. The sensor must get fairly close to the gear teeth, within a 2-4 mm. Also its "self adjusting" which means you can't move it once your program is running. You have to adjust it then reset the program. Also run a test program in user_routines_fast.c . I'll take a picture of our simple test setup tomorrow and post it here.
__________________
Work Hard, Have Fun, Make a Difference!

  #67   Spotlight this post!  
Unread 23-01-2005, 21:05
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: Hall Effect Sensor.

Quote:
Originally Posted by Excelsior
We are having problems getting this particular sensor to work. We are currently testing it with an o-scope, and it appears that all our wiring is done correctly, but we are getting no output at all.
I wired up one of our Allegro sensors with a couple of capacitors and resistors on a teeny bit of proto-board. After a false start trying to test it out with a gear having too-small teeth, our sensor was working great Saturday morning. It seemed quite happy with the gears in an AndyMark shifter, which means it should work fine with the similar gears in a kit gearbox as well (our kit gearboxes are installed on the kit chassis and would be rather inconvenient to open up for testing).

Hoever, after lunch on Saturday, it wasn't working any more. I replaced the sensor with the other one, and it didn't work either. I had a couple of students double-check the wiring to make sure it matched the documentation. I took it apart and reassembled everything in a nicer arrangement with a PWM connector. They still didn't work. They haven't worked since. I can't figure out why. I am discouraged. We will probably use something else to measure the robot's speed.
Quote:
Any suggestions?
Sorry, no.
  #68   Spotlight this post!  
Unread 23-01-2005, 22:02
Sparks333's Avatar
Sparks333 Sparks333 is offline
Robotics Engineer
AKA: Dane B.
FRC #1425 (Wilsonville Robotics)
Team Role: Alumni
 
Join Date: Feb 2004
Rookie Year: 2003
Location: Wilsonville, Oregon
Posts: 184
Sparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of lightSparks333 is a glorious beacon of light
Send a message via AIM to Sparks333
Re: Hall Effect Sensor.

Alan,
If it were me, I'd check to make sure the gear is rotating in the way described in the datasheet (I think it's so the flat part on the top is pointing away from the middle of the gear. Check the datasheet to be sure.) I hooked up our hall-effect to a proto-board and it wouldn't do anything until the gear was positioned correctly. By the way, I will test some more, but I couldn't get much of a duty cycle change out of the hall effect sensor by changing directions. I may do more testing on this, but as of now, it's software's problem
Keep us updated.

Sparks
__________________
ICs do weird things when voltage is run out of spec.

I love to take things apart. The fact that they work better when I put them back together it just a bonus.

http://www.ravenblack.net/random/surreal.html
  #69   Spotlight this post!  
Unread 24-01-2005, 22:56
Chet Urata Chet Urata is offline
Registered User
#0359
 
Join Date: Jan 2005
Location: Hawaii
Posts: 4
Chet Urata is an unknown quantity at this point
Re: Hall Effect Sensor.

Pardon my ignorance, but can't you tell direction by how you are controlling the motors? Aside from determining if you are getting pushed in the wrong direction by another robot, what is the purpose of using the encoders for determining direction?

I was just informed of the fact (at least for our setup) that if you fully power motors for each side to make the robot go forward, that the motor for one side will be going running "forward" while the other will be going in reverse. I was told the motor going forward will run slightly faster than the one going in reverse meaning that the robot will tend to angle off of a straight path.

If what I was told is correct, using an encoder on each side (rather than two on one side) would allow you to determine if this is happening. Also, as mentioned elsewhere, this could replace dead reckoning.

c h e t !
  #70   Spotlight this post!  
Unread 25-01-2005, 09:14
Unsung FIRST Hero
Matt Leese Matt Leese is offline
Been-In-FIRST-Too-Long
FRC #1438 (The Aztechs)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1998
Location: Long Beach, CA
Posts: 937
Matt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond reputeMatt Leese has a reputation beyond repute
Send a message via AIM to Matt Leese
Re: Hall Effect Sensor.

Quote:
Originally Posted by Chet Urata
Pardon my ignorance, but can't you tell direction by how you are controlling the motors? Aside from determining if you are getting pushed in the wrong direction by another robot, what is the purpose of using the encoders for determining direction?

I was just informed of the fact (at least for our setup) that if you fully power motors for each side to make the robot go forward, that the motor for one side will be going running "forward" while the other will be going in reverse. I was told the motor going forward will run slightly faster than the one going in reverse meaning that the robot will tend to angle off of a straight path.

If what I was told is correct, using an encoder on each side (rather than two on one side) would allow you to determine if this is happening. Also, as mentioned elsewhere, this could replace dead reckoning.

c h e t !
For the CIM motors, they run the same speed forwards and backwards. We did a little experimentation with it last Saturday.
  #71   Spotlight this post!  
Unread 25-01-2005, 09:33
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: Hall Effect Sensor.

Quote:
Originally Posted by Chet Urata
I was just informed of the fact (at least for our setup) that if you fully power motors for each side to make the robot go forward, that the motor for one side will be going running "forward" while the other will be going in reverse. I was told the motor going forward will run slightly faster than the one going in reverse meaning that the robot will tend to angle off of a straight path.
That was only significant with the drill motors used in past years. The motors in this year's kit of parts don't have a "forward/reverse" bias that makes a real difference.

Still, having feedback on the actual motor speed is important if you do want to control things well.
  #72   Spotlight this post!  
Unread 25-01-2005, 09:49
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,798
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Hall Effect Sensor.

Quote:
Originally Posted by Chet Urata
Pardon my ignorance, but can't you tell direction by how you are controlling the motors? Aside from determining if you are getting pushed in the wrong direction by another robot, what is the purpose of using the encoders for determining direction?

I was just informed of the fact (at least for our setup) that if you fully power motors for each side to make the robot go forward, that the motor for one side will be going running "forward" while the other will be going in reverse. I was told the motor going forward will run slightly faster than the one going in reverse meaning that the robot will tend to angle off of a straight path.

If what I was told is correct, using an encoder on each side (rather than two on one side) would allow you to determine if this is happening. Also, as mentioned elsewhere, this could replace dead reckoning.

c h e t !
What happens when you stop controlling the motor? What happens when your robot is pushed from behind while running full out or from in front by a more powerful robot? If you are going to add sensors, take it to the full extent and get usable data for your software. Speed and direction are essential to determine where you are in relation to where you once were.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
  #73   Spotlight this post!  
Unread 25-01-2005, 11:00
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,862
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Hall Effect Sensor.

Quote:
Originally Posted by Chet Urata
Pardon my ignorance, but can't you tell direction by how you are controlling the motors? Aside from determining if you are getting pushed in the wrong direction by another robot, what is the purpose of using the encoders for determining direction?
Just to chime in, I have another common example.

-Drive your robot forward and it's no great problem determining direction.
-Now cut all power and coast to a stop.
-You can assume your motors are still going in the last direction commanded, but when is that over? The robot will coast forward, but if it bumps into a wall/goal/robot and drifts backwards the s/w will think the robot is a foot further in one direction when it is actually a foot further back (that's a location error of two feet in this example).
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #74   Spotlight this post!  
Unread 25-01-2005, 13:27
Chet Urata Chet Urata is offline
Registered User
#0359
 
Join Date: Jan 2005
Location: Hawaii
Posts: 4
Chet Urata is an unknown quantity at this point
Re: Hall Effect Sensor.

Thanks to all who replied!

First, thanks for the info on the motors. Armed with your information, we will check ours to see if they get the same results.

Regarding Mr. McLeod's comments, good example! You are right about the double error. You made me realize that the accelerometer combined with the gyro would help in the situation you mentioned.

Regarding Mr. Skierkiewicz' comments, while you also are correct, I wasn't clear in that I am not against using the encoders but was wondering if they wouldn't be better used - if you only have two - with one on each side of the vehicle. With the accelerometer and gyro you should then be able to tell direction. Slippage, of course, nullifies the encoders, which might happen if you are being pushed opposite the direction of your motors.

I could be wrong, but it seems to me that with only two encoders plus the gyro and the accelerometer, you would get more information with the encoders on different sides than you would by mounting both on the same side. With mounting on opposite sides, you can count teeth on both sides, yielding distance and difference in speed between the two sides (again, not counting slippage).

c h e t !
  #75   Spotlight this post!  
Unread 25-01-2005, 14:52
jacob_dilles's Avatar
jacob_dilles jacob_dilles is offline
Registered User
AKA: theshadow
FRC #0620 (WarBots)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2003
Location: Vienna, VA
Posts: 245
jacob_dilles will become famous soon enough
Send a message via AIM to jacob_dilles
Re: Hall Effect Sensor.

Quote:
Originally Posted by Chet Urata
I could be wrong, but it seems to me that with only two encoders plus the gyro and the accelerometer, you would get more information with the encoders on different sides than you would by mounting both on the same side. With mounting on opposite sides, you can count teeth on both sides, yielding distance and difference in speed between the two sides (again, not counting slippage).
In theory you are correct – both sides are better then just one and you should be able to tell what direction the robot is going with an accelerometer. It reality though, having 2 sensors makes everything easier (you don’t have to integrate acceleration data, which may be controlled by a separate processor), and since the kit only supplies 2, most teams will only have 1 side equipped with sensors. If the kit came with 4 or more sensors, you would see people put 2 on each side.

Hope this answers your question
__________________
--------------------------
"You're not a real programmer until all your sentences end with semicolons;"
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
Making a Sensor Board SpaceOsc Technical Discussion 11 15-05-2004 12:46
heres the code. y this not working omega Programming 16 31-03-2004 15:18
Banner Sensor Programming Problem 2Crisis Programming 4 24-02-2004 13:40
IR sensor trouble D.Viddy Electrical 2 30-01-2004 09:49
Quick Optical Sensor Question zorro Technical Discussion 10 21-01-2003 06:39


All times are GMT -5. The time now is 18:08.

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