User Tools

Site Tools


hall_effect_sensors

This is an old revision of the document!


History: WCP-0971

Eastbots robots have used hall effect magnetic sensors in at least 2015, 2016, and 2019. All of those have been the West Coast Products WCP--0971, which until recently looked like this:

Two new ones ordered during competition season 2019 look a bit different:

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, 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

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: https://www.adafruit.com/product/158

With slightly creative lead bending, we can attach these to one of our DIO test boards:

The LEDs on the DIO test board indicate power and magnet-present, just like the LEDs on the WCP board. A drop of glue would be a good idea to hold it in place firmly. 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

The three pin connector on the WCP-0971 (or our DIO board, of course) is ready to be plugged into a RoboRIO DIO port. It provides power, ground, and signal. The signal goes LOW when the magnet is near the sensor.

It gets a little bit more interesting when we want to use one of these for a limit input to a motor controller.

hall_effect_sensors.1553135687.txt.gz · Last modified: 2019/03/20 22:34 by tell