Schon mal an einen Optokoppler gedacht?