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 2Build the Arduino controller

Build the Arduino controller
«
  • IMG_0231.JPG
  • IMG_0229.JPG
  • IMG_0230.JPG
  • Controller.png
  • Controller_board.png
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. The arduino receives serial data in on its Rx line from the ID-20 RFID reader.

Controller_PCB.pdf(612x792) 12 KB
« Previous StepDownload PDFView All StepsNext Step »
30 comments
May 8, 2011. 9:36 PMinsignia96 says:
What's Hilarious is that I, at this point in time, have an arduino, i am custom etching a shield, I have an outlet box, 2 RGB status leds, and to shorten this list up almost an identical project/Instructable I am working on and This is the first time I have read through this. Pretty funny, I guess great minds think alike!
Apr 30, 2011. 7:41 AMboudreau-inventor2 says:
I have couple questions. Where did you find the breadboard power supply for 12 volts? And, what size is the breadboard you are using?
Apr 7, 2011. 10:36 AMPrivatHost says:
What diode (D1) did you used?

Is it the 1N4007 ?
Apr 29, 2010. 11:06 PMusamasiraj says:
Hi i am a bit confused about the connections of header, header1 and the tip31a transistor. Do we have to connect Header from the rfid reader schematic to the controlling schematic. And what about the header1.??? Please help me out
Apr 5, 2011. 8:48 PMkipfan23 says:
Both of the headers do have to be connected. header1 is used to connect the ATMega to the reader while Header is used for the RGB LED.
Apr 29, 2010. 11:55 PMusamasiraj says:
I am also confused about the schematic, since the pins in the pictures and the pdf seems to be different..Please explain which one is right??..Thank u
Apr 5, 2011. 8:44 PMkipfan23 says:
The pdf is a PCB layout, the image is a schematic. the pins on the ATMega in the schematic might not be in the same place as the pins in real life. It looks like the pins on the left are used for basic arduino functioning while the pins on the right are used for signal. you can look up the datasheet for the ATMega online to find the excact placement of all of the pins.
Hope this helped!
Jun 26, 2010. 7:45 PMTechno Dancer says:
What's the value of C7?
Apr 5, 2011. 8:40 PMkipfan23 says:
0.1uF
Nov 14, 2010. 2:17 PMrandomkid88 says:
Where did you get/make the programming interface? I can't find one to save my life.
Nov 19, 2009. 11:58 AMbl3nd3r says:
Great tutorial and implementation!

If you have an arduino already, would it be possible to program the chip (ATMega168) and then put it onto the custom board? Would this save you from needing an external USB->Serial FDIT programmer?

Thanks.
Sep 17, 2010. 2:16 PMledfreak01 says:
hi pcmofo i my com. wont open up the circuit picturesw do you mind sending them to me :) @ nicholas.labrecque01@gmail.com thanx
Aug 24, 2010. 5:16 PMchriscross93 says:
This project looks awesome, great job! I've been putting together a shopping list, but I cannot find some of the resistor values. I'm probably overlooking something but nevertheless could someone point me in the right direction? Thanks!
Nov 21, 2009. 11:05 PMTechno Dancer says:
Hi. I am currently working on a PCB design for the arduino board, based on the schematic. When I finish them, would you like me to put them up here for you?

Thanks
Nov 21, 2009. 11:12 PMTechno Dancer says:
If you would rather, I could make my own "Instructable" and you could link it over.
Nov 24, 2009. 12:32 AMTechno Dancer says:
I have almost finished the "arduino board", but yet to purchase one, it may take some time to get the measurements right. And there are some things I don't understand about the schematic (don't worry, its not your fault, i'm only 12), like VCC, the "U$2" and there being 2 headers (i have alot to learn ;))
Mar 28, 2010. 12:07 AMTechno Dancer says:
Sorry I haven't replied in a while, I just have been really busy. Anyways, I am going to change the design a bit, so that you can use an ICSP to program. And I lost all of the other files reinstalling my computer :(, oh well, just started again today,
Mar 28, 2010. 3:38 AMTechno Dancer says:
I just finished building a design for both of the boards, they havent been tested, but here are the images (some of the header pinouts have changed though)
http://grab.by/3mL8
http://grab.by/3mLc
Apr 2, 2010. 4:21 PMTechno Dancer says:
would you like me to upload the eagle files and/or the gerber files?
Apr 4, 2010. 3:57 PMTechno Dancer says:
I was just wondering, the RGB LED on the reader board appears to be recieving 5v based on the schematic. Does the ATMega drop the voltage down to 3.3v, or should I put in some more vregs?
Apr 16, 2010. 9:56 AMTechno Dancer says:
I have made another design, where all of the components except for the rgb and reader have been moved over to the main board, and added some vregs to the main board.
Apr 16, 2010. 10:09 AMTechno Dancer says:
Assuming these designs pass, the two boards together should cost around $15 for both $10 for the arduino board $5 for the RFID reader board. Not inc. components.
Apr 16, 2010. 7:56 PMTechno Dancer says:
Yeah! You should make a kit!
Apr 16, 2010. 9:09 PMTechno Dancer says:
(removed by author or community request)
Apr 19, 2010. 2:38 AMTechno Dancer says:
forgot to put some components in, the new price is US$99.23 + postage
Apr 19, 2010. 7:17 AMTechno Dancer says:
I was going to get them made at batchpcb just for the prototyping then when/if i were going to sell them, i would find a fab house in aussie to get them made (a lot closer to home).
Apr 19, 2010. 9:29 PMTechno Dancer says:
the boards are really small, the arduino board being  2.12"x1.79" or 53.8mmx45.4mm, it should be able to fit the smallest of boxes, the rfid board is even smaller. Here is a link to the board files (eagle only) http://arduinorfid.comlu.com/main/eagle.html.
Apr 16, 2010. 10:07 PMTechno Dancer says:
(removed by author or community request)
Apr 17, 2010. 12:49 AMTechno Dancer says:
(removed by author or community request)
Apr 18, 2010. 10:41 AMTechno Dancer says:
(removed by author or community request)

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.