User Tools

Site Tools


hall_effect_sensors

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
hall_effect_sensors [2019/03/20 22:27] – created tellhall_effect_sensors [2019/03/20 23:13] (current) – [Alternative Hall Effect Sensor] tell
Line 4: Line 4:
 Eastbots robots have used [[https://en.wikipedia.org/wiki/Hall_effect| hall effect]] magnetic sensors in at least 2015, 2016, and 2019.   All of those have been the [[http://www.wcproducts.net/wcp-sensors| West Coast Products WCP--0971]], which until recently looked like this: Eastbots robots have used [[https://en.wikipedia.org/wiki/Hall_effect| hall effect]] magnetic sensors in at least 2015, 2016, and 2019.   All of those have been the [[http://www.wcproducts.net/wcp-sensors| West Coast Products WCP--0971]], which until recently looked like this:
  
 +{{ :wcp-971_hall_effect_front_2.jpg?400 |}}
  
 Two new ones ordered during competition season 2019 look a bit different: Two new ones ordered during competition season 2019 look a bit different:
 +
 +{{ :wcp971-2019-cropped.jpg?400 |}}
  
 These arrive with no connector, and only tiny surface pads for wires or a connector to be attached. These arrive with no connector, and only tiny surface pads for wires or a connector to be attached.
 Surface-soldering a three pin receptacle as show makes them plug-compatible with the original WCP-0971s, Surface-soldering a three pin receptacle as show makes them plug-compatible with the original WCP-0971s,
-but that solder joint isn't very sturdy.  One ripped off during a match at Guilford.+but that solder joint isn't very sturdy.  One ripped off during a match at Guilford.  Another problem with this batch: both LEDs, power and magnet-present, are green.  So one has to look really carefully to tell if the magnet is being sensed (both LEDs on), or if just the power LED is on.
  
-======Alternatives======+======Alternative Hall Effect Sensor======
  
-If we're going to need a special mounting scheme to protect the WCP sensors anyway, can we do better with somthing different?+If we're going to need a special mounting scheme to protect the WCP sensors anyway, and they're harder to use because of the same-color LEDs can we do better with somthing different?
  
 I noticed these at adafruit, and bought a few:  I noticed these at adafruit, and bought a few: 
Line 22: Line 24:
 With slightly creative lead bending, we can attach these to one of our DIO test boards: With slightly creative lead bending, we can attach these to one of our DIO test boards:
  
-A drop of glue would be a good idea to hold it in place firmly.  +{{ :hall-sensor-dio.jpg?600 |}} 
 + 
 +Mounting the sensor with the part number down as shown makes it sensitive to the same pole of the magnet as the WCP sensors, allowing  this one to be dropped in without flipping a magnet over. 
 + 
 +The LEDs on the DIO test board indicate power and magnet-present, just like the LEDs on the WCP board. 
 +big drop of glue would be a good idea to hold the sensor chip firmly to the board.  
 We'd still have to figure out how to mount the DIO board. We'd still have to figure out how to mount the DIO board.
 +
 +These haven't been used on a robot yet, but it is an alternative.
  
 ====== Wiring ====== ====== Wiring ======
Line 31: Line 40:
  
 It gets a little bit more interesting when we want to use one of these for a limit input to a motor controller. It gets a little bit more interesting when we want to use one of these for a limit input to a motor controller.
 +Issues are:
 +  * most of the motor controller breakouts only have a two pin connector for a contact-closure limit switch
 +  * those two pins are usually "signal" and "ground", but which is which is seldom labeled
 +  * Power for the sensor has to come from somewhere
 +
 +Here's one solution, sketched out (TODO schematic of this cable)
 +{{ :hall-effect-to-talonsrx-breakout.jpg?600 |}}
 +and a picture of the hookup:
 +
 +{{ :hall-effect-to-srx-breakout-pic.jpg?300 |}}
 +
  
 +=====Better Wiring=====
  
 +There are other things we don't like about all of the available Talon-SRX compatibile motor controller breakout boards, so we're talking about doing our own.  One feature it can easily have is three-pin limit switch connectors.
  
  
hall_effect_sensors.1553135260.txt.gz · Last modified: 2019/03/20 22:27 by tell