Protecting Arduino connected to a power supply?

Vanyamba:
The keyword is optocoupler.

The main problem here is that the servos and the Arduino share a power supply. An optocoupler won't help with that.