Community project

Smart Library Book Finder

Photo of Smart Library Book Finder
Generated with AI

ABPS REHLA_1

Published November 18, 2026

This project builds a smart library book finder that uses RFID technology to identify books and communicate their status to a user. An MFRC522 RFID reader detects book tags, while a 16x2 LCD display shows real-time information and a piezo buzzer provides audio feedback. The system connects to a PC application via serial communication to look up book locations and availability.

The guide provides a complete wiring diagram, parts list, and step-by-step assembly instructions for connecting the RFID reader, display, status LEDs, and buzzer to an Arduino Uno. Included firmware handles RFID scanning, serial communication with the host application, and display management, allowing makers to build a functional library management interface.

Wiring diagram

Wiring diagram for Smart Library Book Finder
Loading diagram…

Gather all the parts

QtyComponent
1

MFRC522 RC522 SPI module

Catalog RC522 with SDA labelled chip-select treated as digital, connected through a voltage divider.

1

LCD 16x2 I2C

16x2 character LCD display with I2C backpack

1

LED

green

Standard 3mm/5mm through-hole LED. A current-limiting series resistor is added automatically.

1

LED

red

Standard 3mm/5mm through-hole LED. A current-limiting series resistor is added automatically.

1

Resistor

330 ohm

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

330 ohm

Through-hole resistor (current-limiting in series with an LED)

1

Piezo Buzzer

Small passive piezo buzzer (TDK PS1240) for beeps, tones and alerts. It has no built-in oscillator, so drive one lead with a 3-30 V square wave from a microcontroller pin using tone() or PWM and connect the other lead to ground. It is loudest around 4 kHz and works from about 2 to 10 kHz; driving both leads in antiphase roughly doubles the volume.

1

Ceramic Capacitor

100 nF, 50 V

Through-hole ceramic capacitor bought by value, such as 22 pF, 10 nF or 100 nF (0.1 µF). It is non-polarised, so either lead can go to either net. Its most common job is decoupling: a 100 nF capacitor between an IC's supply pin and ground, placed as close to the chip as possible.

1

74AHCT125 Quad Buffer / Level Shifter

Quad non-inverting buffer with 3-state outputs and active-low output enables, in a breadboard-friendly 14-pin DIP. Powered from 5 V, its TTL-level inputs accept 3.3 V logic, so it is a common one-way 3.3 V to 5 V level shifter for NeoPixel/WS2812 data and other fast digital signals; each output drives up to 8 mA.

1

Resistor

1 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

2 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

1 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

2 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

1 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

2 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

1 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

1

Resistor

2 kohm, 1%

Through-hole resistor (current-limiting in series with an LED)

Assemble it in 5 steps

1. Prepare the unpowered breadboard

Unplug USB. Put the Uno beside an 830-point breadboard. Use short jumper wires and keep the reader antenna away from metal. Join all ground connections. Do not join the 5 V and 3.3 V rails.

2. Protect the reader inputs

For each of SCK, MOSI, SDA and RST, connect its Uno pin through a 1 kohm resistor to the reader input. Connect a 2 kohm resistor from that same input to ground. The wiring diagram shows each pair separately. Power the reader from Uno 3.3 V only. Leave IRQ unconnected if present.

  • Direct 5 V power or logic can damage the RC522.

3. Raise the return signal safely

Place SN74AHCT125N across the centre channel. Pin 14 is 5 V and pin 7 is ground. Pin 1 goes to ground, reader MISO to pin 2, and pin 3 to D12. Pins 4, 10 and 13 go to 5 V; pins 5, 9 and 12 go to ground. Leave pins 6, 8 and 11 open. Place the 100 nF capacitor between pins 14 and 7.

4. Connect display and indicators

LCD VCC to 5 V, GND to ground, SDA to A4 and SCL to A5. D4 feeds the green LED through 330 ohm; D5 feeds the red LED through its own 330 ohm. LED short legs go to ground. Passive piezo connects D3 to ground.

5. Arrange the demonstration

Put the reader at the scanning station, display above it and LEDs beside it. Place one compatible passive tag inside each book cover and one on each shelf front. Start with two books and two shelves. Present only one tag at a time within a few centimetres, then remove it before the next scan. Use USB power from the laptop after checking all wires.

Review all connections

1. Connections between "reader" and "Arduino"

FunctionreaderArduino
powerVCC3V3
groundGNDGND
spiMISO → 74AHCT125 Quad Buffer / Level Shifter 1AEXT

2. Connections between "lcd" and "Arduino"

FunctionlcdArduino
powerVCC5V
groundGNDGND
i2cSDAGPIO 18
i2cSCLGPIO 19

3. Connections between "rg" and "Arduino"

FunctionrgArduino
digitalP1GPIO 4
digitalP2 → LED ANODEEXT

4. Connections between "green" and "Arduino"

FunctiongreenArduino
groundGNDGND

5. Connections between "rr" and "Arduino"

FunctionrrArduino
digitalP1GPIO 5
digitalP2 → LED ANODEEXT

6. Connections between "red" and "Arduino"

FunctionredArduino
groundGNDGND

7. Connections between "buzzer" and "Arduino"

FunctionbuzzerArduino
pwmSIGGPIO 3
groundGNDGND

8. Connections between "buffer" and "Arduino"

FunctionbufferArduino
powerVCC5V
groundGNDGND
ground1OEGND
digital1YGPIO 12
power2OE5V
ground2AGND
power3OE5V
ground3AGND
power4OE5V
ground4AGND

9. Connections between "bypass" and "Arduino"

FunctionbypassArduino
digital1 → 74AHCT125 Quad Buffer / Level Shifter VCCEXT
ground2GND

10. Connections between "sck_top" and "Arduino"

Functionsck_topArduino
digitalP1GPIO 13
digitalP2 → MFRC522 RC522 SPI module SCKEXT

11. Connections between "sck_bottom" and "Arduino"

Functionsck_bottomArduino
digitalP1 → MFRC522 RC522 SPI module SCKEXT
groundP2GND

12. Connections between "mosi_top" and "Arduino"

Functionmosi_topArduino
digitalP1GPIO 11
digitalP2 → MFRC522 RC522 SPI module MOSIEXT

13. Connections between "mosi_bottom" and "Arduino"

Functionmosi_bottomArduino
digitalP1 → MFRC522 RC522 SPI module MOSIEXT
groundP2GND

14. Connections between "sda_top" and "Arduino"

Functionsda_topArduino
digitalP1GPIO 10
digitalP2 → MFRC522 RC522 SPI module SDAEXT

15. Connections between "sda_bottom" and "Arduino"

Functionsda_bottomArduino
digitalP1 → MFRC522 RC522 SPI module SDAEXT
groundP2GND

16. Connections between "rst_top" and "Arduino"

Functionrst_topArduino
digitalP1GPIO 9
digitalP2 → MFRC522 RC522 SPI module RSTEXT

17. Connections between "rst_bottom" and "Arduino"

Functionrst_bottomArduino
digitalP1 → MFRC522 RC522 SPI module RSTEXT
groundP2GND

Deploy the firmware

#include <Arduino.h>
#include <SPI.h>
#include <Wire.h>
#include <MFRC522.h>
#include <LiquidCrystal_I2C.h>
MFRC522 reader(10,9);
LiquidCrystal_I2C lcd(0x27,16,2);
char input[80], previous[33]=""; byte pos=0; bool overflow=false;
unsigned long lastHost=0; bool online=false;
void screen(const char *a,const char *b){
 char text[33]; memset(text,' ',32); text[32]=0;
 memcpy(text,a,min(strlen(a),(size_t)16)); memcpy(text+16,b,min(strlen(b),(size_t)16));
 if(strcmp(text,previous)==0)return;
 memcpy(previous,text,33);
 for(byte row=0;row<2;row++){lcd.setCursor(0,row);for(byte c=0;c<16;c++)lcd.write(text[row*16+c]);}
}
void command(){
 char *mode=strtok(input,"|"),*a=strtok(NULL,"|"),*b=strtok(NULL,"|");
 if(!mode)return; lastHost=millis(); online=true;
 if(!strcmp(mode,"PING"))return;
 digitalWrite(4,!strcmp(mode,"OK"));digitalWrite(5,!strcmp(mode,"WRONG"));
 if(!strcmp(mode,"WRONG"))tone(3,4000,700);
 if(a&&b)screen(a,b);
}
void setup(){
 Serial.begin(9600);pinMode(4,OUTPUT);pinMode(5,OUTPUT);pinMode(3,OUTPUT);
 Wire.begin();lcd.init();lcd.backlight();screen("SMART LIBRARY","Start PC app");
 SPI.begin();reader.PCD_Init();Serial.println(F("READY"));
 byte v=reader.PCD_ReadRegister(MFRC522::VersionReg);
 if(v==0||v==255){screen("Reader error","Check SPI wires");Serial.println(F("ERROR|READER"));}
}
void loop(){
 while(Serial.available()){char c=Serial.read();if(c=='\n'){input[pos]=0;if(!overflow)command();pos=0;overflow=false;}else if(c!='\r'){if(pos<79)input[pos++]=c;else overflow=true;}}
 if(online&&millis()-lastHost>6000){online=false;digitalWrite(4,LOW);digitalWrite(5,LOW);screen("PC disconnected","No verification");}
 if(reader.PICC_IsNewCardPresent()&&reader.PICC_ReadCardSerial()){
 Serial.print(F("TAG|"));for(byte i=0;i<reader.uid.size;i++){if(reader.uid.uidByte[i]<16)Serial.print('0');Serial.print(reader.uid.uidByte[i],HEX);}Serial.println();
 reader.PICC_HaltA();reader.PCD_StopCrypto1();
 }
}

Remix this project

Make it yours in one click

Open a full copy of this project in your own Schematik workspace, diagram, code, parts, and assembly steps included. Swap the sensor, add features, or redesign the whole thing with AI. The author's original stays untouched.

Open in Schematik