Potentiometers vs. Hall‐Effect Sensors - ZadenRB/OpenGCC_Firmware GitHub Wiki
Overview
There are two methods used to measure joystick values on GameCube-style controllers (OEM and third-party). Potentiometers are the most common technology for joysticks in general, and are used in the original OEM GameCube controller. Hall effect sensors have gained popularity more recently, and are used in modern third-party GameCube controllers, such as the PhobGCC. While other technologies exist, such as the optical joysticks used in N64 controllers, here we'll focus on potentiometers and Hall effect sensors.
Potentiometer
What is a potentiometer?
A potentiometer consists of power and ground connected by a resistive material, and a wiper that slides along the resistive material and is connected to the output. Based on how much of the resistive material is between power and the wiper, the output voltage varies. In a joystick, each axis of the joystick is connected to a potentiometer. As the joystick rotates, the wiper is moved, changing the output voltage. The voltage varies linearly, so potentiometer output can be directly converted to joystick position.
Advantages of potentiometers
Potentiometer output's linear correlation with stick position makes converting raw measurements to stick values extremely simple. Additionally, since OEM GameCube controllers were designed for use with potentiometers, the mechanism for their attachment to the stickbox is very reliable.
Disadvantages of potentiometers
The primary disadvantage of potentiometers is that the motion of the wiper across the resistive material wears the material down over time. This can result in stick drift or PODE (Potentiometer Oddity Degradation Effect), wherein readings become inconsistent with the physical position of the joystick. While certain forms of PODE can actually be beneficial for certain inputs, whether a potentiometer ever has "useful" PODE and how long it lasts is random. Kadano's excellent Twitter thread on the topic goes into more detail. Ultimately, potentiometers need to be regularly replaced to maintain consistent controller performance.
Hall Effect Sensor
What is a Hall effect sensor?
A Hall effect sensor measures the strength of a magnetic field by measuring a Hall voltage. As charge flows through a material, the presence of a magnetic field causes the charge carriers to follow a curved path, resulting in the Hall voltage across the material orthogonal to the direction of the current. In a joystick, each axis of the controller has a magnet mounted to it, with a Hall effect sensor below. As the joystick rotates, the distance from the magnet to the Hall effect sensor, and therefore the magnetic field applied to it, changes. However, the magnetic field does not vary linearly as the magnet rotates, so additional calibration and linearization is needed to convert the Hall effect sensor output to joystick position.
Advantages of Hall effect sensors
Since Hall effect sensors rely on the magnetic field of a permanent magnet, they aren't susceptible to wear over time in the way that potentiometers are. They have an effectively infinite lifespan.
Disadvantages of Hall effect sensors
Due to the non-linear nature of the Hall effect sensor's output, some additional complexity is needed in controller firmware to handle it, but from a user perspective this is largely a non-issue. The only other downside for Hall effect sensors is that the mounting systems for magnets are still being fine tuned, and poor mounts can fail leading to a non-functional joystick. However, with solid mounts they should be no less mechanically reliable than a potentiometer mount.
Conclusion
Hall Effect sensors have an advantage in consistency and longevity at the cost of some processing overhead, which in practice only affects developers of controller firmware, not end users. However, since GameCube stickboxes were designed for potentiometer usage, installing potentiometers will likely continue to be a simpler process than attaching magnets. Given the need to replace potentiometers as they wear, the value of this easier installation may vary by user.