The Smell of Molten Projects in the Morning

Ed Nisley's Blog: Shop notes, electronics, firmware, machinery, 3D printing, laser cuttery, and curiosities. Contents: 100% human thinking, 0% AI slop.

Hall Effect Motor Current Sensing

Given that the motor current amounts to maybe 3 A, absolute maximum, with a locked rotor, those skinny wires on the slit ferrite toroid won’t pose a problem:

HV Interface board - detail
HV Interface board – detail

I really like how that 3D printed armor worked out, even if I still haven’t poured any goop around the windings to lock them down; they’re held in by raw faith and friction.

The current sense circuitry appears along the bottom of the AC Power Interface schematic:

AC Power Interface
AC Power Interface

The differential amplifier lives on the Low Voltage Interface board, forming the clump of parts just in front of the LM324 op amp on the left:

Low Voltage Interface Board - detail
Low Voltage Interface Board – detail

Which has the usual handful of components required to get anything done in the analog realm:

Current Sense Amp - schematic
Current Sense Amp – schematic

The power supplies come directly from the ATX connector. I’m ignoring the whole decoupling issue, because the supplies have essentially no load (and it’s all DC, anyway).

The trim pot sets the offset voltage to bring the Hall effect sensors’s VCC/2 offset down close to zero; the 100 mV figure is nominal, not actual, but should be a bit over 0 V to allow for a wee bit o’ drift. This time around, I’ll measure and subtract the actual offset, rather than (try to) auto-zero it.

The voltage gain runs just under 3, set by 1% resistors from the heap. The overall gain works out to about 1.9 V/A or 525 mA/V, setting the high end at 5 V to a scant 2.6 A. Subject to actual calibration with more attention to detail, that’s close enough; we’re more interested in the around-an-amp range where the motor operates under nominal load.

The nose-to-tail Schottky diodes clamp the op amp output to avoid annoying the Arduino’s ADC input. It has protection circuitry, too, but there’s no point in stressing it.

Comments

3 responses to “Hall Effect Motor Current Sensing”

  1. madbodger Avatar
    madbodger

    Does the power supply lose regulation with this light a load (some switchers do, which is why the original PC had a big honking resistor in it if you didn’t order a hard drive)? Also, what’s the purpose of the shunt resistor on the output of the hall effect sensor? It’s where a burden resistor would live in a current transformer.

    1. Ed Avatar

      lose regulation with this light a load

      As nearly as I can tell, it’s perfectly happy with no load at all.

      When everything’s bolted together, the +12 V supply will drive half an amp of LED strip lights and the +5 V supply will run another half amp of LED emitters. Those loads should make it even happier…

      the shunt resistor on the output of the hall effect sensor

      It’s a defined load for some SS49(E) sensors without an internal current sink. These eBay junkers work with or without it, so I presume they’re the S49E version with the internal sink. Adding the resistor slightly lowers the output voltage for a given magnetic field, which doesn’t make any difference for what I’m doing.

      Now that I look at the pictures, the little guy seems missing in action…

  2. […] top trace is the motor current, sampled through the ferrite toroid / Hall effect sensor / differential amp, at about 525 mA/V […]