Water pomodoro

An automated mini-water dispenser that will remind you to stay hydrated through your workday

Similar projects worth following
Doctors agree that we should drink around 2 liters of water per day. When we are working from home, however, we often overfocus and forget to take breaks. I know I do!

So I made a gadget that will force me to drink my water at regular intervals during my workday, with an Arduino and a water pump.

This simple project refills 125ml of water on my water cup (if present) every hour, this way I can make sure I drink 1L of water during my workday (8 hours).

I connected a water pump to an arduino (uno) and added a timer in the code. I added a infrared sensor to ensure there is a cup present before pouring water. 

I reused  a milk dispenser from my coffee machine to case everything and place it on my desktop.

Every morning when I arrive to my home office, I place a cup on the water dispenser, and it will automatically start adding water every hour. 


Arduino script

ino - 618.00 bytes - 06/30/2021 at 10:22


  • 1 × Arduino (UNO)
  • 1 × Water pump (3v)
  • 1 × IR sensor

View project log

  • 1
    Connect all components to Arduino
  • 2
    Upload code
    int WATER_PUMP = 9;
    int IR_SENSOR = 11;
    void setup() {
     pinMode(WATER_PUMP, OUTPUT); 
     pinMode(IR_SENSOR, INPUT);
    void loop() {
      int cupPresent = digitalRead(IR_SENSOR);
      if (cupPresent == 0) {
        digitalWrite(LED_BUILTIN, HIGH); 
        digitalWrite(WATER_PUMP, HIGH);   // turn  Water pump ON
        delay(35000);                     // Fill 125ml of water in a glass
        digitalWrite(LED_BUILTIN, LOW);   
        digitalWrite(WATER_PUMP, LOW);    // turn the LED off by making the voltage LOW
        delay(60UL * 60UL * 1000UL); // Wait 1 hour
      } else {
        delay (1000); // Cup not present, waiting
  • 3
    Place cup of water

    And get refreshed  :) 

View all 3 instructions

Enjoy this project?



Mike Szczys wrote 07/02/2021 at 15:59 point

Nice! I would consider this a health and well-being tool for the Hackaday Prize Work-from-Home challenge that's going on right now. You should enter it!

  Are you sure? yes | no

Ken Yap wrote 07/02/2021 at 09:07 point

The BBC examined this "2 litre rule" some time ago and it was based on misinterpretations of decades old guidance. Of course the bottled water industry is happy to repeat this "rule". Also people forget to include the water already in food, e.g. fruits and vegetables. tea, coffee and beer.

Just drink when your body tells you to: when you feel thirsty.

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates