Deep look at Hall sensors, hysteresis, and comparator circuits to build switches and latches. https://www.bristolwatch.com/hall_effect/index.html Some graphics courtesy of Melexis Engineering.
Home