Dynamics of Electromechanical Systems