Relay and back EMF

cjdelphi:
Why not use an optoisolator ?

or was that ruled out?

Actually I have not tried an optoisolator yet. Do you have a particular IC in mind? I will buy one and try it. Thanks.