optoisolator triggered by arduino
Here is the standard Arduino powering LED circuit.  It is shown connected to D13, but the same circuit for ANY of the Digital (or analog, for that matter) output pins.  There is no siginficant different when driving an opto-isolator internal LED .