it would be a very poor quality opto that could not provide the isolation necessary to protect a pic from a relay coil spike . as others have said the "flyback protection" diode goes across the coil .
ps the opto's o/p transistor may not survive the kick but isolation should be maintained




Bookmarks