electric door lock raspberry pi

electric door lock raspberry pi

electric blinds for bifold doors

Electric Door Lock Raspberry Pi

CLICK HERE TO CONTINUE




You can purchase a smart lock that you control with your phone easily enough, but it's much more fun to actually make one yourself. YouTubers Hacker House make one with a Raspberry Pi. The idea here is to power a simple lock mechanism with a Raspberry Pi, a high torque servo, and some 3D printed parts. The smartphone software is handled by Blynk. The end result isn't pretty, but it certainly does the job and you can lock or unlock the door from your smartphone. Head over to YouTube for the full parts list and code. How to Make a Smartphone Connected Door Lock [Hacker House]An RFID door lock using a Raspberry Pi, ID-20, JS-1124, AdaFruit LCD screen, a push button, and a magnet lock. See the wiki project page here: This code is broken into two parts to make the access control system (ACON) work with Seltzer. The python files stored in the RaspberryPi folder go in the /usr/home/pi folder. The Seltzer PHP files need to be uploaded via FTP to the same web server where you've installed Seltzer.




If you don't want it to interface with Seltzer you could take out the part that updates the whitelist file and just populate the file manually with the valid users and their RFID serial numbers. The whitelist file should have a JSON array like this: There are several variables to set in all three Python files in the RaspberryPi folder. They are all at the top and usually are ALL CAPS. Change these values if you need to such as the USERNAME and PASSWORD for your email server. You need to run a few commands on the Raspberry Pi command line (terminal) to get it to run the Python scripts correctly. sudo apt-get install python-dev python-rpi.gpio Then get the AdaFruit LCD screen library and setup the I2C pins on the GPIO by following these directions: Finally, set up the RPi so that it runs the main python script as soon as it boots up: add this to the end of the cron: @reboot python /home/pi/RaspberryPiRFID.py & then save and exit and reboot the pi.




You will need the following parts for this project: Raspberry Pi, either model A or model B will work, running the Raspbian operating system. Your Pi will need access to the internet to setup the software, so make sure you have either a wired or wireless network connection setup with your Pi. Depending on where your camera and Raspberry Pi can be placed inside your box, you might need a longer or shorter camera cable. Small box that can fit the Raspberry Pi and locking mechanism inside. I found an inexpensive plain wooden box at a craft store, and finished it with wood stain and polyurethane. Look for a box that has hinges which are screwed in from the outside of the box. Although not terribly secure, it will allow you to disassemble and open the box in case the locking mechanism fails to open. Small servo or lock solenoid for the locking mechanism, depending on how your box can be latched shut. A servo that rotates a latch can work with most boxes that open from the top or side.




A lock solenoid can work with boxes that have a door or drawer. See this locking drawer project for information on using a lock solenoid. Note: the software for this project is written to use a servo as the locking mechanism, so if you use a lock solenoid you will need to modify the software to actuate the lock with the solenoid instead of the servo. Momentary push button that can mount to the box. Depending on how thick your box is, you might need a smaller or larger push button. 10 kilo-ohm 1/4 watt resistor to use as a pull-up resistor with the push button. Power supply for the Raspberry Pi and servo or solenoid. For powering a micro servo, a 4x AA battery pack is a simple option. Wood, wood glue, and fasteners for building a latch mechanism and frame to support the Pi inside the box. The exact material will depend on your box, but you can see further below how I used 1/4" dowel and thin bass wood to build the frame and latching mechanism for my box. Hookup wires to connect the switch, servo, and servo power supply.




Female hookup wires work well for connecting directly to the Raspberry Pi GPIO pins, or you could use the Pi cobbler with a small breadboard. AssemblyThe box you use for your project will dictate exactly how the Raspberry Pi, servo, and latching mechanism need to be mounted. Read the notes below for tips on how to construct your hardware, based on how I built mine: WiringThe electronics in this project are fairly simple and involve connecting a servo and push button to the Rasperry Pi. If you have never used these devices with a Raspberry Pi, read the following tutorials for a good overview of their usage: Raspberry Pi Lesson 4: GPIO Setup Raspberry Pi Lesson 8: Using a Servo Motor Bread Board Setup for Input Buttons For the servo, connect the signal line to GPIO 18 of the Raspberry Pi. To power the servo I connected a 4x AA battery pack as a power source--connecting the servo to the Pi's 5 volt output could cause problems from noise or excessive current drawn by the servo.




The push button is attached to GPIO 25 of the Raspberry Pi, with a 10 kilo-ohm pull-up resistor to 3.3 volt power from the Pi.See the diagram below for how to wire the push button and servo to the Raspberry Pi. New (7) from $6.21 Ships from and sold by FAR CLOUD. Specifications for this item 0837L DC 12V 8W Open Frame Type Solenoid for Electric Door Lock uxcell DC 12V Open Frame Type Solenoid for Electric Door Lock FREE Shipping on orders over . DetailsDocooler RFID Proximity Door Entry Access Control System + 10 Key Fobs (Style 1) FREE Shipping on orders over . Product Name : Door Solenoid;Material : Metal, Electronic Parts;Color : Silver Tone Rated Voltage : DC 12V;Rated Stroke & Force : 10mm, 50gMounting Hole Size : 6.8 x 3mm/0.26" x 0.12"(L*W) Total Size : 6.6 x 4 x 2.7cm/2.6'' x 1.5'' x 1''(L*W*H);Cable Length : 24cm/9.4'' Net Weight : 147g;Package Content : 1 x Door Solenoid Electromagnet Designed with the open frame type and mount board, high power.

Report Page