CONTROL ALGORITHMS AND HARDWARE FOR A