3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino RFID Door Lock

Step 5Expand

This is only some of the cool stuff you can do with RFID. You could expand this much further with a LCD output, logging of who enters and when, network/twitter connection etc. I plan on making a finished PCB version of this circuit. I have never made a PCB before so I am still working on the design and layout of the parts. Once I have them complete I will post them as well. I encourage anyone to take the code I have written and modify it to do even more cool things!
« Previous StepDownload PDFView All StepsNext Step »
14 comments
May 23, 2010. 8:52 PMpingywon says:
I own a pizzeria and the delivery drivers come in and out of the back door all the time. I have taken your schematic and the modified version of your code (including the eraser card) and modded it myself a little further. I am currently installing this as a system on my back door. I have currently finished all the wiring and am just waiting for a few more parts from spark fun. I have made some changes to fit my actual wants and needs of the location, but overall it is the same lay-out. The whole project has proven REALLY fun so far and I hope to have it all wrapped up with in a week or so.
May 30, 2010. 10:05 PMpingywon says:
So like I said it should be a week later and my project is all done. I have some pics and am uploading a "demo" video to you tube right now. I used RJ45 to run everything and with the 8pins there was one short coming of my version of the project. I will let all of you be the judge to see if you can figure it out. The whole system performs flawlessly....so far anyway.

If there is anyone who decides to do anything else with this code I would really love to see it or even help you test it.


The vid link doesnt show up as a reply. I'll make another post with it.

Jun 1, 2010. 5:48 AMpingywon says:
Thanks man. I really appreciate that. I havent soldered anything this "complicated" in about 2 years, so my soldering started out terrible and by the time I was done it was looking great. I wanted to go back and resolder the whole thing, but I decided to leave good enough alone.

The "outside board" with the rfid reader... I enclosed it in a water proof box, but I also took the time to "paint" all the connection with "Liquid Electrical tape" to help water/moisture proof the whole thing.

Like I had said before if anyone had an additions to the code or design, I would love to see it. Maybe even impliment some of it.
Jun 1, 2010. 8:07 PMpingywon says:
I like the idea of one time use cards or "day pass" cards. In order for this system to meet my needs perfectly it would need to have an hours of operation type feature. So that my workers would not be able to enter the door in the middle of the night (11pm-7am) but at the same time I would like my card to work.
That is a feature I would like.
I also think im going to put a simple switch push button on the Arduino RX line so that I can push the button and break the connection between the ardunio and the ID-12 so that I can just jack in to the black box inside housing the ardunio to change the code. instead of having to curently open the box and disconnect the wire.
I was going to use software serial, but I just wanted to get the project done.

Please let me know as you make any new code. I would love you review it and possibly even help test it.
Jun 21, 2010. 10:41 PMmontugar says:
hey, i was wondering if you could use a 328 chip instead of the 168, from what ive been able to dig up, there isnt much diference. ill look up their datasheets to make sure
Aug 21, 2010. 7:49 AMTechno Dancer says:
128 and 328 are almost exactly the same things. The 328 should work.
Jul 22, 2010. 5:21 PMusamasiraj says:
Hi i have done some modification to the code, so now we have 3 master cards, 1 for programming a new card, 2 for deleting an already entered card, 3 for deleting all the cards stored in EEPROM. Also if 3 unprogrammed card are detected in a row it will turn on the alarm (as a safe side if someone else is trying) the alarm can be turned of by the master programming card or by the reset switch on the board. also u can open the door by the master programming card by tapping it twice.......................and it all worked.............
Jul 23, 2010. 10:05 AMusamasiraj says:
sure why not..................but what is your email address..........
Jul 23, 2010. 5:43 PMusamasiraj says:
I've already sent u the code by instructable's msg.........
Jul 30, 2010. 9:26 AMacherman says:
Hi guys, were you able to find time to upload these code changes? Being able to erase lost/stolen cards would be a great feature. Great work, by the way. Good write-up.
Jul 30, 2010. 1:11 PMusamasiraj says:
Ive sent the code to the author and he has the right ro upload it..Please request him to do so....Thank you
Jul 6, 2010. 4:46 PMvinhtvu2 says:
Hey, I'm ordering the parts to try this experiment now, just curious, how many pins does the RFID reader take up? Also, will 12v power to the door lock mechanism work along Cat5 cable? I hear cat5 is capable up to 40v... So the Arduino can control 12V power? you dont need a relay or anything? I've always thought you need a relay? Sorry for a lot of questions, I'm doing a huge home automation project, and this will fit in just right. Thanks for the great tutorial!
Jul 13, 2010. 8:58 PMpingywon says:
You an find the pin out for the ID12/20 anywhere on the net including the manufactueres website. I dont have the pin out in front of me. but to answer your other question, you can run any parts of this project over CAT V. even the 12v DC for the door strike. You dont need a relay (actually recommend against it) but you will need a transistor and prolly a zener diode to prevent backflow of the 12v DC after the door strike disengages. ... i dont know too much..but thats what I did.....and it works
Nov 23, 2009. 2:46 PMazaroth08 says:
 Very good and clever.  Im a little curious about how you could add a log.  It sounds like a challenge :P
Apr 29, 2010. 1:22 AMjewelzc4 says:
also the addition of an SD adapter for data logging purposes could work if a network connection is not desirable. This would take care of memory space issues on the ATmega.
Feb 19, 2010. 8:06 PMtyler9613 says:
Two questions at once o.0

How can you add an LCD if you're already using your serial for the RFID reader?
Apr 16, 2010. 10:13 AMTechno Dancer says:
You could use a normal lcd screen and wire it up (somehow) as the arduino librarys have them supported (ladyada.net/learn/lcd)

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
81
Followers
5
Author:pcmofo
I like to take things apart, sometimes they go back together sometimes they end up as something entirely different then where they started.