Build it step by step
0 of 7 doneMount the load cell
Between two plates.
Read the weight
Print raw values.
Calibrate
Use a known weight.
Detect sips
Drop of 10 g or more.
Add the timer
Two hours.
Add the glow
Soft pulsing blue.
Log the day
Total in millilitres on serial.
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
- Development BoardsBuyArduino Nano × 1
- SensorsBuyLoad cell 1 kg × 1
- SensorsBuy
- OptoelectronicsBuy
- PowerBuy
- PassivesBuyResistor 330 Ω × 1
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Load cell red, black, white, green | HX711 E+, E-, A-, A+ | Weight signal |
| HX711 DT and SCK | Nano D3 and D2 | Data |
| HX711 VCC and GND | Nano 5V and GND | Power |
| LED module DIN | 330 Ω resistor to Nano D6 | Glow signal |
| LED module VCC and GND | 5 V adapter | Power |
| Nano and adapter ground | Joined | Common 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.
| Check | Expected |
|---|---|
| Glass placed | Weight reads close to the real value |
| Sip taken | Total goes up |
| Two hours with no sip | Soft glow starts |
| Drink | Glow 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 →
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.
