5
\$\begingroup\$

There's this old question that is almost what I'm looking for, but not quite.

I want to make a current direction sensor - I don't care about magnitude - for a car starter battery. I care about the battery itself, and the wiring makes it surprisingly difficult to separate the massive starting current from everything else. Almost nothing about this installation is automotive-standard, despite using automotive parts.

I'm thinking about putting the thick wire from the battery terminal through a split ferrite ring, putting a Hall effect sensor in the gap, feeding it to an analog comparator with a threshold around half the supply voltage or so (with a potetiometer for fine-tuning,) and calling it a day.

If I use a sensitivity that works out to a low full-range current, maybe 1A or less, will it be damaged if I then run the starter motor through it? Of course it'll be way off the scale, but again, I only care about the sign, not the magnitude. Even if it takes a few seconds to recover, that's probably fine. The question is just, "Will it be damaged?" Can I do that as a regular driver and have it be perfectly okay?

\$\endgroup\$
1
  • \$\begingroup\$ I'm going to give this a +1. Would like to see a well-written answer. \$\endgroup\$ Commented Sep 19, 2023 at 4:30

3 Answers 3

2
\$\begingroup\$

According to Allegro:

There is no upper limit to the magnetic field strength that may be applied to a Hall-effect sensor.

That said, it's always possible that a rapidly changing magnetic field might induce some voltage where it could cause damage. Twisted wires and maybe a TVS or two on the leads could help.

\$\endgroup\$
1
\$\begingroup\$

Each sensor should have some "absolute maximum ratings" including maximum magnetic flux density (B). For example MLX91208 have absolute maximum +-3T. If you know distance of your sensor from wire and maximum current, you can calculate B value and decide if you exceed maximum limit for sensor. Even sensitive devices, like electronic compass (3 axis magnetometers) can whitstand 0.1T (MAG3110), or up to 7T (BMM150).

\$\endgroup\$
1
\$\begingroup\$

I'm not aware of such a failure mechanism related to (coreless) Hall effect sensors, in and of themselves.

What comes to mind:

1. Fusing, as in, you've blown up the sensing element, or otherwise damaged the sensor from overheating.

This applies to pre-made sensors, with inductive loop included. The rating would be easy to exceed with this kind of ratio of ratings (i.e., in relation to the referenced thread, say 100A peak through a 15A-rated sensor). But there likely exists a pulse duration for which such currents can be reached, without damaging the device, so it's within the realm of possibility, and worth noting.

2. Excessive EMF, would be exceeding the CMRR of the sensor (due to voltage drop across the inductive link itself, or surrounding wiring), and either disturbing the reading (the sensor may return to normal after a settling time), or inducing too much voltage in the sensor itself, destroying microscopic wiring, or overheating the chip in an instant.

EMF is proportional to rate of change \$dI/dt\$, so this would be something of a limiting value in the other direction: too fast and you encounter this failure mode, too slow and you encounter the other. There exists a slope between these limits, where some maximum peak current can be withstood, reached by a pulse rising at the given \$dI/dt\$, and terminating before the element is damaged.

For cored types, there is no integral link, so limit #1 goes away (it would be using your own wiring instead, assumed of adequate size to handle whatever current you're putting through it), but limit #2 does remain (there's still some EMF transmitted through the core). We also have two additional considerations: absolute flux density, and hysteresis.

3. Electronic components, in general, malfunction in very intense fields. This isn't much of a problem for coreless sensors, because to get such fields (multiple tesla) around a wire link, would require massive surge currents to approach -- fractional lightning-strike currents, say (and then you probably fail from limit #1 or #2). But with a core, field from the sensed wire becomes concentrated, and this flux density needs to stay within limits.

What the limits are, isn't clear, or often documented. Most components are fine with fairly intense fields (100s mT, perhaps?). Some may even remain nominally operational up to multiple T. It's not hard, I think, to remain operational at fields of 5 or 10T, at least for some kinds of components, and this rules out a heck of a lot as you need either a very strong electromagnet indeed, or a superconducting one, to reach such field strengths. (Well, or a Halbach array, but that's also a fairly contrived and special thing.)

Magnetic cores exhibit saturation, where flux density can only rise so high for a given magnetization, and the rate \$B/H = \mu\$ decreases above some point; that is, \$B/H = \mu(H)\$ is a dependent and decreasing function. This is somewhat of an advantage here, as it limits this failure mode: while it doesn't affect rate (limit #2), it does limit the peak value.

Saturation flux density depends on magnetization, material and temperature. Ferrites are generally on the low side (0.3-0.45T), and iron alloys can go fairly high (1.5-1.8T, sometimes even 2T). Intermediate values can be achieved by varying the cross-section of the core: if say 80% of the core saturates, it's basically not there, and then some wider pole pieces/faces flanking the Hall effect sensor can cause the field to spread out, lowering it around the sensor. Conversely, sensitivity can be increased by pinching the core down around the sensor; this has the drawback that, the pinched section saturates progressively, lengthwise, so the response will be nonlinear (a softer limiting function) as it saturates.

4. Hysteresis, is a history-sensitive offset in the reading. Various conditions can affect the resting or residual level in a core, including magnetization, orientation in surrounding fields (including Earth's magnetic field), and even mechanical stress (simply being bumped around a bit). It's an intrinsic property of magnetic cores; "soft" or low-loss materials strive for low hysteresis, but some inevitably remains, and for sensitive sensors, this can be an annoyance.

Hysteresis is particularly important for DC readings, where the offset can't simply be ignored, but must be eliminated (degaussing?) or compensated (trimmed out, auto-zeroed, etc.). A typical circumstance is, using a DC-capable clip-on type current probe: when the core is opened, it's exposed to ambient fields, and then when slapped shut, it's stressed some. These tools have a prominent thumbwheel adjustment on them, so that the user can place the probe, turn off the circuit under test and zero the reading, and then take measurements.


How much any of these limits matter, depends on the materials, geometry, and sensor, in question. I would suggest working closely with a manufacturer to determine what their sensors are capable of, and whether any of these limits need to be designed around, or if any apply at all.

Offhand, I suspect your imagined application is fine:

A ferrite core will easily saturate at cranking currents (an ungapped ferrite of 2-3cm size typically saturates at 10At or so; with a chip-thickness airgap, perhaps 100At), which means plenty of signal strength for the low-level detection desired, and, ferrite is probably preferred over laminated iron to keep the flux density low. You don't need tremendous dynamic range, either.[1]

dI/dt or EMF can be limited by placing a shield over the sensor; if solid foil is used, both common-mode voltage and rate-of-change can be limited. If rate-of-change should not be limited, then a slotted foil can be used for CM shielding (so that it doesn't act as a shorted turn, but still largely covers the sensor to absorb direct electric fields).

Hysteresis is also reduced by the airgap, roughly in proportion to its relative size (i.e., consider the (solid, whole) core as being an ideal magnetic path plus an intrinsic air gap of \$l_e / \mu_r\$; compare physical airgap to this figure). For typical dimensions, and common ferrite materials, this will probably be in the 10s of mA equivalent range. You can look up hysteresis for typical materials by locating the datasheet; the B-H curve is usually given. Special values have names: where the hysteresis loop crosses the vertical (B) axis, is remenance (remaining flux density at zero magnetization); horizontal (H) axis, coercion (how much magnetization is required to undo the remenance, or "coerce" it into magnetizing again). Again, smaller values of both are preferable.

Again, these are all very wishy-washy things, which will have to be concretized with a specific design, and then one can consider design variations motivated by the above reasoning.

[1] About dynamic range, by the way: the noise floor is most likely limited by the sensor itself. The Hall effect tends to be quite modest, requiring a lot of onboard gain to get a reasonable signal level, and this leaves a fairly generous noise floor. There is also Barkhausen noise, particularly due to the change of magnetic field -- usually explained as the stick-slip motion of magnetic domains across grain boundaries and pinning defects. Probably the noise limit will be some 10s of mA, adequate to positively detect fractional amperes. Filtering will suffice to reduce both noise sources, at least give or take whatever response time you require.


There are alternatives, as well:

Don't pooh-pooh the shunt resistor. With a very accurate current-sense amplifier (auto-zero or chopper types with ~µV input offset are readily available), both precision and accuracy are possible such that -- well, very accurate metering for battery charge can be done, for example. Even at low load currents, or large peak-average ratios, where tiny systematic errors are integrated over time into cumulative charge errors.

The compensated or nulling current transformer can have extremely low frequency response, by canceling out incident EMF through feedback action. They still do not go to DC however, which is probably not adequate for this case; it might be a consideration for pulsed operation, where a regular return to zero affords a calibration/reset opportunity.

Magnetic saturation can be used to advantage. By using a pair of cores, and driving them alternately into saturation, the difference (saturation flux) can be measured, and thus the load current; or instead of a direct proportional reading, it can be nulled via feedback (through a cancellation winding) giving a very linear result (i.e. not dependent on core characteristics as the cores operate over a consistent section of B-H curve). These are DC capable, and have been used for metering purposes (i.e. accuracy sufficient for electrical billing).

We might also imagine some circuits that could solve the problem, though I think it's stretching the imagination a bit for this particular case. Consider the humble series diode in parallel with a resistor: when load current is small, it flows through the resistor, and can be measured at reasonable accuracy with modest means; at high currents, the diode turns on, limiting voltage drop. Why it doesn't apply here: you can't really find diodes with selectable voltage drop; schottky have the least, and you aren't going to find less than 0.7V or so at this kind of peak current. Out of a 12V supply, that's a fairly noticeable efficiency hit. Or a synthetic diode could be made with MOSFETs and active circuitry, but idle current would likely suffer, and the circuit obviously becomes far more complex.

\$\endgroup\$
8
  • \$\begingroup\$ I think I understand most of that, except for the CMRR problem. As I see it, all of this is single-ended. There's no differential anywhere to compare to common. 3-pin sensor: 2 for power and the remaining 1 feeds the comparator which is immediately next to it. Output of the comparator drives a transistor that is also right there. Haven't decided on N-channel or NPN yet. Transistor runs a panel light that is located elsewhere. (incandescent, otherwise the comparator might drive it directly) Am I missing something? \$\endgroup\$
    – AaronD
    Commented Sep 20, 2023 at 22:04
  • \$\begingroup\$ Generally, your answer puts it in the realm of "try it and see" for me. Is that what you had in mind? I'm really hesitant to add resistance, because one of the major problems was getting enough juice to a too-small starter that physically can't be swapped for a bigger one, from a battery that is probably too far away as a result of incompletely band-aiding an existing design. Anyway, that problem is (mostly) solved (for) now, and the present idea is to see if the battery really is charging, or if we need to fix something before we get stranded. \$\endgroup\$
    – AaronD
    Commented Sep 20, 2023 at 22:11
  • \$\begingroup\$ There's always a difference! Integrated-element sensors may have isolation ratings as low as 100V; even if they can withstand some ~kV, that's still a CM limit between sensed element and sensor electronics. There may be effects due to capacitance from the element to the sensor, i.e. depends on dV/dt. (A foil shield would largely address this.) Note that, even if you put the sensor on the notionally-ground wire, and ground the sensor, the fact remains they are different wires, carrying different currents, and therefore inductance (V = L dI/dt) still matters. \$\endgroup\$ Commented Sep 21, 2023 at 0:18
  • \$\begingroup\$ In other words, ground isn't DC ground, ground is a matter of opinion at AC. dI/dt and dV/dt matter because the rates of rise from switch contacts opening and closing can be very high indeed: fractional nanosecond even. I don't think you get switching quite so fast at these currents, but it can still be quite a lot, and we're talking hundreds of amperes being switched so it doesn't take much risetime to generate a large induced voltage. \$\endgroup\$ Commented Sep 21, 2023 at 0:20
  • \$\begingroup\$ Where on a 3-pin TO-92 packaged chip, for example, is that a problem? Put that package in the gap of a ferrite ring that has an insulated wire running through it (straight through, no turns), give it a local power supply, and take a single-ended signal from the 3rd pin, referenced to that local supply. \$\endgroup\$
    – AaronD
    Commented Sep 21, 2023 at 19:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.