an optical scanning system includes a light source to generate a light beam . an oscillatory microelectromechanical system including a mirror deflects the light beam in a predetermined manner . the light source and microelectromechanical system are formed in a silicon substrate . rotational shafts in the microelectromechanical system facilitate oscillatory movement of the mirror .