This paper reports the development of an optical power regulator based on surface-micromachined variable optical attenuators (VOAs). By use of closed-loop control circuits, each VOA module implements the functions of power setpoint tracking, disturbance rejection and ripple suppression.