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.
Solenoid door lock circuit.
Fc mxbb dc 12v electric lock cabinet lock furniture locks for file cabinet door solenoid lock black 5 0 out of 5 stars 1.
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.
Free shipping on your first order shipped by amazon.
Solenoid electric lock dc 12v mini electric control lock tongue latch assembly solenoid for file cabinet drawer door 4 5 out of 5 stars 2 more buying choices 31 39 1 new offer.
Connect your solenoid to separate lines on your breadboard one to the 5v power from step 2 the other needs to connect to the collector middle of the transistor.
Get it as soon as thu sep 3.
The solenoid door lock will remain open until the hall effect sensor output is high.