Connect cathode side of green led to pin 6 and cathode side of red led to pin 5 in the arduino uno.
How to connect magnetic door lock.
Magnetic lock is enabled.
It is very important that you consult with your fire marshall and verify your local laws before you even entertain the thought of installing a lock down type system.
Mag lock magnetic door lock system magnetic door locks in this article i am going to explain how to connect a latch switch to a magnetic door lock system or door strike.
When installing a magnetic lock you will need to drill holes in the wall and the door to screw in the lock itself and run wires through the wall to connect it to a permanent power source.
How to install it.
Wiring diagram electromagnetic door lock em lock push button power supply 12v carane ngonek kunci magnet.
The other end of each resistor is connected to ground.
The metal bar portion of the magnetic lock should be placed adjacent to the electromagnetic section.
Then connect the anode side of each led to a 330 ohm resistor.