MagNav: A Dual-Core Magnetic Track Guidance Framework for Lighting-Invariant Navigation in Two-Wheeled Robots

MagNav: A Dual-Core Magnetic Track Guidance Framework for Lighting-Invariant Navigation in Two-Wheeled Robots

Arpita Kumari, Anupam Chatterjee, Richa Srivastava · N/A · 2026

planning control

Framework

N/A

License

N/A

Stars

N/A

Summary

Two-Wheeled Inverted Pendulum (TWIP) robots are useful for studying how to control systems that are naturally unstable and have fewer actuators than degrees of freedom. Adding autonomous line-following to these robots is challenging because steering and balancing are closely linked.

Abstract Summary

Two-Wheeled Inverted Pendulum (TWIP) robots are useful for studying how to control systems that are naturally unstable and have fewer actuators than degrees of freedom. Adding autonomous line-following to these robots is challenging because steering and balancing are closely linked. Most existing systems use infrared sensors, which can be affected by changes in lighting, such as sunlight or shadows, making them reliable only indoors. This paper presents a self-balancing robot that can follow a line using a magnetic track guidance system. By using a five-channel analog Hall-effect sensor array, the robot is not affected by optical interference. The control system uses a cascaded PID structure: the inner loop keeps the robot balanced using data from an inertial measurement unit with a complementary filter, while the outer loop adjusts steering based on the magnetic sensor readings. Stepper motors provide precise torque control without needing extra rotary encoders. For comparison, an optical sensor module was also included. Tests show that the magnetic guidance system keeps accurate tracking even in very bright lighting, over 10,000 Lux, while the optical system loses accuracy and sometimes fails. This design provides a reliable, lighting-independent solution for autonomous navigation in places like factories, warehouses, and outdoor paths.

Key Points

  • Two-Wheeled Inverted Pendulum (TWIP) robots are useful for studying how to control systems that are naturally unstable and have fewer actuators than degrees of freedom.
  • Adding autonomous line-following to these robots is challenging because steering and balancing are closely linked.
  • Most existing systems use infrared sensors, which can be affected by changes in lighting, such as sunlight or shadows, making them reliable only indoors.
  • This paper presents a self-balancing robot that can follow a line using a magnetic track guidance system.
  • By using a five-channel analog Hall-effect sensor array, the robot is not affected by optical interference.

Methods & Materials

We decomposed our system development into three main phases: defining the physical hardware, modelling the system kinematics, and designing the hierarchical control loop to achieve stable balancing and robust trajectory tracking. The mobile platform was designed with a low centre of mass since this is essential for the passive stability of an inverted pendulum [ 2 ] , [ 1 ] .

Figure 2 shows the arrangement of the internal components in side, bottom, and top views. The power is supplied by a 12 V, 5000 mAh battery housed on the upper deck.

Methods & Materials — MagNav: A Dual-Core Magnetic Track Guidance Framework for Lighting-Invariant Navigation in Two-Wheeled Robots
Fig. 2: Physical arrangement of the TWIP platform. The upper deck houses the power source, a 12 V, 5000 mAh battery. The lower deck contains the custom-built PCB, which integrates the ESP32 development board, an LM2596 buck converter, and A4988 stepper motor drivers. The bottom view shows the main drive assembly, comprising NEMA 17 stepper motors, an MPU6050 6-DOF IMU for pitch measurement, and two sensor arrays: digital IR and analog Hall-effect sensors.

Experimental Setup

The cascaded control architecture was assessed using a standard planar benchmarking track in order to examine its trajectory tracking performance and environmental robustness. As illustrated in Fig. 6 , the track is 15 mm wide and has a difficult 90-degree corner.

In order to allow for a direct comparative analysis of the two navigation methods, the same track geometry was built two times: once with black IR-absorbent tape for the optical testing phase and again with a continuous magnetic strip for the Hall-effect testing phase.

Experimental Setup — MagNav: A Dual-Core Magnetic Track Guidance Framework for Lighting-Invariant Navigation in Two-Wheeled Robots
Fig. 3: (a) Side CAD view of the physical platform. (b) Free-body diagram of the wheeled inverted pendulum, defining the pitch state ($\theta$), the horizontal translation ($x$), the wheel radius ($r$), and the distance to the centre of mass ($l$).

Results

In order to set up a comparative baseline, we first examined the conventional infrared tracking system. Figure 9 shows the severe vulnerability of the optical method. The top sequence shows the robot’s actual path, indicating that it successfully navigates the straight section and the first curve.

But when the robot enters the 10,000 Lux spotlight interference area at the 90-degree vertex, it fails entirely and moves off the black tape.

Results — MagNav: A Dual-Core Magnetic Track Guidance Framework for Lighting-Invariant Navigation in Two-Wheeled Robots
Fig. 4: System architecture of the cascaded control framework. The Perception layer fuses IMU and Hall-effect data. The Control Logic layer computes steering and balance corrections, which are combined in the Actuation layer to drive the physical system.

Sources and Demonstrations

Figures are reproduced from Kumari et al. See the full paper for experimental details and the project page, when the paper links one, for demonstrations and videos.

Share

Related Papers

AD-WM: Action-Discriminative World Models for Counterfactual Model Predictive Control
arXiv preprint

AD-WM: Action-Discriminative World Models for Counterfactual Model Predictive Control

Jiabin Qiu, Zixuan Chen, Hongye Cao et al.

Latent world models are typically trained to predict factual transitions, whereas model predictive control (MPC) must compare alternative actions from the same state. A model can therefore achieve low factual prediction error yet poorly distinguish candidate actions.

manipulation reinforcement-learning planning control
Code PDF Intermediate
GitHub ★ —