Introduction: Smart Book Return Reminder With Arduino UNO R4 Wi-Fi
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.
Step 1: 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).
Step 2: 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.
Step 3: 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:
Step 4: 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.
Step 5: 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.
Step 6: 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
Step 7: Returning the Book
Put the book back in its place.
Once the IR sensor detects it, you'll see:
And the sound stops automatically.
Step 8: 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.
Step 9: 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.
Step 10: 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
Step 11: 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
Step 12: Optional Improvements
- 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.





