This paper presents the control of an underactuated two-link robot called t
he Pendubot. We propose a controller for swinging the linkage and rise it t
o its uppermost unstable equilibrium position. The balancing control is bas
ed on an energy approach and the passivity properties of the system.