Connect your diode between the two solenoid cables this will prevent current discharging back through the circuit when the solenoid coil discharges.
Solenoid door lock circuit.
The solenoid door lock will remain open until the hall effect sensor output is high.
Get it as soon as thu sep 3.
Only 4 left in stock order soon.
Solenoid lock needs 9v 12v to operate and raspberry pi gpio pins can supply only 3 3v so a 12v external power source is used to trigger the lock with the help of a relay.
The circuit diagram for raspberry pi solenoid door lock is very simple as you only need to connect the solenoid door lock to raspberry pi.
Now when the door again reaches near to the hall sensor while closing hall effect sensor status will change to low due to the magnetic field generated by the magnet attached at the door and the lock will be closed again.
Fc mxbb dc 12v electric lock cabinet lock furniture locks for file cabinet door solenoid lock black 5 0 out of 5 stars 1.