element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Attaching Door Lock and Doorbell with Raspberry Pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 4 replies
  • Answers 3 answers
  • Subscribers 665 subscribers
  • Views 909 views
  • Users 0 members are here
  • frontpage
  • electrical wiring
  • circuit simulation
  • raspberry_pi
  • automotive_door_locks
Related

Attaching Door Lock and Doorbell with Raspberry Pi

umairassad
umairassad over 8 years ago

CONCEPT OF PROJECT :

Iam a Computer Scientist and working on a home Automation Project, pi have a camera attached when button is pressed captures the image of person at Home Entrance and matches against "Members of House" in result of facial recognition it will Open Door and if not, Android user will receive a notification (Image from entrance, Seeking permission for ALLOW/DENY ) and lock will operate accordingly image

 

HARDWARE MODULE:

Currently iam in the test phase so iam using:

  • Breadboard attached with GPIO Pins of Pi
  • Green LED (For YES/Open Lock)
  • Red LED (For NO/Don't open Lock)
  • 10K Resistors for LED's
  • Push Button

 

 

image

 

I have a question as i don't have expertise in Hardware stuff, I want to Replace My LEDs with a DOOR LOCK , and instead of push button i want a DOOR BELL  can anybody tell me what alternate things i'll be needing?
Ps Iam from Pakistan here Voltage is 220-240.

  • Sign in to reply
  • Cancel
  • shabaz
    0 shabaz over 8 years ago

    Hi Umair,

     

    If you can control a relay then you should be able to drive any electronic bolt. So, you'll need a relay, some electronic bolt that suits your needs, and a small bit of circuitry to control the relay. There is information and the circuit diagram on how to control a relay with the Pi here, in the output circuits sections, 'Output Design Tips' tab: Raspberry Pi GPIO Explained

    Any doorbell push switch can directly replace the push-switch you have on your breadboard right now.

     

    Also, you may need to consider what happens if there is a power outage and the Pi is powered off. In an emergency that could be dangerous if the doors cannot open through manual means. Maybe the electronic bolts have manual key or some other override.

    Furthermore, even when the power recovers, the Pi might not if it was shut down ungracefully and the micro SD card contents could be corrupted.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • balearicdynamics
    0 balearicdynamics over 8 years ago in reply to shabaz

    Hello Umair.

    shabaz is right that you can solve everything with relay. To make things easier a good approach to manage the high voltage can be using the PiFace DigitalPiFace Digital for the Raspberry PI that provider just a couple of relays and some useful circuitry to setup and control them using Python. To work during the development phase of your project you can use also the PiFace emulator (software only) for the Raspberry PI and connect hardware only during the testing phase.

     

    I know that in your country the high voltage power is 220-220V AC but if I am not wrong (I recall a memory from about 10 years ago) the doorbell and door lock works at 12 or 24 Vcc. It is anyway a high current  that require relays but I suggest to verify this to calibrate correctly the kind of power you should manage.

     

    Also in the case you don't plan to use a PiFace Digital shield maybe useful to use the Emulator just to test the logic of your circuitry respect the part related to relay control.

     

    Enrico

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • mcb1
    0 mcb1 over 8 years ago in reply to shabaz

    Most of the door locks are 12v, and generally fed via a battery to overcome the power loss situtation.

    This method allows 'fire drops' and emergency egress where the power is removed from the lock, which makes then open.

     

    The door strikes are the cheapest, but they require some modification to the door frame, and usually have a different handle that operates from the inside but is locked on the outside.

     

     

    You'll need to use a relay as shabaz suggested.

    The 5v relay boards can be driven from a Raspberry Pi however the optically isolated ones need to have 3v3 on the control side and the series resistor reduced in value to make them operate correctly.

    There are relay boards that use a transistor to drive the relay coli and these work fine.

     

     

    mark

    • Cancel
    • Vote Up +5 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • vandia
    0 vandia over 8 years ago

    To add to what the others said:
    If you want to do a test of a homebrew version, without paying for electric locks, you could use a solenoid that retracts when power is lost, so if there is a power outage, the door unlocks. Sure, it's a little less secure, but if you can't afford those electric locks, or just are in a "build it yourself" mood, it gives you another option.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube