Controller with servo and relay