How to control servos though optocouplers

I will try to connect the emitter to the ground.

If you use the opto couplers (resistor in line with the LED) you do not have to connect the grounds of the two supplies together. However if you connect directly from the arduino you do have to connect the grounds together.