Trying to get an RFID lock to work

Could you maybe expand on that? What kind of diode/capacitors would you recommend?