When switching inductive loads using a digital output, a protective circuit (e.g. a freewheeling diode or a varistor) is required.