door lock for arduino

The requested URL /?q=rfid-door-controller was not found on this server.I wanted to make an easy and secure way to enter my garage. RFID was the best way to unlock my door, even with my hands full I can unlock the door and push it open! I built a simple circuit with a basic ATMega 168 arduino chip and a ID-20 RFID reader to control an electronic door lock. The circuit consists of 3 separate parts, a Reader to read RFID tags, a Controller to accept data from the reader and control the output of the RGB LED and the Electric door lock. The door lock is first installed in a door and tested with a 9v battery to ensure correct installation. In most cases you want a Normally Open circuit on the door lock, or Fail Secure. This means the door stays locked when no current passes through it. When 12vDC is passed through the electromagnet in the door lock, a plate in the lock gives way and allows the door to be pushed open freely. The reader is placed on the outside of the door and is separate from the controller on the inside so that no one can circumvent the security by breaking open the Reader and trying to short circuit the reader.
The controller receives serial data from the Reader and controls the RGB led and the Door lock. In this case I have put both on separate bread boards for testing. Here is a video overview of the system in action Read on to see how to build one for your self! All of the code, schematics, and PCB designs have been tested and refined. They are all posted here as of 8/9/2010 Updated video of the final system installed and working. where I bought them. This is the basic set of parts you need to build and arduino and a circuit to read RFID tags into the arduino. I am assuming you have a breadboard, power supply and hookup wires already. ATmega168 with Arduino Bootloader $4.95 Capacitor Ceramic 22pF $0.25 (x2) Resistor 10k Ohm 1/6th Watt PTH $0.25 Mini Push Button Switch $0.35 Triple Output LED RGB – Diffused $1.95 Either one of these, 20 has better range, 12 is smaller RFID Reader ID-12 $29.95 RFID Reader ID-20 $34.95 Break Away Headers – Straight $2.50
RFID Tag – 125kHz $1.95 TIP31A transistor (radio shack/local electronics store $1.50) Door Lock is from ebay. Door Fail Secure access control Electric Strike v5 NO $17.50 (kawamall, bay) The first step to building a RFID door lock with a basic Arduino is to bread board out a basic working arduino. Most Arduino pre-flashed ATMega 168 chips come with the default blink program pre installed. Connect a LED to digital output 13 and verify that everything is working. The hardware portion of this RFID reader would be too simple if we used a regular arduino with built in USB programmer. Since I plan on putting this into the wall and not touching it again I dont want to use a big bulky $30 arduino board when I can buy a $5 ATMega 168 and make a much smaller custom PCB. Because I chose to make a basic Arduino circuit myself I need an external USB->Serial FDIT programmer. I have included Eagle schematics of the controller with a power supply built from a 7805 voltage regulator.
In testing I used a bread board power supply. To get an arduino up and running all you really need is the ATMega168 with the arduino software flashed on it, 2x 22pF capacitors, 16mhz crystal, 10k ohm resistor, push button and a breadboard. The hookup for this is well known but I have included the entire schematic for the circuit. The arduino is going to trigger 4 outputs, 1 each for Red/Green/Blue LEDs, and 1 to trigger the TIP31A to send 12vDC to the door lock. pella patio door installationThe arduino receives serial data in on its Rx line from the ID-20 RFID reader.timber sliding doors for sale melbourne Step 3: Build the RFID Readerprice on pella patio doors
Now that you have your arduino bread boarded and working you can put together the RFID reader portion of the circuit that will contain the ID-10 or ID-20 and RGB LED to indicate the status of the circuit. Remember that the reader will be outside and separate from the controller inside so that someone cannot easily break in. To build this, we are going to send 5v/Ground over from the primary bread board to a secondary bread board we are building the Reader on. made to measure upvc bi fold doorsAlso send over 3 wires from 3 of the arduino output pins to control the RGB LED, one for each color. bi folding doors configurationsOne more wire, Brown in the pictures, will be a serial connection for the ID-20 to talk to the arduino’s Rx serial input. used 2 door kia forte for sale
This is a very simple circuit to connect. LED’s get resistors and a few points on the ID-20 are tied to ground/5v to set the correct status. To make it easier to breadboard the ID-10/ID-20 Sparkfun sells a Breakout board that allows you to attach longer pin headers that are spaced to fit a bread board. This part and the pinheaders and listed in the parts list. The schematic should be strait forward and easy to follow.pocket door hardware pewter Major Components in Project ATmega168 with Arduino Bootloader Resistor 10k Ohm 1/6th Watt PTH Mini Push Button Switch Triple Output LED RGB – Diffused For more detail: Arduino RFID Door Lock We recommend EasyEDA for electronic circuit design. From Schematic Drawing to PCB Production, Just Need One ToolChallengeThere are many products available as Smart Lock on the market, few of them looks great and affordable but none of them are compatible with the European BS EN 1303: 2005 cylinder locks.
Europe door lock standards are different compared to the door lock standard of North America. Basically there is no door handle outside of the door. From the outside, the door can only be opened by using the key. Therefore, European doors have a single lock cylinder that is used to lock and open the door. Because of that, the mechanism I've built has to be completing three full turns from side to side. And also cylinder needs enough torque because of the internal mechanics and springs of the lock itself.ObjectivesDevice must be cheap. This means no expensive motors or sensors can be used. Device must be presentable. I don't want to see any cables, electronics not even the motor itself on my apartment door (since it is a very small apartment).No modifications on door itself. I am a tenant at this apartment right now so I can't modify anything that can't be fixed.It should be secure. Most of the RF devices are vulnerable to replay attacks, the lock should be safe enough.ConceptConcept uses a remote device to trigger the lock cylinder to be turned 360 degrees to both lock, unlock or open the door by using an geared motor which is attached to the inner face of the door.
When I'm looking for a cheap way to position servo accurately, I've realized that I don't need to know the position of the servo. I only need to know when lock cylinder is triggering the mechanism of the lock. I know lock needs torque to trigger and torque requires enough current that I can easily measure with help of a small and cheap current sensing module. A current sensing module can be placed anywhere on the circuit and it allows me to build a more compact design.A hall effect current sensor uses electromagnetism to calculate the current. Since voltage never goes through the sensor, you can use it in both AC and DC. Sensor gives an analog output, a voltage between 0-2.5v for negative and 2.5-5.0v for positive current readings. I can use a micro controller with an ADC to read voltage and convert it to current with a formula.Current = Voltage You Applied / The Resistance of your LoadMicro controllerI choose ESP8266 module on NodeMCU Devkit because it handles all connectivity features that I need for this project on an single chip.