Common Hall-effect sensor myths (2022)
e2e.ti.com
e2e.ti.com
Hall-effect sensors by themselves are pretty poor for this application, but these sensors consist of a traditional (AC type) current transformer, but instead of a closed core, there's a Hall-effect sensor placed in a small gap in the core loop. Instead of measuring current from the transformer windings, the windings are fed from an op-amp current source with feedback from the Hall-effect sensor with the result that the magnetic field produced by the transformer windings exactly cancels the magnetic field produced from the current flowing through the source cable. The current in the cable is thus known because it equals the product of the CT current and the turns ratio (in this case 200/1).
The Hall-effect sensor here is only sensing the presence or absence of a magnetic field, and the CT is driven to null the field, so the system calibration is simple. (There's no need for any temperature compensation of the Hall-effect sensor.) Also, IIRC, these sensors have a pretty high operational bandwidth (DC to ~200kHz).
What is the uncertainty? I thought you just need to zero each ADC after it stabilizes on boot before powering up the load?
For another, in my experience a lot of current sensing options are just a bit.... suspicious on the accuracy front. I've had resistive sensors tell me 1W is flowing through a plug with nothing plugged into it. Turning off a resistive load but the measurement slowing falling back to zero over several seconds, instead of dropping immediately. Solar monitoring current clamps that claimed zero current when the power company's meter said we were exporting 20W. Fancy £800 fluke clamp meters tell me 2A is flowing when there isn't even a cable in the clamp. Clamp ferrites getting broken in transit and producing bad results. Installers putting the CT clamp the wrong way. Installers installing the power meter the wrong way around, because the installation instructions assume you want to meter import not export.....
Current sensing is surprisingly hard to get right :)
Hahahaha! Duh. I just assumed you could power cycle the target (which you could but not without potentially drastic consequences).
thanks for the follow-up.
your ±1% 1Ω shunt resistor might actually be 0.99Ω, maybe depending on temperature (which changes after you power up the load), but you can get ±0.01% resistors pretty cheap these days
(maybe not if they have to handle 150 amps tho)
typically the bigger issue is the reference voltage the adc is comparing it against, because a voltage reference with 1% precision that's stable over time is pretty challenging, and also needs to be calibrated
but i'd think that would also be the case for calibrating the driver for the cancellation current in the hall-effect sensor?
On one hardware project I did a couple of years ago, which involved automated closing and opening of a sliding door, we used hall effect instead of mechanical for the limit switches. I didn't react strongly to the idea at the time but boy, was it a good one. No issues with aligning switches precisely, no worrying about switches wearing out or getting stuck, minimal handling of debouncing necessary. And it was even totally silent! I think this was the closest I got to perceiving something in the real world to be as elegant and consistent as (most) things are in the code world.
The EMF from the motor played all kinds of havoc on the Hall effect sensor.
[1] https://www.ti.com/product/TMAG5124
[2] https://georesults.com.au/product/geometrics-g-822a-caesium-...
[3] https://scintrexltd.com/wp-content/uploads/2017/02/CS-VL-Man...
I usually see hall-based switches being used to detect pneumatic cylinder position- the plunger in cylinders has an embedded magnet and there is a rail on the outside of cylinder where you can fix a small sensor.
Solid state analog is hard to beat, in low current devices, with human speed dB/dt.
Just get an old radio, fiddle with the volume control and hear the scratching
Does that mean that the sensor is all solid state and the only moving bit is just a gimbal-like thingy attached to the rubber thumb interface to move a little magnet around? That’s got to be ridiculously simple and long-lasting. Or even trivial to make replaceable without having to replace any of the electronics.
Thus no-touch, special integrated circuit per key, hall effect keyboards were born before the advent of cheapness and higher reliabilty of mechanical switches drove them out due to price difference.
Thus "infamous".
The fact that they required special IC per key only makes them even more "wild" :)
Just today I diagnosed my truck's failed climate control to be due to a failed potentiometer in the temperature control mix damper actuator. Curse on whoever screwed up and didn't use a magnetic sensor for this application.
What's funny is that, the controllers are already pretty effin expensive. Buying a new single PS5 controller is ca 1/6 cost of the console. With the Switch it's even worse, then it's about 1/3.
There are interesting stories online about the problems they had. They were stumped by a game at a specific location that kept going haywire and requiring recalibration. Kept sending engineers out to fix it over and over. Turned out the arcade was next door to a scrap yard with one of those big magnetic cranes, which was completely messing up the sensing. [1]
[1] https://www.rotheblog.com/2009/06/arcade/transcript-from-rus...
More likely boring old electrical grounding issues. Oh how I hate them.
[1] https://www.youtube.com/watch?v=2kvmccinWMk [2] https://www.youtube.com/watch?v=dUZxW2VzyIk [3] https://next.wooting.io/wooting-60he [4] https://steelseries.com/gaming-keyboards/apex-pro
That would be because they decay quadratically over distance...
Given my bad experience, reading that they’re so popular really surprised me. Are they actually finicky or did my team just do something wrong?
If you go to a gym, try to keep track of your exercise counts and compare them to the machine counters. The machines almost never get them right. But for keyboards they seem to be pretty great.
There is even a higher resolution approach of using two or three analog output hall sensors sensing motor magnets to read fine stator position (for example, gimbal motors for DJI drones use this technique).
Then there are ICs that contain several hall sensors that are arranged to measure absolute angle of diametrically magnetized target (these are the one's used in hall effect potentiometers, and I've seen them used for position feedback in brushless motor control).
So, most likely your project had an issue with sensor placement, or the sensor wasn't correctly selected for the application They are no more finicky than IR sensors reacting to sunlight, or just about every type of sensor *also* being a temperature sensor: you have to be aware of what exactly is the sensor measuring and how the environment may affect it's measurements.
Mixing SI and imperial units makes for good reading. How many millimeters are three inch again?