Making It Simple
Let’s Make Projects

project

02

2011.

MIKROE-709, 932-MIKROE-709

RFid Lock with 4 Relays

Your own RFid Lock set

Figure 1 - Your own RFid Lock set (click to enlarge)

At least once in our lives we have come across some kind of RFid locks in homes, offices, elevators or hotels. Some of you may have been inspired to build your own version of it for your home or as a final product. We will show you how you can do this in a blink of an eye. Using PIC-Ready1 with PIC18F4520, RFid reader, Relay 4 board, along with EasyInput and EasyBuzz we have created a RFid lock that controls 4 separate relays with RFid cards. And it will cost you less than $100!

Before you can use it, you must program the board to recognize your RFid cards, and assign them to each relay separately.

  1. Bring 5V to the input pins on PORTA associated with relays. You can do this using EasyInput board
  2. Reset PIC-Ready1 board to enter programming mode. Buzzer will signal that programming mode is enabled.
  3. One-by-one, program the RFid card for each relay by swaping it over RFid reader when a relay LED turns on.
  4. After you are finished, bring inputs on PORTA to GND and reset the board to enter normal mode.
  5. By swapping the appropriate card over the RFid reader, associated relay will turn on for 2 seconds, accompanied by a sound signalization.
  6. Buzzer will signal if the card is not recognized.
RFid Lock schematics

Figure 2 - RFid Lock schematics (click to enlarge)

Source code of this project is provided for free, so you can modify it to suit your needs. Since PIC18F4520 comes preprogrammed with free UART Bootloader, you won’t have to spend a dollar more on external programmers. You can modify the project as much as you like, and expand this basic functionality with your own implementation ideas.

Project kit includes

PIC-Ready 1 Board with PIC18F4520 with bootloader

PIC-Ready 1 Board with PIC18F4520 with bootloader

EasyBuzz board

EasyBuzz board

EasyInput board

EasyInput board

Relay 4 board

Relay 4 board

RFid Reader Board

RFid reader Board

4 x 125KHz RFid card

4 x 125KHz RFid card

Downloads

Download project

Source code for this project is available for free. It is available for all of mikroElektronika PIC compilers: mikroC, mikroBasic and mikroPascal. You can modify it to suit your needs, and expand the project with your own implementation ideas.

RFid library included

Source code includes RFid library which you can later use in all of your RFid projects!

Download bootloader

PIC18F4520 comes preprogrammed with fast UART bootloader, running at 57600 kbps. Download PC software and read step by step guidance in the user manual for successfully uploading your new HEX into the MCU.

Let’s make RFid Lock with 4 Relays kit with free shipping

Buy Now

$99.00 USD