Trying to get an RFID lock to work

1N4001 diode, 100 uF capacitor. Google "arduino solenoid" for better examples.