Triggering electromagnets

This should "complete" the circuit, draining the capacitor through the coil causing a magnetic field.

Apart for the fact that your circuit wouldn't do that, why do you want to do that. At best it would turn the coil into a magnet for only a short time. Do you not want the coil to be a permanent magnet when the arduino controls it to be?