Projects / Water reminder for elderly

Water reminder for elderly

Beginner1.5 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANO++396 g

    Mount the load cell

    Between two plates.

  2. NANO

    Read the weight

    Print raw values.

  3. NANO

    Calibrate

    Use a known weight.

  4. NANO

    Detect sips

    Drop of 10 g or more.

  5. NANO

    Add the timer

    Two hours.

  6. NANO

    Add the glow

    Soft pulsing blue.

  7. NANO

    Log the day

    Total in millilitres on serial.

In short

How do you build a water reminder for elderly?

A coaster weighs a glass and lights up if no water has been drunk in two hours. You need Arduino Nano, Load cell 1 kg, HX711 load cell amplifier, WS2812B single LED module (8 mm / breakout), 5 V 2 A USB adapter and Resistor 330 Ω. It takes 7 steps and about 90 minutes.

Level
Beginner
Time
About 90 min
Parts
6

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Load cell red, black, white, greenHX711 E+, E-, A-, A+Weight signal
HX711 DT and SCKNano D3 and D2Data
HX711 VCC and GNDNano 5V and GNDPower
LED module DIN330 Ω resistor to Nano D6Glow signal
LED module VCC and GND5 V adapterPower
Nano and adapter groundJoinedCommon ground

Code

The load cell under a coaster reads the glass's weight; each time the weight falls by about 10 g between readings with the glass still down, the sketch counts a sip, resets the two-hour timer and adds the amount to the day's total in millilitres. When the timer runs out a soft blue glow pulses next to the glass, with no sound, so it nudges and does not startle. Calibrate with a known weight such as a 500 g water bottle: put it on, read the raw value, divide by 500 and use that as CAL. Lifting the glass reads as zero weight and is ignored, so only changes while it sits on the coaster count; to count sips taken while lifting, compare weights each time the glass is put back. This is a reminder aid and not a medical device; some people with heart, kidney or other conditions have to limit fluids, so ask a doctor for the right goal before setting any target. The coaster should be on a flat surface and wiped clean, with the Nano and adapter away from spills. Arduino IDE, board "Arduino Nano" (try the Old Bootloader option if the upload fails).

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

// Hydration coaster: weigh the glass, note sips, glow if no sip for two hours.
// Libraries: HX711 (bogde), Adafruit NeoPixel. Board: Arduino Nano.
#include <HX711.h>
#include <Adafruit_NeoPixel.h>
HX711 scale;
Adafruit_NeoPixel led(1, 6, NEO_GRB + NEO_KHZ800);
const float CAL = 1.0;                              // set from a known weight, in grams per unit
const unsigned long REMIND_MS = 2UL * 60UL * 60UL * 1000UL;
unsigned long lastSip;
float lastW = 0, todayMl = 0;
void setup() {
  Serial.begin(9600);
  scale.begin(3, 2); scale.set_scale(CAL); scale.tare();
  led.begin(); led.setBrightness(40); led.clear(); led.show();
  lastSip = millis();
}
void loop() {
  float w = scale.get_units(5);                     // grams
  if (w > 30) {                                     // a glass is on the coaster
    if (lastW - w > 10) {                           // weight dropped by 10 g or more: a sip
      todayMl += (lastW - w);                       // one gram of water is about one millilitre
      lastSip = millis();
      Serial.print("Sip. Total today ml: "); Serial.println((int)todayMl);
    } else if (w - lastW > 30) lastSip = millis();  // refilled: also counts as attention to the glass
    lastW = w;
  } else lastW = 0;                                 // glass lifted or removed: ignore the change
  if (millis() - lastSip > REMIND_MS) {             // soft pulsing blue glow
    int b = (millis() / 20) % 200; if (b > 100) b = 200 - b;
    led.setPixelColor(0, led.Color(0, b / 2, b)); led.show();
  } else { led.clear(); led.show(); }
  delay(200);
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Glass placedWeight reads close to the real value
Sip takenTotal goes up
Two hours with no sipSoft glow starts
DrinkGlow stops

If it does not work

Weight drifts

Let the cell warm up and use stiff plates.

Sips not counted

Lower the 10 g threshold.

Glow does not start

Shorten REMIND_MS to test.

Wrong grams

Recalibrate with a known weight.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the water reminder for elderly?

Arduino Nano, Load cell 1 kg, HX711 load cell amplifier, WS2812B single LED module (8 mm / breakout), 5 V 2 A USB adapter and Resistor 330 Ω.

How long does the water reminder for elderly take to build?

About 90 minutes for a beginner maker, in 7 steps.

How do I know the water reminder for elderly works?

Glass placed: Weight reads close to the real value. Sip taken: Total goes up. Two hours with no sip: Soft glow starts.

Weight drifts: what should I check?

Let the cell warm up and use stiff plates.

Sips not counted: what should I check?

Lower the 10 g threshold.

Glow does not start: what should I check?

Shorten REMIND_MS to test.

Wrong grams: what should I check?

Recalibrate with a known weight.