Thursday, September 21, 2023

RFID-Based Automatic Management System

Ashwini Kumar Sinha

- Advertisement -

ashwiniManaging the number of books present in a library or warehouse maintenance of several items is quite laborious and time-consuming.

So for today’s project, we will be making a device that can read a small RFID chip placed within a book or on its back cover to quickly find a specific, desired book, thus effectively solving the above problem. This technique can also be applied for managing any other item.

Let’s begin the project by shopping for the required components. 

- Advertisement -

Bill Of Materials


First, install the MFRC522 library in Arduino and firmly affix the RFID tag/chip onto each book cover using glue. 

Next, create a Google sheet that has the ID numbers and book details (for future reference purposes). 


Here, there are two codes: one is the “write” code that will create data of the available books or other stuff in an RFID chip. The other is the “read” code that will analyse the chip and extract relevant information to help us locate a specific book or object among a heap of thousands.

Writing Code 

Here, we have a library for RFID that contains SPI to communicate with the RFID read/write module. 

Next, check whether the RFID is present or not in the loop function. If RFID is detected, then it obtains the details from the serial port to write data on the RFID chip.

Fig 1.Code
Fig 2.

Reading Code

Here, include the SPI and MFRC522 library. Then create a string variable that will store the book name (that has to be searched). On detecting the RFID in the loop, relevant details will be extracted. It will be then matched with a string. If successful, then it means that the desired book with the same details has been found in the library.


Connect the components according to the circuit diagram given below.


Arduino Pro Micro RS522 RFID
        RST     Reset
        Pin 10       SDA
        Pin 16     MOSI
        Pin 14     MISO
        Pin 15       SCK
          VCC       VCC
          GND       GND


First, upload the “write” code and then enter the book/object details in the RFID chip. 

Next, upload the “read” code and plug the device into a PC. Open the serial monitor and type the book name to search. For example, if the name of the book is EFY, then type #EFY and send it from the serial terminal. 

On reading the embedded RFID chip, if the name and details match, then the book has been found. The reader now has to simply go and pick it up from the library. You can also set an automated mechanism on bookshelves so that each book gets scanned and the required one is quickly identified.


Download Source Code



Electronics News

Truly Innovative Tech

MOst Popular Videos

Electronics Components