Abstract:
To better understand the principle of force balance, an experimental system for the stability control and data visualization of a rod was designed based on the balance principle and microcontroller technology. Through force analysis, the torques produced by gravity and inertial forces on the rod were accurately calculated, and the compensating torque was determined, providing a theoretical basis for control algorithms. By employing advanced microcontroller technology and control algorithms, the system receives and processes sensor data in real time, quickly calculates the required compensation torque, and controls the motor to apply appropriate torque to maintain the stability of the rod. The system visually displays the tilt angle and position data of the rod through an LCD screen, achieving real-time status monitoring and data visualization. Users can adjust control strategies in a timely manner. In addition, a virtual oscilloscope is introduced to display the tilt angle data in the form of curves, enabling users to observe the variation of the tilt angle over time more intuitively and optimize the control algorithm parameters. This design improves system stability, response speed, and observability, providing insights for precise automatic control theory and teaching practice.