Introduction: DIY RFID Based Book Locker System

About: Just want to explore the vastness of science and make useful stuffs!!

Hey, This project of a DIY RFID based book locker system might have caught your attention since you may be a book lover or want to keep something special hidden from others!

In this interesting project, I will show you how you can make this door lock system that can also be used in bookshelves, mini lockers, or doors to be controlled with the use of a unique tag.

Let me explain in simple way how this project works, The RFID reader reads the tag and allows the servo to work only if the pre-registered tag is tapped, If you tap an unregistered tag the servo won't work.

The principle of working is simple here, the arduino board hold the codes to control the servo when valid tag is read by RFID reader and allows to control the servo, The servo horns or also termed as shafts are connected to doors via simple mechanism that allows to open and close the door in a given set of time.

This project is a small working model that can be applied to a large scale too with some additional more powerful electronics, like for example here I'm using a plastic geared servo on a large scale which can be replaced with a metal geared version.

If you are willing to build this project I would recommend you to give a try since all the information necessary to build this is given in detail along with detailed circuit diagram and program

Supplies

Gather these supplies before you begin to build this project since it will make it a lot easier in the building phase

RFID board and Tag

Arduino Uno Full kit to make this and other such projects here

OLED display module

Mini Breadboard

Micro servo plastic geared

Jumper wires

USB programming cable

Hot glue

Cardboard box or sheets to make the body

Arduino IDE

Battery holder and small switch(optional)

Step 1: Circuit Diagram

The circuit is really simple for those who already have hands on experience with circuit making, To all others who are new or still in the learning phase I'll give them a good detailed explanation below.

To begin with, we will start connecting the RFID board with Uno, Here one thing you need to see is the power rails of the breadboard are connected to the arduino board power pins and the GND, and 5v pins of servo, OLED and RFID are connected to the same terminals.

Now from the RFID board, the connections are as follows

Sda to D10

Sck to D13

Mosi to D11

Miso to D12

Rst to D9

Now the Oled connections are Sck to A5 and Sda to A4 pins

The signal pin of the servo will be connected to the D6 Pin of the uno, This completes the connections between all the components now we can move ahead and add the arduino program to the board.

You also can simplify this circuit with a Simple small PCBComplete your electronic projects in the best way from PCBWay

Why them? They have provided me with the best PCB and The quality is just amazing compared to other providers in the market

Have you heard about Color PCB? Now it's available here!

Check Here for Rigid-flex Pcbs with this your circuit becomes flexible! I have added the images to this step kindly check.

A revolutionary solution that combines the best of both rigid and flexible circuitry to elevate your electronic projects to new heights.

With their expertise in advanced manufacturing techniques, they offer a seamless integration of rigid and flexible components, ensuring enhanced reliability, durability, and space-saving benefits

Step 2: Arduino Program

This step is easy too but here there is an additional thing you need to keep in mind, Connect the uno board to the computer and open IDE.

Copy the below code and paste it to your ide, Select the type of board and if the libraries are not installed you can just google them and download those missing libraries.

Select the proper port and click on the upload button, wait for some time and now is time to add the tag. Every tag has unique id like the humans with fingerprints.

Now you will see OLED board with a message to tap the card, Tap the tag on RFID board and now you will see the id on the display.

Make a note of this ID again open your arduino IDE and paste this code, upload the code again and now the circuit is ready with a registered tag.

Test the circuit by tapping the tag on the reader and if everything is fine the servo makes movements with a valid access message on the OLED module.

Step 3: Body Structure

To build the body and to make it look a lot like a bookshelf I will use a rectangular box that I recycled from a sunglass cover as a base and to the top I had a square shaped box and that will be the perfect option to make it look like a door with shelves.

There will be a single door open and close mechanism here and another door will be equipped with electronics like RFID board and OLED board.

After the work of this single side is complete just glue it to the frame of the box and make sure to take servo along with this.

Use a decent amount of hot glue wherever necessary and fix this door, after this is done we can head over to adding the moving door.

Here the trick is we are using half servo horn and pasting the door directly to it and pasting the servo to one corner.

You can keep the circuit in on when you are doing this step because you need to know the exact position of the servo horn, allow the glue to dry completely and now you can decorate the inside part with some slabs of cardboard.

After this is complete we can head over to testing this project.


Step 4: Finishing

The testing of this project is very interesting that is because we finally get to implement the project in real life cases.

To use this all you have to do is keep the book on the shelf first! Power on the project and wait for the display module to show the message to tap the card on the reader.

Now tap the card with no access first and you should be able to see the invalid card message with the id of the tag below.

When you tap on the RFID tag with access the servo opens and in return the door opens too, Now you can have access to the books inside.

Like I said earlier this is a prototype for a big bookshelf with the doors of the shelf equipped with an RFID security system so that intruders can't take your books without your consent.

You can also use the power supply from the battery and add a switch for power on and off control. in my case, I would recommend using a power supply from the USB and connecting it to a power bank.

This was everything about the bookshelf you can also keep your favorite toys inside too, Thanks for reading, and let me know if you made this project.

Step 5: Working Video

A full video of the above mentioned instructions is given in this video tutorial and the best part here is the opening and closing part when you tap and untap the tag.

There are a lot of areas for improvement in this project, in the upcoming days I will make a unique project on those too.

If you still left with any doubts you can ask me in the comments and I will answer all your questions.

Books and Bookshelves Contest

Participated in the
Books and Bookshelves Contest