Build a Hydration Reminder Device
by rohanbarnwal in Circuits > Arduino
399 Views, 5 Favorites, 0 Comments
Build a Hydration Reminder Device

I was so focused on work, I forgot to drink water again."
I said this to myself too many times - until I decided to fix it with tech.
Why It Matters
We live in a world of hustle. Whether you're coding, designing, gaming, or just grinding away on work, it's easy to forget one of the most basic human needs: drinking water.
I used to skip drinking for hours without even realizing it. Over time, it took a toll-headaches, low energy, and trouble focusing. Not drinking enough water can lead to range of problems: fatigue, poor concentration, even long-term kidney issues.
Apps can remind you, but most people swipe them away. I wanted something more effective - something physical, subtle, and responsive.
Story Behind the Build
That's how I ended up designing this Smart Hydration Reminder - a compact, customizable gadget powered by Arduino, that tracks your water bottle and reminds you exactly when you need it.
It's more than just a time. It uses an IR sensor to detect if your bottle is placed, a rotary encoder to let you control the time interval, an OLED display to keep it visually intuitive, and a buzzer to alert you. All of it is beautifully enclosed in a 3D-printed case that you can customize.
Features That Make This Stand Out
- 4-line Large font OLED messages
- Encoder-controlled timer (1-20 minutes)
- Beep on every encoder value change
- Beep when bottle is placed
- 3 short beeps when it's time to drink
- Asks "why" if bottle is removed early
- Auto resume or restart timer based on your reply
- Auto restart timer after drinking - no encoder libraries required
- Custom designed 3D-printed enclosure via JUSTWAY
What I Learned
This project taught me more than just Arduino code. This taught me how habit-building can be engineered - literally. And that even a small, humble idea - like a "water reminder" - can create real lifestyle change
Finally Thoughts
This isn't a fancy small bottle. it won't tell you how alkaline your water is. It won't sync with 5 apps or offer gamification But what it will do is remind you to drink water, every time - consistency gently, and reliably.
Build habits. Build gadgets. Stay hydrated.
Supplies
.jpg)
.jpeg)
.jpeg)
.jpeg)
.jpeg)
.jpeg)
Electronics:
- Arduino UNO R4 Wi-Fi x1: I used this for performance + Wi-Fi (for future upgrades). But you can absolutely use any Arduino Board (Uno, Nano, etc.)
- IR Proximity Sensor x1: Detects whether bottle is placed or removed
- Rotary Encoder with Push Button Module x1: To navigate in between menus and select the timer
- 0.96" OLED I2C Display x1: To show timer, prompts, and messages
- Jumper Wires (as needed): For connecting all components together
- Active Buzzer x1: Gives short beeps on time change, alerts and bottle placement
I Designed a 3D Case for It - and Got It Printed via JUSTWAY
I wanted this project to not just work but look great too. So I designed a Compact, minimal 3D enclosure to house the electronics securely.
To bring the design to life, I used JUSTWAY's 3D Printing Service, and I can confidently say - it exceeded expectations.
Why JUSTWAY?
Unlock the Future of Manufacturing with JUSTWAY's 3D Printing Service!
Whether you're making prototypes, functional enclosure, or final products - JUSTWAY delivers precision, speed, and professionalism.
- Supports Technologies like SLA, SLS, FDM, SLM, MJF, DLP
- Offers a wide range of materials: resins, nylons, metals
- Super easy to order: Upload Get Instant Quote Track Order
- Finishing options + CNC, injection molding, and even metal fabrication
- Great customer support & fast delivery
How to Order Your Own Model Via JUSTWAY

It's super simple:
Step1: Upload Your Design in Seconds: Head to the JUSTWAY website, log in (or sign up if you're new), and jump straight into the "Get Instant Quote" section.
Upload your STP, STEP, or other supported CAD file
Choose Your Manufacturing Process

from resins, nylon, and PLA to metals and engineering grade polymers. Customize the finish and other specs - get your instant quote on the spot
Preview and Inspect Your Model

Want to double-check how it'll turn out?
JUSTWAY lets you preview the uploaded model in 3D right in the browser before placing the order. Zoom, pan, rotate -inspect every detail
Review Quote & Place Order

JUSTWAY will guarantee excellent production with stringent quality control inspections after your purchase is placed. you can anticipate receiving your 3D model withing the allotted lead time. Experience the ease and effectiveness of using JUSTWAY to bring your 3D creation to life!
They also offer:
- CNC machining
- Sheet metal fabrication
- Injection molding
- Surface finishing
Now let see How It Works (Step-by-Step Flow)
How It Works: Power on & Animation

As soon as you power system via USB or 5V source, the OLED screen boots up with a custom splash screen of a Water drop appears.
Waiting for Bottle Placement

The device now actively check the IR sensor if no bottle is detected the OLED displays:
This ensure the timer only starts after the user is ready.
Bottle Detected Set Time
(1).png)
The moment you place the bottle, the IR sensor goes LOW (detection). The OLED now switches to time-setting mode using the rotary encoder
- Rotate encoder: Increase/decrease minutes (1-20 minutes)
- Press the encoder button to start
Countdown Starts

After you press the encoder button, the timer starts counting down OLED shows something like this as shown above
Countdown Ends

Reminder Triggered Once the countdown finishes, the system:
- Beeps 3 times
- OLED Shows the message "Drinking Time" as shown above
Place the Bottle Again

Once the bottle is placed again, everything resumes smoothly - no need for manual resets. This step-based behavior makes it feel like a real assistant on you desk - one that understands and adapts to your routine.
If Bottle Removed

If you remove the bottle in between the countdown, the system asks you a question:
- "Did the bottle fall?"
- "Or did you drink water?"
If you select "Drank Water" or "Bottle Fall" it will show same message "Resumes when bottle is placed"
But in case of "Drank water" the timer resets and starts from the original interval and in case of "bottle fell" the countdown resumes from where it paused.
Wiring Connections

Here's how to connect each component to the Arduino UNO R4 Wi-Fi:
IR Sensor To Arduino Board
IR Sensor Pins → Arduino Board
GND → GND
VCC → 5v
OUT → D5
0.96" Inch Display To Arduino Board
OLED Display Pin → Arduino Board
GND → GND
VCC → 5v
SDA → SDA
SCL → SCL
Rotary Encoder To Arduino Board
Rotary Encoder Pin → Arduino Board
CLK → D2
DT → D3
SW → D4
GND → GND
VCC → 5v
Buzzer Pin To Arduino Board
Buzzer Pin → Arduino Board
Positive Pin → D6
Negative Pin → GND
These simple connections are enough to give life to your hydration reminder.
Upload the Code
The core functions include:
- IR Sensor check for bottle presence
- Rotary encoder sets time (1-20 minutes)
- OLED displays interval and countdown
- Buzzer gives single or repeated alerts
- Logic branches based on your response (Did bottle fall ? Or did you drink?)
Video Demonstration

Want to see it working in real life? Here's a complete video demo showing very interaction. In just 5 minutes, you'll understand everything about how the project works
A small request to all of you: if you find this project helpful or inspiring, please subscribe to my YouTube channel and share the video. That would be a huge support from your side and will help me keep building and sharing more!