isolating the arduino output via optocopler

Did you think 4N26 will do the job?
I found on ebay for a nice price