Part 14 · Electronics and Computing
Hall Sensors and Magnetometers
Instruments that turn a magnetic field into a voltage you can read. The Hall effect and how to make a Hall sensor from a slice of germanium; the clamp meter that measures the current in a wire without cutting it; the fluxgate magnetometer, sensitive to a millionth of the Earth's field; and what they are for — electronic compasses, finding ore and buried iron, counting turns of a wheel, and measuring current.
- Difficulty
- ●●●●●
- Time
- A week to cut, lap and contact a first Hall plate; two days for a current clamp; two to three weeks to build and calibrate a fluxgate magnetometer
- Steps from zero
- 43 prerequisites →
This unlocks
Ion Pumps and Leak DetectorsThe full path from nothing — 43 steps before this one
- Fire
- Cordage and Rope
- Stone Tools
- Finding and Preparing Clay
- Finding and Identifying Ores
- Sulfur
- Hunting and Trapping
- Basic Woodworking
- The Kiln
- Pottery
- Charcoal
- Hides and Leather
- Lime
- Bricks
- Salt
- Mercury
- Lye and Potash
- Fermentation
- The Wheel and Axle
- Glass
- Firebrick and Refractories
- Bellows
- Saltpeter
- The Lathe
- Gears
- Copper Smelting
- Iron (the Bloomery)
- Laboratory Glassware
- Sulfuric Acid
- Pumps
- The Waterwheel
- Blacksmithing
- Hydrochloric Acid
- The Battery
- The Vacuum Pump
- Magnets
- The Light Bulb
- Copper Wire
- The Generator
- The Vacuum Tube
- The Electric Arc Furnace
- Pure Silicon
- Semiconductors and the Transistor
- Hall Sensors and Magnetometers
Do them roughly in this order. See it on the tech tree →
Why it matters
A compass needle tells you which way a magnetic field points, roughly. It cannot tell you how strong the field is, cannot write the answer as a number, cannot measure the current in a cable, and cannot tell a buried iron pipe from the field of the Earth. A magnetometer — any instrument that measures magnetic field — can.
With the instruments in this chapter you can:
- Measure current in a live cable without cutting it or touching bare metal (Electricity Meters and Billing, Power Lines and Distribution).
- Count turns and sense position without contact: the speed of a wheel, the position of a motor's rotor, a door shut or open (Robots and Automation).
- Find ore and buried things: magnetite iron ore, basalt dykes, lost pipes and cables, old kilns and hearths, unexploded steel in the ground (Finding and Identifying Ores, Mining and Tunnelling).
- Steer by an electronic compass that gives a heading as a number and can be read in a steel vehicle with a correction (Navigation, Gliders and Aeroplanes).
- Measure magnets and electromagnets you make (Permanent Magnets, The Electromagnet).
How it works
Units. Magnetic field (flux density) is measured in tesla (T). A fridge magnet: about 0.01 T at its face. A good loudspeaker gap: 1 T. The Earth's field: 25–65 millionths of a tesla — 25–65 microtesla (µT), weakest near the equator and strongest near the poles. Prospectors use the nanotesla (nT), a billionth of a tesla: the Earth's field is 25,000–65,000 nT, and a buried iron drum changes it by perhaps 100 nT. The older unit, the gauss, is 0.0001 T.
The Hall effect. Pass a current along a thin plate of conductor and put a magnetic field through its face. The field pushes the moving charges sideways, so they pile up on one edge until their own electric field balances the push. A small voltage — the Hall voltage — appears across the plate, at right angles to the current. It is proportional to the current and to the field, and it reverses when the field reverses.
How big it is depends on how fast the charges move for a given push. In a metal there are so many free electrons that each drifts very slowly, and the Hall voltage is millionths of a volt. In a lightly doped semiconductor (Semiconductors and the Transistor) there are a million times fewer carriers, each moving much faster, and the Hall voltage is thousands of times larger. For a square plate, roughly:
Hall voltage ≈ 0.7 × voltage across the plate × mobility × field
where mobility is how readily the carriers move (in m² per volt-second) and the field is in tesla.
| Plate material | Mobility | Hall volts per volt of drive, at 0.1 T | Verdict |
|---|---|---|---|
| Copper | — | under a millionth | Useless |
| Bismuth film | — | small | Only for strong fields (Antimony and Bismuth) |
| Silicon, n-type | 0.14 | about 0.01 | Good; the material of modern Hall chips |
| Germanium, n-type | 0.39 | about 0.03 | Good, and easy to make (Germanium, Gallium and Compound Semiconductors) |
| Indium antimonide | 7.7 | about 0.5 | Excellent, but harder to make |
The fluxgate. A Hall plate struggles with fields as weak as the Earth's. For those, use saturation. Soft magnetic alloy such as permalloy (Transformer Steel, Ferrite and Magnetic Shielding) magnetises very easily but stops — saturates — at a fixed limit. Drive a core of it back and forth into saturation with an alternating current. With no outside field, it saturates equally in both directions. A small outside field along the core helps it saturate one way sooner and the other way later. That lopsidedness shows up as a signal at twice the driving frequency in a separate pick-up coil, proportional to the outside field, with a phase that shows its direction. A good fluxgate resolves 1 nT — a fifty-thousandth of the Earth's field.
What you need
| Item | Use | Source |
|---|---|---|
| n-type germanium crystal, 1–5 Ω·cm | Hall plates | Germanium, Gallium and Compound Semiconductors |
| Tin with 1–2 % antimony; indium | Contacts on germanium | Antimony and Bismuth, Tin and Pewter |
| Fine abrasive, flat glass plate | Lapping plates thin | Precision Grinding |
| Hydrogen peroxide 30 % | Etching germanium | Hydrogen Peroxide and Oxygen Bleach |
| Permalloy tape 25–50 µm thick | Fluxgate cores | Transformer Steel, Ferrite and Magnetic Shielding, Nickel and Cobalt |
| Silicon-steel laminations | Clamp jaws | Transformer Steel, Ferrite and Magnetic Shielding |
| Enamelled copper wire 0.1–0.3 mm | Coils | Copper Wire |
| Amplifiers, oscillators, meters | Driving and reading | Amplifiers and Oscillators, Measuring Electricity, Electronic Test Equipment |
Where to find it
- Germanium and indium both come from the residues of zinc smelting — they hide in sphalerite, the zinc ore (Zinc and Brass). See Germanium, Gallium and Compound Semiconductors for the route.
- Antimony, for doping germanium and for indium antimonide, comes from stibnite: lead-grey, very soft needles that melt in a candle flame (Antimony and Bismuth).
- Bismuth occurs native as pinkish-silver metal in tin and silver veins, and as bismuthinite.
- Nickel for permalloy comes from garnierite (apple-green) and from pentlandite with copper ores (Nickel and Cobalt).
- Magnetite — black, heavy, strongly attracted to a magnet — is both the commonest target of a magnetic survey and the easiest test object.
The Hall sensor
Making a germanium Hall plate
- Choose the crystal. n-type germanium of 1–5 Ω·cm (hot-probe and resistivity tests in Germanium, Gallium and Compound Semiconductors). Purer material gives a bigger voltage but changes more with temperature.
- Slice. Saw a slice about 0.5 mm thick with a thin steel blade or wire fed with fine carborundum and water.
- Lap thin. Wax the slice to a steel block and grind it on a glass plate with fine abrasive and water (Precision Grinding), turning it often, down to 0.1–0.2 mm. Thinner gives more voltage but breaks more easily. Measure with a micrometer.
- Cut the plate. Scribe and snap a rectangle 6 mm long and 3 mm wide — length about twice the width. Make several; some will break.
- Etch. Warm the plates in 30 % hydrogen peroxide at 50–60 °C for 5–10 minutes, until bright, to remove the damaged surface layer. Rinse in distilled water. Hold them in plastic or glass tweezers from now on.
- End contacts. Lay a sliver of tin containing 1–2 % antimony across the full width of each short end and heat the plate on a hot plate at 350–450 °C under a stream of hydrogen or coal gas until the tin melts and wets the germanium. The antimony keeps the contact from forming a rectifying junction (Semiconductors and the Transistor).
- Hall contacts. Alloy tiny dots of the same metal, 0.3–0.5 mm wide, at the exact middle of each long edge, directly opposite each other. Put a third dot 1 mm from the middle on one edge; with a potentiometer between the two dots on that side you can trim the zero.
- Leads. Solder fine copper wires (0.05–0.1 mm) to all contacts. Twist the two Hall leads together right up to the plate (Interference, Screening and Earthing).
- Mount. Glue the plate to a thin strip of mica or glass, and cover it all with a thin coat of varnish or wax. Mark which face is "up".
The circuit. Feed the plate a steady current of 5–20 mA — from a battery through a resistor ten times the plate's own resistance, or from a transistor current source. A plate of the size above, from 2 Ω·cm germanium, measures a few hundred ohms end to end. Read the Hall voltage on a sensitive millivoltmeter or galvanometer, or through a DC amplifier (Amplifiers and Oscillators).
Calibrating
Wind a long solenoid: a tube at least five times as long as it is wide, wound evenly with a known number of turns per centimetre. Inside, away from the ends:
field in millitesla = 0.126 × turns per cm × amps
Ten turns per centimetre at 2 A gives 2.5 mT. Put the sensor in the middle, face across the axis, and read its voltage at several currents, both directions. Draw the line; its slope is the sensitivity. For stronger fields, measure a calibrated electromagnet gap, or compare with a known Hall plate.
Good and bad
- The reading with no field is near zero and trims to zero with the potentiometer. A large offset means the Hall contacts are not opposite.
- Turning the plate over reverses the reading exactly. If it does not, a contact is rectifying: redo it with more antimony.
- The reading is a straight line against the solenoid field. A good germanium plate on 2 V gives roughly 50 mV at 0.1 T.
- Warm it in your hand: the reading should change by less than a few per cent. Germanium plates drift above about 50 °C; keep them cool and drive them with a constant current.
The Hall switch
Follow the plate with a high-gain amplifier and a trigger (Electronic Counters) that switches fully on when the field passes a set level. Now a magnet passing gives a clean on–off pulse. Fix one small magnet to a wheel, shaft or door, the sensor 2–5 mm away, and count the pulses: a speedometer, a tachometer for an engine or a turbine, a flow meter, a door alarm. Put a magnet behind the sensor and it senses passing iron teeth of a gear wheel instead. Hall switches also tell a brushless motor's controller where the rotor is (Power Electronics and Motor Drives). Unlike a contact switch, they never wear out.
The current clamp
A current in a wire makes a magnetic field round it. Surround the wire with an iron ring and all that field is gathered in the ring. Measure the ring's field and you know the current — without breaking the circuit.
The clamp-on current transformer (AC only)
- Jaws. Stack silicon-steel laminations (Transformer Steel, Ferrite and Magnetic Shielding) into a ring with a window 3–5 cm across, cross-section about 1 × 1.5 cm. Cut it into two C-shaped halves and grind the meeting faces dead flat, so that they close with no visible gap. Hinge one end; spring the jaws shut (Springs).
- Secondary. Wind 1,000 turns of 0.2–0.3 mm enamelled wire on one jaw.
- Burden. Solder a 1 Ω resistor permanently across the winding.
- Read. The cable through the jaws is one turn. The winding carries a thousandth of its current; the resistor gives 1 millivolt per amp. Read with an AC millivoltmeter, or switch in 0.1 Ω and 10 Ω for other ranges.
The Hall clamp (DC and AC)
Make the same jaws, but cut a gap 1.5–2 mm wide in one jaw and glue the Hall plate into it. Nearly all the ring's magnetism crosses the gap, so:
field in the gap (mT) ≈ 1.26 × amps ÷ gap in mm
100 A with a 2 mm gap gives 63 mT, about 30 mV from a germanium plate: easy to read. This clamp reads direct current — of batteries, electrolysis cells and DC motors — as well as alternating. Zero it with the jaws shut on nothing before each reading, because the iron keeps a little magnetism.
Good and bad. Check against a known current through a ammeter: the reading should not depend on where the cable sits in the jaws. If it does, the jaws do not meet flat. A Hall clamp that reads differently after a heavy current needs zeroing; one that never returns to zero has jaws of hard steel — anneal them.
The fluxgate magnetometer
Building the sensor
- Core. Anneal permalloy tape 25–50 µm thick and 3 mm wide (Transformer Steel, Ferrite and Magnetic Shielding: hydrogen, 1,050–1,150 °C, slow cooling). Wind 8–12 turns of it round a ring bobbin of glass, ceramic or hard plastic 2–3 cm across. Do not use a metal bobbin, which would carry eddy currents, and do not bend or knock the annealed tape — strain ruins it.
- Drive winding. Wind 60–100 turns of 0.2–0.3 mm wire evenly round the ring, like a toroidal transformer, through the hole and round again.
- Sense winding. Make a rectangular former that fits snugly over the whole ring, flat. Wind 300–500 turns of 0.1 mm wire on it, so the coil's axis lies across a diameter of the ring. It measures the field along that axis only.
- Compensation. Wind 50–100 turns of 0.2 mm wire over the sense coil, in the same direction, for the feedback current.
- Mount the sensor in a non-magnetic tube of wood or plastic. Every screw, pin and wire near it must be brass, copper or aluminium — no iron, no nickel.
Driving and reading
- Drive the ring at 1–5 kHz from an oscillator and power amplifier (Amplifiers and Oscillators), with peaks of 0.2–0.5 A — enough to saturate the core hard each half-cycle. Look at the drive current on an oscilloscope (Electronic Test Equipment): it should show sharp spikes as the core saturates.
- Tune the sense coil with a capacitor to twice the drive frequency and amplify its output.
- The null method (simplest). Listen to the amplified 2f signal in headphones or watch it on the oscilloscope. Pass a direct current through the compensation coil from a battery and a potentiometer, with a milliammeter in series, and adjust it until the 2f signal vanishes. The compensation coil's field now exactly cancels the outside field along the axis, so the milliammeter reads the field. Calibrate it once in a solenoid.
- Automatic (better). Derive a reference at 2f from the oscillator with a frequency doubler, and use a phase-sensitive detector — a pair of diodes or a switching transistor that rectifies the signal in step with the reference — so the output is a DC voltage whose sign shows direction. Feed that back through the compensation coil. The instrument now nulls itself; read the compensation current on a meter or a chart recorder.
Good and bad
- Rotating the sensor 180° about a vertical axis should exactly reverse the reading. The average of the two readings is the offset; subtract it.
- Held still, the reading should hold steady within a few nanotesla over a minute. Wandering means temperature drift — insulate the sensor — or a poorly annealed core.
- Pointed north and tilted down at the local dip angle, it should read the whole Earth field, 25,000–65,000 nT, within a few per cent of the known value for your latitude.
Using them
The electronic compass
Mount two fluxgate sensors at right angles, level, one along the vehicle and one across it. The heading is the angle whose tangent is (across reading ÷ along reading); a small table or a microcontroller turns the two numbers into degrees. A third sensor, vertical, gives the full field. An aircraft's remote "flux valve" compass, in a wing-tip away from the engines, works this way. In a steel vehicle, turn it slowly through a full circle once, note how the readings are shifted and squashed by the vehicle's own iron, and correct for it — as phones do (Smartphones, The Compass).
Prospecting and finding buried things
| Target | Change in field |
|---|---|
| Body of magnetite ore | thousands to tens of thousands of nT |
| Basalt dyke or lava flow | hundreds to thousands of nT |
| Steel drum or pipe 1–2 m down | tens to hundreds of nT |
| Old kiln, furnace or hearth (fired clay) | tens to hundreds of nT |
| Filled pit or ditch | a few nT |
- Lay out a grid with pegs and string (Surveying and Levelling): lines 1 m apart for small buried features, 10–50 m for ore.
- Strip yourself of iron: knife, keys, belt buckle, nailed boots.
- Walk each line with the sensor at a fixed height, reading at each mark.
- Return to a base peg every 30–60 minutes. The Earth's field drifts by 20–50 nT a day; subtract the base peg's change from the readings taken in between.
- Plot the readings on squared paper and draw contours (Maps and Mapmaking). A compact buried object gives a peak paired with a smaller low on its side towards the nearer magnetic pole; the width of the peak at half its height is roughly the depth. The signal falls off very fast: twice as deep gives about one-eighth the signal.
The magnetic gradiometer
Mount two identical sensors on a rigid non-magnetic pole 0.5–1 m apart, one above the other, and read the difference between them. The Earth's field, its daily drift and distant geology are the same at both and cancel. Only near things, which affect the lower sensor more, remain. No base station is needed, and small features stand out. A gradiometer walked along 1 m lines finds the kilns, ditches and buried walls of old settlements and old furnaces that you may want to dig up and learn from.
The proton magnetometer
For an absolute reading that needs no calibration, there is the proton magnetometer: a bottle of water in a coil, briefly magnetised, then listened to as its protons precess at a frequency exactly proportional to the field — about 2,000 Hz in the Earth's field. How it works and how to build one is in Ultrasound, CT and MRI. It makes a perfect base-station instrument for surveys and a standard to check a fluxgate against.
Note Troubleshooting. Hall plate gives a reading with no field → Hall contacts not opposite; trim with the potentiometer, or redo one contact. Hall voltage differs in the two directions → a rectifying contact; remake with more antimony. Current clamp reads high and low as the cable moves → jaw faces not meeting flat. Fluxgate gives no 2f signal at all → core not reaching saturation: more drive current. Fluxgate reading wanders → temperature change, iron on the operator, or a strained core. Survey map full of stripes → base drift not removed, or sensor height changing as you walk.
Dangers
Danger Live cables and open current transformers. Mains and heavy DC cables can kill or burn. Clamp only round insulated cable, never between bare conductors, and keep your hands behind a guard (Wiring and Electrical Safety). Never leave a current transformer's winding open while the jaws are round a live cable: without its resistor the winding can develop hundreds of volts or more. Solder the resistor in permanently.
- Hydrogen for annealing and contacting is explosive mixed with air (Hydrogen, Oxygen and Gases).
- Hydrogen peroxide at 30 % burns skin and eyes (Hydrogen Peroxide and Oxygen Bleach).
- Field surveys on old battlefields or industrial sites may find unexploded munitions. Mark strong anomalies and leave them for people who know how to deal with them; do not dig.
What this unlocks
Contact-free speed and position sensing for engines, robots and brushless motors; current measurement on the Power Lines and Distribution; electronic compasses for Gliders and Aeroplanes, ships and Smartphones; aerial and ground surveys that find iron ore and map hidden geology for Mining and Tunnelling; and space instruments measuring the fields of other planets (Spaceflight and Spacecraft).
How it was first done
Edwin Hall, a graduate student at Johns Hopkins University, found the effect in 1879, using a thin leaf of gold on glass and a galvanometer so sensitive that the voltage was a barely visible flicker. It stayed a laboratory curiosity until semiconductors made it big: Heinrich Welker at Siemens found the high mobility of indium antimonide in 1952, and Hall sensors went into industry in the 1950s; cheap silicon Hall switch chips followed from the late 1960s.
The fluxgate was described by Hans Aschenbrenner and Georg Goubau in Germany in 1936. Victor Vacquier at Gulf Research in the United States built an airborne fluxgate in 1940–41 to find submarines from the air; after the war magnetometers flown over land and towed behind ships mapped ore, oil-bearing rocks and the magnetic stripes in the sea floor that showed the continents move. Swedish iron miners had already used a delicately balanced dip needle to find magnetite ore from the 1600s. Clamp-on ammeters appeared in the 1930s, probably first in France.
Source: content/entries/electronics/magnetometers.md