Go to Post I mean, there is a 40 second period where your alliance has to play defense, so you might as well play it well. - Jeff Rodriguez [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 16-01-2013, 13:11
bhughes bhughes is offline
Registered User
no team
 
Join Date: Jan 2013
Rookie Year: 1999
Location: Michigan
Posts: 24
bhughes is on a distinguished road
Hall Effect Sensors

Where could I find FRC legal hall effect sensors that would work with a PWM cable? I've found this and this. Any recommendations for use, mounting, wiring, sourcing and buying? Also, how could you code one in Java or C++?
  #2   Spotlight this post!  
Unread 16-01-2013, 13:57
protoserge's Avatar
protoserge protoserge is offline
CAD, machining, circuits, fun!
AKA: Some call me... Tim?
FRC #0365 (MOE) & former 836 Mentor)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Wilmington, DE
Posts: 749
protoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond repute
Re: Hall Effect Sensors

Custom Circuits are legal. Make sure all wiring is within the rules and the power is provided as legally required.

R39, R47, R54, R58, R69, R72 are a few.

We have used a hall effect in the past. I will direct some additional help to this thread.

You can code in anything. If you are running your robot using LabVIEW, I don't see why you couldn't do it in there too.

Here's an email I got from another mentor:

Quote:
Team 836 had great success using the linked Hall Effect sensor very similar, if not identical to your Digikey linked sensor (http://www.adafruit.com/products/158). The magnet can also be found on Adafruit.

This particular hall effect sensor is sensitive to the south pole of a magnet and is active low, (eg. every time the sensor sees a south pole, it will connect the output to ground.) Please note this is a simple explanation.

As for ways to interface this sensor on the Digital Side Cars: all DIOs are pulled high by a 10K resistor built into the DS. When your sensor triggers, it will pull the line low, so your DIO pin will be at 5Volts until the magnet passes the sensor, momentarily returning 0V as the magnet passes, then return to 5V.

I would suggest you take a small piece of protoboard and solder a PWM cable directly to the sensor in this order: PWM signal to sensor output, PWM power to sensor power, and ground to ground. Put the solder joints on the back side of the board. Then bend the sensor and lay it flush with the protoboard, using some 26 gauge wire (CAT5 works well) and the other holes in the board to secure the pwm cable to the back side of the board and the sensor to the front of the board. This will provide some strain relief for the cable and something to keep your sensor flush with the protoboard. Next, drill a couple holes in your proto board for mounting to the robot. The other end of your PWM cable can hook to the digital side car DIO just as it normally would. Remember when you're mounting, that these sensors work best <~1/4 inch away from the magnet.

As for coding this again pretty simple, look at the WPI documentation for gear tooth or counter. You will want to count either rising or falling edges then use the period output to give you the time between the edges ie time take for each rotation. A little math and presto... RPM!

Last edited by protoserge : 16-01-2013 at 14:41.
  #3   Spotlight this post!  
Unread 16-01-2013, 20:29
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: 243
BitTwiddler is on a distinguished road
Re: Hall Effect Sensors

Team 1726 has used both kinds of magnetic sensors with good results.
The gear tooth sensor will detect the presence of ferromagnetic material (such as a steel sprocket) passing by whereas the magnetic switch will require a magnet (North turns it on - South turns it off).
The magnetic switch will require some additional components but the gear tooth sensor is ready to use with a Digital IO.
The magnetic switch is a lot cheaper to purchase and is also available at Sparkfun Electronics.
Also, we found the output of the magnetic switch to be somewhat noisy electrically but using the Low Pass filter from the PID library can reduce the noise.
  #4   Spotlight this post!  
Unread 16-01-2013, 21:12
Gregor's Avatar
Gregor Gregor is offline
#StickToTheStratisQuo
AKA: Gregor Browning
no team
Team Role: College Student
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Kingston, Ontario, Canada
Posts: 2,447
Gregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond reputeGregor has a reputation beyond repute
Re: Hall Effect Sensors

We used the hall effect sensor in your second link last year, combined with a 22 tooth steel sprocket on our shooter, with no issues.

Included below are some photos from our Facebook page showing the mounting.

https://fbcdn-sphotos-f-a.akamaihd.n...92706845_n.jpg

https://fbcdn-sphotos-e-a.akamaihd.n...43415980_n.jpg
__________________
What are nationals? Sounds like a fun American party, can we Canadians come?
“For me, insanity is super sanity. The normal is psychotic. Normal means lack of imagination, lack of creativity.” -Jean Dubuffet
"Insanity is doing the same thing over and over again and expecting different results." -Albert Einstein
FLL 2011-2015 Glen Ames Robotics-Student, Mentor
FRC 2012-2013 Team 907-Scouting Lead, Strategy Lead, Human Player, Driver
FRC 2014-2015 Team 1310-Mechanical, Electrical, Drive Captain
FRC 2011-xxxx Volunteer
How I came to be a FIRSTer
<Since 2011

Last edited by Gregor : 16-01-2013 at 21:19.
  #5   Spotlight this post!  
Unread 17-01-2013, 06:50
protoserge's Avatar
protoserge protoserge is offline
CAD, machining, circuits, fun!
AKA: Some call me... Tim?
FRC #0365 (MOE) & former 836 Mentor)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Wilmington, DE
Posts: 749
protoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond repute
Re: Hall Effect Sensors

A photo is worth at least 836 words...
Attached Thumbnails
Click image for larger version

Name:	hall_effect_mounting.jpg
Views:	507
Size:	406.6 KB
ID:	13544  
  #6   Spotlight this post!  
Unread 19-01-2013, 17:19
Brandon Zalinsky's Avatar
Brandon Zalinsky Brandon Zalinsky is offline
Roaming GeorgiaFIRST MC
AKA: The Mecanum Man
FRC #1058 (PVC Pirates)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2008
Location: Clemson, SC
Posts: 456
Brandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant futureBrandon Zalinsky has a brilliant future
Re: Hall Effect Sensors

We tried to use Hall Effect sensors to detect the bump last year, and it did not work at all for us. They were so finicky that if they were 1/64 higher or lower than the 1/8" mounting window, they wouldn't work.
__________________
This is our Robot. There are many like it, but this one is ours.
Measure twice, cut once, curse, buy more, and cut again.

2014- Excellence in Engineering (UNH), District Chairman's Award (NU), #8 Quarterfinalist (NECMP), Winner (Mainely Spirit)
2013- Semifinalists (Battlecry@WPI) Winner (Mainely Spirit)
2012- Regional Chairman's (GSR), Finalists as the #11 Alliance Captain (Battlecry@WPI)
2011-Xerox Creativity Award (GSR), Semifinalists (GSR) Innovation in Control (Virginia)
2010-Champion (GSR), Undefeated (Chesapeake), Coopertition Award (Chesapeake), Quarterfinalists (Galileo) 8th AC (IRI)
2008-Undefeated (GSR), Xerox Creativity Award (GSR)
  #7   Spotlight this post!  
Unread 30-01-2013, 11:41
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,066
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Hall Effect Sensors

Quote:
Originally Posted by stinglikeabee View Post
A photo is worth at least 836 words...
Hey! Finally somebody who knows where the "macro" button is on their camera


  #8   Spotlight this post!  
Unread 30-01-2013, 13:33
protoserge's Avatar
protoserge protoserge is offline
CAD, machining, circuits, fun!
AKA: Some call me... Tim?
FRC #0365 (MOE) & former 836 Mentor)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2002
Location: Wilmington, DE
Posts: 749
protoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond reputeprotoserge has a reputation beyond repute
Re: Hall Effect Sensors

Oh no! I forgot to put the Gaussian blur effect on!


I feel your pain with the atrocious camera phone shots trying to clarify something.
  #9   Spotlight this post!  
Unread 01-02-2013, 02:16
Katna.Grace's Avatar
Katna.Grace Katna.Grace is offline
Registered User
AKA: Katherine
FRC #3132 (Thunder Down Under)
Team Role: Electrical
 
Join Date: Jul 2012
Rookie Year: 2012
Location: Sydney, Australia
Posts: 4
Katna.Grace is a splendid one to beholdKatna.Grace is a splendid one to beholdKatna.Grace is a splendid one to beholdKatna.Grace is a splendid one to beholdKatna.Grace is a splendid one to beholdKatna.Grace is a splendid one to behold
Re: Hall Effect Sensors

We (3132) are using hall effect sensors with a buffering circuit this year. We developed them in the off-season for our 2012 shooter wheels.

We use Hall Effect sensors from RS (http://australia.rs-online.com/web/p...-ics/7384743/).

We are mounting the board flat underneath our shooter wheel, and 'hanging' the magnets down off the wheel. The magnets are epoxied into a piece of aluminium hex stock that was turned to a taper and had a hole drilled in it for the magnet. A thread was then tapped into the other end of the piece, to mount it on the end of the bolt holding the wheel on.

When mounting them, make sure that the sensor itself can't move, so that it can't be sheared off by whatever it's measuring or drift away from the magnet.

I'm attaching a picture of the board, and a picture of our magnet mounts (before the pcb is attached), as well as the schematic for the buffering circuit. Let me know if you have any questions.
Attached Thumbnails
Click image for larger version

Name:	imagehall effect schematic.png
Views:	123
Size:	65.3 KB
ID:	13743  Click image for larger version

Name:	IMG_2535.jpg
Views:	154
Size:	1.71 MB
ID:	13744  Click image for larger version

Name:	IMG_2537.JPG
Views:	150
Size:	1.45 MB
ID:	13745  
__________________
Katherine
Electrical

FIRST® TEAM 3132
Thunder Down Under
Sydney, Australia
  #10   Spotlight this post!  
Unread 01-02-2013, 12:59
electroken's Avatar
electroken electroken is offline
Electron Tamer
AKA: Ken Pontbriant
FRC #0230 (Gaelhawks)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2012
Location: Shelton, CT
Posts: 172
electroken is a jewel in the roughelectroken is a jewel in the roughelectroken is a jewel in the rough
Re: Hall Effect Sensors

A useful gear tooth sensor that wires directly into a digital input is the Allegro Microsystems ATS667LSG. We like to use them when we need speed information but not direction information and we don't need the highest resolution. We also like that they're $6.

In the photo below an ATS667LSG is mounted to a carrier board and installed in the side of a Cim-u-lator gearbox, with its face about 0.03" from the output gear. It gives us a nice, clean 27 pulses per output shaft revolution. The sensor on top of the right motor is just posing for the photo.

  #11   Spotlight this post!  
Unread 01-02-2013, 13:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,066
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Hall Effect Sensors

Quote:
Originally Posted by electroken View Post
It gives us a nice, clean 27 pulses per output shaft revolution
How are you decoding the signal?


  #12   Spotlight this post!  
Unread 01-02-2013, 15:12
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: 243
BitTwiddler is on a distinguished road
Re: Hall Effect Sensors

Quote:
Originally Posted by electroken View Post
A useful gear tooth sensor that wires directly into a digital input is the Allegro Microsystems ATS667LSG. We like to use them when we need speed information but not direction information and we don't need the highest resolution. We also like that they're $6.
Nice find! A few questions.
1. Where did you purchase them?
2. Did you wire them with the bypass and lowpass capacitors?
3. Do you have any data on how it performs on chain sprocket teeth?
  #13   Spotlight this post!  
Unread 01-02-2013, 16:33
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: 5,988
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 Sensors

Quote:
Originally Posted by BitTwiddler View Post
3. Do you have any data on how it performs on chain sprocket teeth?
.....steel? aluminum?
  #14   Spotlight this post!  
Unread 01-02-2013, 17:00
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is online now
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,658
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Hall Effect Sensors

Quote:
Originally Posted by MrForbes View Post
.....steel? aluminum?
Steel. Gear Tooth Sensors have an embedded rare-earth magnet along with a hall effect sensor. They detect a change in the magnetic field that you're not going to see with a non-ferrous target.
EDIT: Also, Digikey has 22,690 in stock. Better order quick before they run out.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter

Last edited by Kevin Sevcik : 01-02-2013 at 17:03.
  #15   Spotlight this post!  
Unread 01-02-2013, 17:56
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: 243
BitTwiddler is on a distinguished road
Re: Hall Effect Sensors

Quote:
Originally Posted by Kevin Sevcik View Post
Steel. Gear Tooth Sensors have an embedded rare-earth magnet along with a hall effect sensor. They detect a change in the magnetic field that you're not going to see with a non-ferrous target.
I think Jim was yanking my chain (also non-ferrous) for not being more specific.
Thanks for the source info though. We'll get our order in ASAP!
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


All times are GMT -5. The time now is 13:45.

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