The well-established relay-driving circuit uses an optocoupler to isolate the grounds and noise coupling between the low-voltage digital-control signal circuit (left) and the relay as load (right). The Darlington transistor provides sufficient current gain to energize the relay coil. ... This, in turn, energizes the relay.