Go to Post I am a 2-3 year competition veteran, and a new member at chief delphi, and everyone here seems to be as nice as they are at the competition. Very gracious, you might say. - Ian S. [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2012, 21:17
iambujo iambujo is offline
Mentor
FRC #2729 (Storm)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: NJ
Posts: 84
iambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to all
Hall Effect Latch as an encoder/counter?

Hello -
I have been looking at other methods to count rotational speed of a wheel, in this case of a wheel could be spinning at 50+ Hz. Those US Digital KOP sensors have their place, but can be hard to work with if they are not going on a COTS transmission/gearbox with the correct size shaft already available. I am not concerned about direction.

We first looked at the Rotary magnetic encoder in the FIRST Choice parts this year, but that isn't going to work based on the data sheet. It provides angle based on the orientation of the magnet's poles, and I don't think it would be realistic to sample it at a high enough frequency to catch a desired analog value or PWM width.

I had some Melexis US1881 Hall-Effect latches sitting in my bin of goodies and figured they might work as long as their switching speeds were fast enough and they were sensitive enough. We bench tested today with a CIM and two magnets (one north oriented, the other south 180 degrees seperate on the hub). We spun up the motor and got a perfect square wave on the logic analyzer over the whole range of RPMs. The thought is to just pass this output into a digital input, run the wpilib counter and timer functions on it and calculate frequency.

So this brings me to my question - has anyone done this before successfully on a competition system? It seems to work great as a bench test proof of concept. The biggest concern I have is ensuring we mount the magnets safely on the wheel. I looked through the robot rules manual and didn't see anything excluding the use of magnets (in general or in a manner such as this).

Any thoughts (good or bad)?
Reply With Quote
  #2   Spotlight this post!  
Unread 16-01-2012, 21:45
Jim Wilks Jim Wilks is offline
Electrical Engineer
AKA: Jim Wilks
FRC #1360 (Orbit Robotics)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Oakville, ON
Posts: 1,186
Jim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond reputeJim Wilks has a reputation beyond repute
Re: Hall Effect Latch as an encoder/counter?

Excellent example of improvisation!
Reply With Quote
  #3   Spotlight this post!  
Unread 19-01-2012, 08:38
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Hall Effect Latch as an encoder/counter?

We are trying a similar device. K&J Magnetics has diametrically magnetized neodymiums that work well. Usually require a pull up resistor.
Reply With Quote
  #4   Spotlight this post!  
Unread 19-01-2012, 10:07
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Hall Effect Latch as an encoder/counter?

Have you looked into reed switches? We were thinking about using them as limit switches -- that way, we could directly connect them to the jaguar's limit switch pins.
Reply With Quote
  #5   Spotlight this post!  
Unread 19-01-2012, 10:12
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,795
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 Latch as an encoder/counter?

Iam,
There doesn't seem to be any rule that would prevent this application. I would tender that answer with a caveat to insure that magnets do not come loose on the wheels. Traversing the barrier is going to put a lot of stress on wheels and typical plastic hubs will take the brunt of the shock causing deflection and breakage. Should your magnets find their way into a competitors robot during competition, there could be nasty results. While the hall effect sensors meant for the transmission are difficult to use, they do produce significant resolution when used on the high side of the reduction.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #6   Spotlight this post!  
Unread 19-01-2012, 10:24
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,023
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Hall Effect Latch as an encoder/counter?

That sounds like a neat way to do it. I didn't know they made such a thing as a Hall-effect latch.

http://search.digikey.com/us/en/prod...1EUA-ND/431867

(obviously we're trying to figure out how to do the same thing you are!)
Reply With Quote
  #7   Spotlight this post!  
Unread 19-01-2012, 21:26
BitTwiddler's Avatar
BitTwiddler BitTwiddler is offline
electronics/programming mentor
AKA: Mr Tanguay
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Oct 2008
Rookie Year: 2006
Location: Sierra Vista, AZ
Posts: 251
BitTwiddler is on a distinguished road
Re: Hall Effect Latch as an encoder/counter?

In 2009 we used one of these on our turret.
http://search.digikey.com/us/en/prod...2021-ND/701375


It's designed for counting gear teeth but any ferrous material passing by it will trigger a detection. We counted the number of times a screw head mounted on the end of our roller/shooter would zip by the sensor.
Reply With Quote
  #8   Spotlight this post!  
Unread 19-01-2012, 21:46
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Hall Effect Latch as an encoder/counter?

Our programmers are having trouble with the timing concept but have it for distance traveled. Have not tried it for the shooter. May go the analog route for the shooter.
Reply With Quote
  #9   Spotlight this post!  
Unread 20-01-2012, 17:57
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,023
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Hall Effect Latch as an encoder/counter?

I ordered a couple of the latching hall effect sensors to play with.
Reply With Quote
  #10   Spotlight this post!  
Unread 20-01-2012, 21:11
iambujo iambujo is offline
Mentor
FRC #2729 (Storm)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: NJ
Posts: 84
iambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to all
Re: Hall Effect Latch as an encoder/counter?

Squirrel - that's the part I have had good luck with. I got it from sparkfun.

Al - We are looking to use this on a flywheel (hint hint). So I hope it won't take as much abuse as a drive-train wheel, but it will be spinning faster so loose parts would be even more dangerous. If we can't be sure we can attach safely we will certainly abandon the idea for this application.

As for a reed switch. I have never used one. They contact due to magnetic field detection, but it is a mechanical motion right? So I was concerned about lifespan (how many times are they design to switch) and switching speed. I am certainly curious if someone thinks they can work for this as well.

I really like the looks of that Honeywell sensor mentioned above. That's a pretty steep price compared to the hall latch (under $1), but if it provides a simple and stable solution it's certainly worth trying out.

I love FRC build season - it really gets the brain going non stop!
Reply With Quote
  #11   Spotlight this post!  
Unread 21-01-2012, 08:49
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: Hall Effect Latch as an encoder/counter?

We put a 1/2 x 1/8" N52 neodymium magnet on the end of our shaft and get good readings out to 3/8" gap. Good non-contact sensing device.
Reply With Quote
  #12   Spotlight this post!  
Unread 22-01-2012, 09:26
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,795
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 Latch as an encoder/counter?

Reed switches might work for your application but they are notorious for generating noise (contact bounce) so you need to take appropriate steps for accurate readings.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #13   Spotlight this post!  
Unread 25-01-2012, 07:38
iambujo iambujo is offline
Mentor
FRC #2729 (Storm)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: NJ
Posts: 84
iambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to all
Re: Hall Effect Latch as an encoder/counter?

FYI - I have done a PCB layout using expresspcb.com's service and the boards should be in tomorrow. If all goes well we are considering ordering a larger batch to sell kits/assembled units for those not 'in the market' of developing their own sensors. Would anyone be interested?
Reply With Quote
  #14   Spotlight this post!  
Unread 26-01-2012, 21:49
iambujo iambujo is offline
Mentor
FRC #2729 (Storm)
Team Role: Mentor
 
Join Date: Feb 2008
Rookie Year: 2008
Location: NJ
Posts: 84
iambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to alliambujo is a name known to all
Re: Hall Effect Latch as an encoder/counter?

And here is the assembled and functioning PCB. It is about 1.75"x.75". Hope it works out our pitcher this year! I used expresspcb.com's SW to do the layout and used their protoboard service for the board manufacturing.

We have not tried interfacing it to SW yet, I hope to on Saturday.

squirrel - If you don't mind me asking - was your team able to use encoder lib calls from WPI or did you have to build your own timer/counter algorithm for the hall latch?
Attached Thumbnails
Click image for larger version

Name:	IMG_5680.JPG
Views:	167
Size:	385.8 KB
ID:	11592  
Reply With Quote
  #15   Spotlight this post!  
Unread 26-01-2012, 22:43
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,023
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Hall Effect Latch as an encoder/counter?

I don't know of having got that far yet, we got the sensor wired up and working but haven't actually tested it with running motor...hopefully first thing tomorrow afternoon we'll get working on it, since we finally got the new shooter (with a place to put the sensor and magnet) put together tonight.
Reply With Quote
Reply


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


All times are GMT -5. The time now is 17:38.

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