What Are Hall Effect Sensors and How Do They Work?

What Is the Hall Effect?

The Hall effect is a principle of magnetic fields discovered by Edwin Hall in 1879. He found that placing a magnet next to an electrical current flowing through a conductor would cause the electrons to move with the magnet’s position. This affects the current's voltage as the electrons are pushed to either side of the conductor. The resulting changes in the voltage can be measured to determine the distance of the magnet from the conductor.

Put more simply, moving a magnet closer to an electrified piece of metal will cause the electric current to react, and this reaction can be measured. A Hall effect (HE) sensor measures this change in voltage and returns a value to the computer.

This principle is utilized in countless technologies today across multiple fields. One of the most common uses is in a car’s wheel speed sensor. These sensors utilize the Hall effect to measure the rate at which a wheel is rotating, which is then reported back to the car to control things like cruise control, ABS, and speedometer.

Hall effect sensors have been used for decades in computer technologies too. Honeywell produced the first Hall effect keyboards in the 1970s and ’80s, but the technology eventually fell out of favor as more cost-effective keyboards became widespread. It only began resurfacing in the 2010s with manufacturers like XMIT producing small batches of modern HE keyboards.

Hall Effect Advantages in Peripherals

The largest improvement Hall effect sensors offer is response time. Because an HE switch relies on magnets instead of physical contact to register an input, it can theoretically register information far faster than a keyboard's traditional mechanical switch. This is one of the main reasons HE switches are popular in esports and competitive gaming, where milliseconds matter.

For the average keyboard enthusiast, an HE switch’s most impressive feature is how the sensor registers user input. A traditional mechanical switch will only return two binary values of “on” and “off” at static positions. It will tell your computer when a switch is being pressed past a certain point but doesn’t provide any other information. A Hall effect switch, on the other hand, can return a multitude of numbers that correlate with the switch’s position. These values range from near the top of the switch, through the middle of the keypress, all the way to fully compressing the switch. As a result, the computer will know exactly how far the key is being pressed down and can provide variable inputs based on this information.

This lets you adjust the point at which a switch activates. If you want the switch to immediately register a keypress when you start to press, it can do that. If you want to wait until the key is entirely pressed down before anything happens, that can be done as well. This can be used to prevent mis-inputs or to provide multiple inputs from the same key, such as a half-press being programmed to walk in a game, and a full press being programmed to run.

Closeup of white keyboard with wooden trim and a missing key
Photograph: Henri Robbins
Photograph: Henri Robbins

Along with controllers, you can also purchase Hall effect joysticks for existing systems. One of the most popular is GuliKit's drop-in Hall effect joysticks drop-in Hall effect joysticks for the Nintendo Switch. These can easily be swapped into standard switch Joy-Cons with a screwdriver, patience, and some repair know-how. Besides this, there are similar kits for other devices along with full controllers that come stock with HE sticks.

These sticks are impressive: They’re precise, reliable, and incredibly smooth to use. While they aren’t as customizable as Hall effect switches in keyboards, they have proven over the years to be incredibly robust and reliable. However, they aren’t without downsides. A set of two will typically be at least $20, you'll probably void the factory warranty during installation. But if you’re already dealing with stick drift, an upgrade kit might be preferable over sending your Joy-Cons out for repairs or spending $80 on a new set that will eventually start to drift.

The Disadvantages of Hall Effect Sensors

The largest downside of Hall effect keyboards is the price. While not massively more expensive than equivalent non-HE keyboards (Keychron’s HE models typically cost $20 or $30 more than the mechanical switch variant), the technology is typically only offered on more premium models. Reputable Hall effect keyboards start around $130 but can surpass $200 for more premium models or larger layouts.

White computer keyboard with wooden trim
Photograph: Henri Robbins