en fr

Ball in wheel

Controller design with Sysquake and Calerga VR

Virtual Experimentation

Run   reset reset viewpoint fullscreen

Observe the system to get a basic understanding of its main features: the d.c. electrical motor is on the right and drives a large wheel. Circular rails are fixed around the wheel and a ball rolls freely inside them. The ball movement is limited to the lower part of the disk to force it to stay in contact with the rails.

Then interact with the system:

  • Drag a point not on the system to move the point of view around the system. You can revert to the initial view with the target icon reset viewpoint, and restart the simulation with the reset icon reset.
  • Drag the wheel to make it rotate. It's difficult because you can only apply a limited force and the motor counteract your actions.
  • Drag the ball on the rails. Keep the ball still for a while and observe the movements of the wheel. What happens?
  • Drop the ball from some distance to its equilibrium position. What happens?
  • You can reduce the power consumed by your computer by unselecting the “Run” checkbox to pause the simulation.


For simulation and controller design, the system is represented as a state-space model. It can be split into two subsystems: the electrical drive with the d.c. motor, and the mechanical part with the wheel, rails and ball. These subsystems have a mutual influence, not an input-output connection where causality is clearly defined.


Controller design

The transfer function of the two subsystems and the controller parameters can be computed with Sysquake.

Sysquake js