Three dimensional sensing is essential in order that machines may operate in and interact with complex dynamic environments. Solid-state beam scanning devices are seen as being key to achieving required system specifications in terms of sensing range, resolution, refresh rate and cost. Integrated optical phased arrays fabricated on silicon wafers are a potential solution, but demonstrated devices with system-level performance currently rely on expensive widely tunable source lasers. Here, we combine silicon nitride photonics and micro-electromechanical system technologies, demonstrating the integration of an active photonic beam-steering circuit into a piezoelectric actuated micro cantilever. An optical phased array, operating at a wavelength of 905 nm, provides output beam scanning over a range of 17° in one dimension, while the inclination of the entire circuit and consequently the angle of the output beam in a second dimension can be independently modified over a range of up to 40° using the piezoelectric actuator.