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.

Category: Electronics Workbench

Electrical & Electronic gadgets

  • Hall Effect Sensors From eBay: Supply Current

    As a follow-up to those surprising (in an un-surprising way) magnetic field measurements, I measured each sensor’s current from a +5 V supply with no magnetic field applied:

    Seq 49E 231NB AH49E
    1 7.12 4.08
    2 6.98 4.11
    3 6.85 4.18
    4 6.93 4.04
    5 6.81 3.95
    6 7.00 4.02
    7 7.02 4.05
    8 7.00 4.00
    9 3.65
    10 4.15
    11 3.97
    12 4.05

    The sequence numbers do not match those in the field measurements, because the sensors spent the night in their respective bags and I didn’t want to re-measure everything from scratch. I may wind up doing it with a DC field, but not right now.

    The first column averages 7.0 mA, the second 4.0 mA. It turns out that the Honeywell specs distinguish between SS49 and SS49E sensors, with the “E” suffix denoting the “economy” line:

    • SS49: 4 mA typical, no max given
    • SS49E: 6 mA typical, 10 mA maximum

    The sensors in the first column have supply currents that are close enough for SS49E sensors, albeit with out-of-spec 1.8 mV/G sensitivity.

    However, I’d say the sensors in the second column should be marked 49 rather than 49E and, if that’s true, then the plot thickens. In-spec SS49 sensors have 0.60 to 1.25 mV/G sensitivity, which neatly brackets the average 0.875 mV/G I measured: it’s faintly possible those have incorrect markings, rather than being manufacturing rejects.

    But I wouldn’t bet on that

    I should pick up some genuine sensors from a reputable supplier and measure those, just for completeness.

  • Hall Effect Sensors From eBay: Variations On a Specification

    It seems that the “49E” Hall effect sensor I used to measure the field in the ferrite toroid was running at 1.9 mV/G, rather than the 1.0 to 1.75 range suggested by the perhaps-not-quite-applicable specs. Here’s a table of all the sensors in my collection, which came in two bags from the usual eBay vendors:

    Seq 49E 231NB AH49E
    1 41.1 18.5
    2 42.9 20.0
    3 39.5 19.9
    4 40.6 18.8
    5 43.3 18.9
    6 42.6 23.0
    7 40.7 20.0
    8 44.0 19.3
    9 18.9
    10 19.5
    11 20.0
    12 19.8

    That’s the RMS value in mV of the sine wave resulting from a 200 mA peak current in the 25 turn winding, measured on the scope with low pass filtering and 8 trace averaging. An unfiltered and unaveraged trace looks like this, which explains why I’m knocking back the noise:

    Hall Current Sense - 25T FT50-61 - raw
    Hall Current Sense – 25T FT50-61 – raw

    Even with that noise reduction, the variation between successive readings is about 5%, so trust only the first digit and half of the second; the fractional digit is worthless. Averaging the columns gives 42 and 20 mV RMS, which correspond to 59 and 28 mV peak. I estimated 60 mV peak from the filtered-but-not-averaged scope trace in the earlier calculations, which falls in the same ballpark. If you were doing this for real, you’d use a DC current and a static field, plus a simple RC filter to improve the noise rejection, but this was a quick-and-dirty measurement.

    The peak magnetic flux should be about 31 to 33 G; I’ve been using 32 G based on the nominal permeability and measured air gap. Assuming that’s the case, then the sensors in the first column run at 1.8 mV/G (1.75 + 3% or 1.7 + 6%) and those in the second column at 0.875 mv/G (1.0 – 9%).

    Here’s what I think: these are manufacturing rejects, sold cheap to extract money from suckers. Those in the first column came from the “too high” scrap heap, the second column’s contestants were in the “too low” pile. Note the tight clustering: they’re not random, they’ve been carefully selected! A quick-and-dirty histogram tells the tale:

    49E Hall Effect Sensor Histogram - 200 mA 32 G
    49E Hall Effect Sensor Histogram – 200 mA 32 G

    The nominal range, taken from the SS49E datasheet, runs neatly across the gap in the middle, with one sensor falling just barely inside. The SS49 range neatly brackets the data on the left, but that’s not what those parts are supposed to be.

    Now, I’ve often referred to eBay as my parts locker (at least for stuff I don’t have in the Basement Laboratory Warehouse Wing), but I know what to expect and am not in the least surprised at these numbers. If you or anyone you know buys parts from eBay in the expectation that they’re getting Good Stuff Cheap, then you should rethink that expectation.

    I’d say that, to a very good first approximation, anything bought directly from halfway around the planet via eBay (or any source like it) will be, at best, counterfeit. For my purposes, I can measure and use most of it (assuming it actually works and ignoring minor issues like, oh, reliability and stability). In an actual product application, eBay is not the way to get your parts.

    No surprise, right?

    I wonder what the supply current might be? They’re supposed to run around 6 mA, max 10 mA…

  • Hall Effect Current Sensor: Magnetic Flux Calibration

    With a wound ferrite toroid in hand, the next step involves measuring the magnetic field in the gap from a known winding current. I don’t have a calibrated magnetic sensor, so all this involves considerable guesswork and estimation.

    A ULN3751Z power op amp converts an input signal voltage into winding current:

    Ferrite Toroid Winding Test Driver
    Ferrite Toroid Winding Test Driver

    The 10 Ω sense resistor (5% tolerance, measured at 9.97 Ω on a typical 5% meter) sets the conversion at 100 mA/V, which should be good enough for a first pass. The ULN3751Z has 40 to 60 mA quiescent current and would cook at 1.2 W from ±12 V supplies, so I used ±5 V for this test. That’s not enough for a wide output range, but it’s OK now.

    Given that I already have a breadboard with a Hall effect sensor on it, I hairballed the winding driver in an empty spot:

    Ferrite toroid winding test driver - breadboard
    Ferrite toroid winding test driver – breadboard

    The green ring in the foreground surrounds the toroid, with the slot around the Hall effect sensor sticking up from the breadboard. The toroid cross-section is about the same size as the sensor and the field in the gap seems sufficiently uniform to make positioning completely non-critical. I should conjure up a mount of some sort, just to keep the toroid from flopping around, but that’s definitely in the nature of fine tuning.

    Driving a 200 mA peak current into the winding produces a rather noisy result from the Hall sensor:

    Hall Current Sense - 25T FT50-61 - raw
    Hall Current Sense – 25T FT50-61 – raw

    Applying the oscilloscope’s low pass filter cleans it up a bit:

    Hall Current Sense - 25T FT50-61 - LP
    Hall Current Sense – 25T FT50-61 – LP

    The peak current is 200 mA, so the MMF = 200 mA x 25 turn = 5 A·t.

    Assuming μ = 125 and a 0.172 cm gap, then the magnetic flux works out to:

    (0.4 π · 125 · 5) / (3.02 + 125 · 0.172) = 7.21 · 5 = 32 G

    The Hall effect sensor specs are, at best, hazy, but something like 1.0 to 1.7 mV/G appears on most of the datasheets, with a nominal 1.4 mV/G. The measured peak voltage from the Hall sensor is maybe 60 mV, which suggests a nominal B = 43 G with a range from 60 down to 35 G.

    Ferrite toroid datasheets give permeability to three or four significant figures, but also admit that the actual value can differ by ±25% from the nominal. However, the air gap dominates the equation, so B varies from 30.8 to 32.8 G over that range of μ.

    Assuming that B = 32 G, then the sensor is running just shy of 1.9 mV/G. Perhaps it didn’t quite pass final inspection; it’s not like I’m buying from an authorized distributor or anything.

    Anyhow, the results seems close enough to suggest the ferrite toroid and the Hall effect sensor actually do pretty much what they’re supposed to do. I’d have no qualms about calibrating the sensor output from a known current and running with that number…

  • Hall Effect Current Sensor: Winding and Armoring the Toroid

    Winding a slit ferrite toroid poses no challenge, so putting 25 turns of 26 AWG wire on it didn’t take long at all:

    F50-61 toroid - 25 turns 26 AWG
    F50-61 toroid – 25 turns 26 AWG

    However, a ferrite toroid doesn’t take kindly to being dropped and I figured that a slit toroid would crack under a stern look, so I decided to wrap some armor around it. A small squeeze bottle offered a cap just slightly larger than the winding, so I used that slitting saw to cut off a suitable ring.  The first step was to grab it in the 3 jaw chuck and align its axis parallel to the spindle:

    Aligning bottle cap in 3-jaw chuck
    Aligning bottle cap in 3-jaw chuck

    I wanted to cut off a slightly taller ring, but the clamping screw on the saw arbor just barely cleared the chuck for a 5 mm ring. I jogged around the chuck jaws to cut two slits in the cap that eventually joined near the back:

    Slicing ring from bottle cap
    Slicing ring from bottle cap

    That was about 1000 rpm, no coolant, and slow feed, but also a totally non-critical cut in plastic.

    I put a snippet of foam rubber in the slot, put the ring on a Kapton-covered build platform from the Thing-O-Matic, filled it with hot-melt glue, gooshed the toroid in place, and waited for cooling. Trimming and cleaning out the slit produced a hideously ugly, but (I hope) much more durable assembly:

    Slit ferrite toroid - with armor
    Slit ferrite toroid – with armor

    I’m reasonably sure I didn’t crack the ferrite while cleaning out the slit; that hot-melt glue is tenaciously gummy stuff!

    Now, to find out whether it actually works…

  • Slitting a Ferrite Toroid

    The object of the game: cut a slit into a ferrite toroid that will accommodate a Hall effect sensor. Those doodles showed that an FT50 (half-inch OD) toroid would be about right for the cheap AH49/EH49 Hall effect sensors on hand and those doodles shows that the permeability of the ferrite mix doesn’t make much difference. Not being quite sure how this would work out, I figured I’d start with the simplest possible setup and complexicate things until it worked…

    A fold of cereal box cardboard cushioned the brittle ferrite in the Sherline’s clamp and the vacuum hose in the background collects airborne grit. I touched off X=Y=Z=0 with the wheel at the center of the toroid’s equator:

    Slitting ferrite toroid - first pass
    Slitting ferrite toroid – first pass

    The first pass went swimmingly, with the diamond wheel far more concentric than I expected, using manual jogging along a 0.5 mm deep cut. The wheel is slightly over 0.5 mm thick, measured on the grit, and showed no sign of strain on a 1 mm deep cut at 100 mm/min, so I used manual CNC to run the wheel back and forth along the cut.

    After clearing the slot, I moved the wheel upward to + 0.5 mm, repeated the passes with a 1.5 mm depth of cut, then did the same at -0.5 mm. The end result was a nice slot with parallel sides:

    Slitting ferrite toroid - complete
    Slitting ferrite toroid – complete

    The actual gap measured 1.72 mm, not the 1.5 I wanted, which means the flux density will be lower than the previous calculations predict. Assuming the Z axis backlash compensation works as it should, then the kerf is 0.72 mm. Of course, that also assumes the arbor runs true and the wheel cuts symmetrically, neither of which I’d put (or, heck, have put) a lot of money behind. On the other paw, the sensors are 1.5 mm thick (just under the datasheet’s 1.6 mm spec), so +0.1 mm clearance on each side works a whole lot better for me than, say, -0.1 mm.

    All in all, there was no excitement, no muss, no fuss, no chipping, no breakage:

    FT50 ferrite toroid with slit
    FT50 ferrite toroid with slit

    Talk about beginner’s luck!

  • Hall Effect Current Sensor: More Toroid Numbers

    After rummaging in the collection, it turns out those calculations for the FT50-43 toroid aren’t relevant: I only have a few of them. It turns out that the actual material doesn’t affect the result nearly as much as you’d think, because the air gap for the Hall sensor controls the net permeability, so I’ll start sawing toroids that I have in abundance…

    The J ferrite mix has much higher permeability, at the cost of a lower Curie point. An FT50A toroid is slightly thinner and taller than an FT50, but I have good assortment of FT50A-J toroids:

    • 0.50 inch OD = 1.27 cm
    • 0.312 inch ID = 0.793 cm
    • 0.250 inch height = 0.635 cm
    • 0.152 cm2 area
    • 0.558 cm3 volume
    • 3.68 cm mean path length
    • μ = 5000
    • 4300 saturation flux (G) at 10 Oe
    • AL = 2970 nH/turn2

    For 1000 G flux in a 0.15 mm air gap:

    1000 = (0.4 π · 5000 · NI) / (3.68 + 5000 · 0.15) = 8.34 · NI

    So NI = 1000/8.34 = 120, essentially the same as NI = 122 for the FT50-43. Given that μ increased by nearly a factor of 6, that shows permeability doesn’t matter very much at all.

    There’s a bag of F50-61 toroids that I assume are actually FT50-61:

    • 0.50 inch OD = 1.27 cm
    • 0.281 inch ID = 0.714 cm
    • 0.188 inch height = 0.478 cm
    • 0.133 cm2 area
    • 3.02 cm mean path length
    • 0.401 cm3 volume
    • μ = 125
    • 2350 saturation flux (G) at 10 Oe
    • AL = 68.0 nH/turn2

    Running those numbers for the same flux and gap:

    1000 = (0.4 π · 125 · NI) / (3.02 + 125 · 0.15) = 7.21 · NI

    Which gives NI = 1000/7.21 = 139. That’s larger, but still in the same inconvenient range.

    I’ll start sawing a FT50-61 toroid…

  • Stepper Motor Driver Spec Comparison

    Being in the market for some more-or-less industrial stepper driver bricks, here’s a summary of what’s currently available on eBay from the usual vendors, copied-and-pasted directly from the descriptions with some fluff removed:

    M542 Stepper Driver Board Controller

    • Supply voltage from 20V DC to 50V DC
    • Output current from 1.0A to 4.5A
    • Self-adjustment technology, full to half current self-adjustment when motors from work to standstill via switching off SW4
    • Pure-sinusoidal current control technology
    • Pulse input frequency up to 300 KHz
    • TTL compatible and optically isolated input
    • Automatic half-current reduction as long as switching off SW4 when motors stop
    • 16 selectable resolutions in decimal and binary, up to 51,200 steps/rev
    • Suitable for 2-phase and 4-phase motors
    • Support PUL/DIR and CW/CCW modes
    • Short-voltage, over-voltage, over-current and short-circuit protection, protect the PC, motors, driver etc from being damaged

    M542H Stepper Driver Board Controller

    • Supply voltage from 20V DC to 100V DC
    • Output current from 1.0A to 4.5A
    • Self-adjustment technology, full to half current self-adjustment when motors from work to standstill via switching off SW4
    • Pure-sinusoidal current control technology
    • Pulse input frequency up to 300 KHz
    • TTL compatible and optically isolated input
    • Automatic half-current reduction as long as switching off SW4 when motors stop
    • 16 selectable resolutions in decimal and binary, up to 51,200 steps/rev
    • Suitable for 2-phase and 4-phase motors
    • Support PUL/DIR and CW/CCW modes
    • Short-voltage, over-voltage, over-current and short-circuit protection, protect the PC, motors, driver etc from being damaged

    2M542 Stepper Driver Board Controller

    • Suitable for 2-phase hybrid stepper motors (Outer diameter: 57,86mm)
    • H bridge bipolar constant phase flow subdivision driver
    • Speed self-adjustment technology
    • Easy current subdivision setting
    • 2–64 resolutions,16 operation modes
    • ENA mode
    • 8 dial switch for different functions
    • Undervoltage, Shortvoltage, overvoltage, overcurrent protections
    • Supply Voltage: 24~50V DC (Typical 36 V)
    • Output Current (peak): Min 1.0 A, max 4.2A
    • Logic Input Current: Min 7, typical 10, max 16 mA
    • Pulse Frequency: Max 200 KHz
    • Pulse Low Level of Time: 2.5 US
    • Cooling: Natural /mandatory
    • Working Surrounding: Avoid dust, oil mist and corrosive gas
    • Storage Temp: -10—80 deg
    • Working Temp: Max 65 deg
    • Surrounding Humidity: <80%RH without condensing and frost
    • Vibration: 5.9m/s²
    • Model: 2M542
    • Size: Approx. 4 5/8 x 3 x 1 5/16 inch (L x W x H)

    MA860H Stepper Driver Board Controller

    • Supply voltage from “18V AC to 80V AC” or “24V DC to 110V DC”
    • Output current from 2.6A to 7.2A
    • Self-adjustment technology, full to half current self-adjustment when motors from work to standstill via switching off SW4
    • Pure-sinusoidal current control technology
    • Pulse input frequency up to 300 KHz
    • TTL compatible and optically isolated input
    • Automatic half-current reduction as long as switching off SW4 when motors stop
    • 16 selectable resolutions in decimal and binary, up to 51,200 steps/rev
    • Suitable for 2-phase and 4-phase motors
    • Support PUL/DIR and CW/CCW modes
    • Short-voltage, over-voltage, over-current and short-circuit protection, protect the PC, motors, driver etc from being damaged
    • External Fan Design to avoid overheat

    2M420 Stepper Motor Driver controller

    • H-Bridge, 2 Phase Bi-polar Micro-stepping Drive
    • Suitable for 2-phase, 4, 6 and 8 leads step motors, with Nema size 17
    • Supply voltage from 20V DC to 40 DC
    • Output current selectable from 0.9 ~ 3.0A peak
    • Current reduction by 50% automatically, when motor standstill mode is enabled
    • Pulse Input frequency up to 200 kHz
    • Optically isolated differential TTL inputs for Pulse, Direction and Enable signal inputs
    • Selectable resolutions up to 25000 steps
    • Over Voltage, Coil to Coil and Coil to Ground short circuit protection.

    2M982 CNC Stepper Motor Driver

    • Supply voltage: 24~80V DC
    • Suitable for 2-phase stepper motors
    • Output current: Min 1.3A Max 7.8A
    • Speed self-adjustment technology
    • Pure-sinusoidal current control technology
    • Pulse input frequency: Max 200 KHz
    • Optically isolated input and TTL compatible
    • Automatic idle-current reduction
    • 15 selectable resolutions, MAX 12,800 steps/rev
    • PLS, DIR (CW/CCW), ENA mode
    • Undervoltage, Shortvoltage, overvoltage, overcurrent protections

    Leadshine DM1182

    • 2 Phase Digital Stepper Drive
    • Direct 115VAC input
    • Current 0.5 – 8.2A
    • Max 200 kHz

    In round numbers, the M542 seems to be the basic driver for NEMA 17 / 23 /34 steppers. Remember that current isn’t proportional to frame size.

    The M542H has a higher voltage limit that may be more useful with larger / multiple-stack motors; higher voltage = higher di/dt for a given inductance = same di/dt for higher inductance.

    The 2M542 seems to be slightly different from both of its siblings: higher minimum voltage, slightly lower maximum current, slower step frequency. Many of the listings apply both M542 and 2M542 to the same hardware in the same listing, so it’s not clear what you’d get in the box. Ask first, trust-but-verify?

    The MA860H seems appropriate for NEMA 34 / 42 and up , due to the much higher minimum current.

    The 2M420 seems to be intended for NEMA 17 /23 class steppers. It’s not available from nearly as many suppliers.

    The 2M982 looks like another NEMA 34 /42 and up driver.

    The DM1182 seems strictly from industrial, but if you don’t know what you need, it’s a do-it-all killer.

    As with all eBay listings, the picture need not match the description and neither may match what actually arrives in the box from halfway around the planet.