Arduino, solenoid driver and current limiter

I'll try again.
I think you shouldn't reduce power to the opto coupler and U$4.
Leo..