Serial controller for 2 relays