Conectar un Relay - Verificando los cálculos y materiales

Thank you for your help. It was useful. Before I buy the materials and start soldering I would like to know few things:

  • The relay originally was for controlling a electromagnetic lock. Now, because of the structure of the relay, I added a second port for another lock. ¿could my circuit damage my Arduino because of that?

  • Checking the materials:

  • 4 - 1N4007 diodes
  • 1 - 4.7kOhm resistance
  • 1 - RU GS Relay HJR 1-2C D-12V (1A 120VAC / 2A 24VDC).
  • 1 - 2N2222 NPN Transistor

I'm attaching my sketch made with Eagle (it took me long time to do so, it's very difficult to me to operate Eagle). Thank you again for your help.

Relay Arduino.zip (261 KB)