Smart Book Return Reminder With Arduino UNO R4 Wi-Fi
by rohanbarnwal in Circuits > Arduino
120 Views, 1 Favorites, 0 Comments
Smart Book Return Reminder With Arduino UNO R4 Wi-Fi

.png)
We've all been there. You're deep into a good book - eyes wide, plot thickening - when suddenly, Mom yells:
Dinner's ready it's gone.
You put the book down just for a minute - maybe on the bed on the chair - and the next day, it's gone.
Lost under the pillow, trapped between blankets, or worse, mistaken for a plate coaster.
So, instead of accepting defeat (or another lecture), we turn to technology. This project - the Smart Book Return Reminder - ensures you never forget to put your books back.
Powered by the Arduino UNO R4 Wi-Fi, it uses 3 IR sensors and a buzzer to track when a book is removed and reminds you - loudly - if you don't return it on time.
it's smart. it's simple. It's slightly passive aggressive.
And it's your new best friend against procrastination.
How It Works
- Each of the 3 IR sensors monitors one section of your shelf.
- When any sensor goes CLEAR (book removed) the Arduino immediately asks you (via Serial Monitor):
Enter return time (HH:MM, 24-hour)
- At the specified time, the built-in RTC alarm checks if that section's book is still missing.
- If yes - buzzer activates and screams continuously until you return the book.
- Once all books that were removed are back - Buzzer stops automatically.
Step-By-Step Build Guide
Gather Everything
Supplies

Make sure you have:
- Arduino UNO R4 Wi-Fi
- 3 IR Sensors
- 1 Buzzer
- Jumper Wires
Keep a USB cable handy for programming the board.
Wiring the Circuit

- Connect sensor 1,2, and 3 outputs to Arduino pins 2,3, and 4
- Connect all sensor VCC to 5v and all GNDs to GND
- Connect the Buzzer +ve to pin 11 and -ve to GND
- Ensure all grounds are common (Arduino, sensors, buzzer).
Set Up the Arduino IDE
- Open the Arduino IDE
- Install the UNO R4 Wi-Fi Core (Board Manager - Search "UNO R4 Wi-Fi").
- Select Board: Arduino UNO R4 Wi-Fi
- Select the correct COM Port
- Open a new sketch and paste your provided code.
Upload the Code
- Click Upload (Right arrow icon)
- Once uploaded, open Serial Monitor at 115200 baud.
- You'll see:
If you see RTC.begin() failed, make sure your board drivers and core are properly installed.
Code:
Mount the IR Sensors
Mount one IR sensor per section on bookshelf:
- The sensor should pint directly at the book's spine or edge.
- When a book is there - sensor reads DETECTED (LOW).
- When removed - sensor reads CLEAR (HIGH).
Test each one using the Serial Monitor - it prints sensor status every second.
Remove a Book
Now test it:
- All books in place - all sensors show DETECTED.
- Remove a book - you'll see something like:
- Type a time, e.g. 18:45, then press Enter.
That's the time by which you must return your book.
RTC Alarm in Action
When the clock reaches your target time:
- The RTC alarm triggers
- Arduino checks if that book's sensor still reads CLEAR
- If yes The buzzer starts buzzing continuously:
The buzzer will not stop until all those sensors detect their books again
Returning the Book
Put the book back in its place.
Once the IR sensor detects it, you'll see:
And the sound stops automatically.
Try Multiple Sensors
You can remove multiple books before setting the alarm.
The Arduino keeps track of which sensors were CLEAR when you entered the time - and checks all of them at the alarm moment.
So if you removed two books, both must be returned before the buzzer stops. No shortcuts.
Cancel a Prompt
If you changed your mind while setting a time, just press Enter without typing anything Arduino will respond:
and reset the waiting state.
Code Behavior Overview
- readSensor(i): Reads whether the IR sensor i detects a book
- printCurrentTimeAndStatus(): Displays time + sensor state every seconds
- parseTimeString(): Validates and extracts HH:MM input
- startContinuousBuzzer(): Turns buzzer ON until manually stopped
- stopContinuousBuzzer(): Turns buzzer OFF
- alarm_cbk(): calls automatically when RTC alarm time hits
- loop(): Main logic loop controlling all the above
Troubleshooting
- RTC not starting: Ensure UNO R4 Wi-Fi core installed; reconnect board
- Sensors reversed: Change SENSOR_ACTIVE_LOW to false
- Buzzer silent: Test buzzer with simple tone(11,2000) sketch
- No Serial Output: Check baud rate (115200) and COM port
- Buzzer never stops: Verify sensors are aligned and working correclty
Optional Improvements



 - Copy.png)

- Add LEDs: Green when book present, Red when missing
- Wi-Fi Alerts: Send phone notification using UNO R4 Wi-Fi features
- Voice Module: Use player module to say "Put your book back!"
- Logging: Store missed returns in EEPROM or SD Card.
- Physical Input: Add keypad or buttons for entering time directly.
Taking It to the Next Level - With JUSTWAY
Your breadboard prototype may work perfectly, but looks like a tech spaghetti bowl.
When you want to impress at a science fair, competition, or investor meeting presentation is everything.
That's where JUSTWAY comes in.
JUSTWAY helps you transform your DIY project into a professional grade prototype, complete with a custom enclosure with a custom enclosure, metal finish, or injection-molded body - ready for the world to see.
Why JUSTWAY Is the Perfect Partner
Rapid Prototyping: 24-hour turnaround, real time order tracking
CNC Machining: Aluminum 6061 or Stainless Steel 304 - strong, premium enclosures
Sheet Metal Fabrication: Laser-cut, CNC-bent, and powder-coated finishes
Injection Molding: Ideal for moving from prototype to mass production
Urethane Casting: Perfect for small batches or display models
3D Printing(SLA / HP-PA12): SLA resin for clear aesthetic display, HP-PA12 nylon for durable, matte finish
Pro Tip: Want your circuit to look futuristic?
- Use transparent SLA resin to show off your Arduino and LEDs
- Or go matte black HP-PA12 for a stealthy, modern vibe.
How To Order in 4 Easy Steps
Step 1: Upload You CAD Files at JUSTWAY.com
Step 2: Select Material & Finish - plastics, resins, or metals
Step 3: Preview Your Model in 3D - Check fit and look before confirming
Step 4: Place Your Order - Fast delivery, Transparent Pricing, Zero Hidden Costs
Future Enhancement
- Wi-Fi notification directly to your smartphone
- Book databases with names and return logs
- OLED display showing real-time status of all shelves
- RGB lights indicating which section is overdue
- Mobile App Integration for remote tracking
Conclusion
You just built something truly useful - and a little bit hilarious.
Your Smart Book Return Reminder uses Arduino UNO R4 WiFi's RTC, IR Sensors, and a relentless buzzer to keep your shelves organizes (and your mom happy).
It's practical, fun, and a great example of combining sensors, real-time logic, and creativity. And when you're ready to make it look as good as it works, remember...
JUSTWAY - Turning Your Ideas Into Real Products
From DIY to Display-Ready, JUSTWAY is your best ally in transforming prototypes into professional masterpieces.
"Return your books. Respect your shelves
Save your sanity - with Arduino and JUSTWAY.