In many applications, the use of slender and light flexible structures has increased due to the requirement of more efficient structures. One objective of this work is to generate a model of a single-link flexible robot, which includes rotational actuator, piezoelectric actuators, different kind of sensors, acceleration and deformation. The model is obtained under a classical mechanics approach: Lagrange Euler energy balance. The dynamics of the actuators is also included. Some parts of the resulting model are calculated using symbolic programming software, where as other are implemented and calculated dynamically during simulation. The resulting model is simulated in Matlab Simulink. The second objective is to develop an active vibration sliding mode controller (AVSMC) which include an observer to get an estimation of the rate of change flexible variable. The boundary values required for the implementation of the AVSMC are obtained from the formulated model. Experimental results show the effectiveness of the proposed controller.