Evaporation pan water loss logger
Build it step by step
0 of 8 doneMake the platform
Fix the cell to a rigid base and a pan plate to its free end.
Wire the electronics
Follow the table and keep the cable short.
Calibrate
Use a known weight and set CAL_FACTOR.
Measure the pan
Compute area and put it in the sketch.
Test indoors
Add and remove a cup of water.
Install outdoors
Shield it from wind and rain splash.
Check the first day
Open evap.csv.
Review a week
Total mm lost per day.
How do you build an evaporation pan water loss logger?
Weigh a shallow pan of water every hour with a load cell and work out how many millimetres evaporate, ignoring rain and refills. You need Arduino Nano, Load cell 5 kg (bar type), HX711 load cell amplifier, DS3231 RTC module, MicroSD Card Module, DS18B20 waterproof probe, Resistor 4.7 kΩ, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 8 steps and about 240 minutes.
- Level
- Advanced
- Time
- About 240 min
- Parts
- 9
Wiring
| From | To | Why |
|---|---|---|
| HX711 VCC and GND | Nano 5V and GND | Power |
| HX711 DT | Nano D4 | Data |
| HX711 SCK | Nano D5 | Clock |
| Load cell red, black, white, green | HX711 E+, E-, A-, A+ (swap A+ and A- if the reading falls as weight rises) | Bridge connection |
| DS3231 SDA and SCL | Nano A4 and A5 | Real-time clock |
| DS3231 VCC and GND | Nano 5V and GND | Power |
| SD module CS, MOSI, MISO, SCK | Nano D10, D11, D12, D13 | Storage |
| SD module VCC and GND | Nano 5V and GND | Module has its own level shifter |
| DS18B20 data | Nano D2 with 4.7 k to 5V | Air temperature |
| DS18B20 red and black | 5V and GND | Power |
Code
Evaporation is measured by how much water a shallow pan loses. One millimetre of water over one square centimetre weighs 0.1 gram, so a 25 cm pan (about 491 square centimetres) loses about 49 grams for every millimetre. A 5 kg load cell and the HX711 can resolve about a gram, so you will see changes of around 0.02 mm. Mount the cell on a rigid base, bolt the pan platform to its free end, and keep wind off with a ventilated wire shield, because gusts push on the pan and spoil readings. Weight above the cell's 5 kg rating will damage it, so keep the water shallow. Tare once with the empty pan, add about 2 cm of clean water, then calibrate with a known weight such as a litre bottle of water. Rain makes the weight go up, so any hourly rise is flagged and counted as zero loss; refill the pan after heavy rain and note it. Load cells drift with temperature, so the logger records air temperature; compare day and night readings of a fixed weight to see how large the effect is. Use rainwater or tap water consistently and add a bird guard. This is a learning gauge, not a certified instrument. Setup: Arduino IDE, board "Arduino Nano" (try the Old Bootloader option if the upload fails). Install HX711 (bogde), RTClib, OneWire and DallasTemperature.
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).
#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <RTClib.h>
#include <HX711.h>
#include <OneWire.h>
#include <DallasTemperature.h>
const uint8_t HX_DT = 4, HX_SCK = 5, SD_CS = 10, ONEWIRE_PIN = 2;
const float CAL_FACTOR = 420.0; // placeholder: raw counts per gram, set it after calibration
const float PAN_AREA_CM2 = 491.0; // a 25 cm diameter pan, measure yours: pi x r x r
const float RAIN_RISE_G = 5.0; // a rise bigger than this means rain or a refill
HX711 scale;
RTC_DS3231 rtc;
OneWire ow(ONEWIRE_PIN);
DallasTemperature ds(&ow);
float lastGrams = -1;
int lastHour = -1;
void setup() {
Serial.begin(9600);
scale.begin(HX_DT, HX_SCK);
scale.set_scale(CAL_FACTOR);
scale.tare(); // start with the empty pan on the cell, then add water
ds.begin();
if (!rtc.begin()) Serial.println(F("RTC missing"));
if (!SD.begin(SD_CS)) Serial.println(F("SD missing"));
File f = SD.open("evap.csv", FILE_WRITE);
if (f) { f.println(F("time,grams,air_c,mm_lost,note")); f.close(); }
}
void loop() {
DateTime now = rtc.now();
if (now.hour() != lastHour && now.minute() == 0) {
lastHour = now.hour();
float grams = scale.get_units(20); // average of 20 readings
ds.requestTemperatures();
float airC = ds.getTempCByIndex(0);
float mm = 0;
const char *note = "ok";
if (lastGrams >= 0) {
float diff = lastGrams - grams; // grams lost since last hour
if (diff < -RAIN_RISE_G) note = "rain_or_refill";
else mm = diff / (PAN_AREA_CM2 * 0.1); // 1 mm over 1 cm2 is 0.1 g of water
}
lastGrams = grams;
File f = SD.open("evap.csv", FILE_WRITE);
if (f) {
f.print(now.timestamp()); f.print(',');
f.print(grams, 1); f.print(',');
f.print(airC, 1); f.print(',');
f.print(mm, 3); f.print(',');
f.println(note);
f.close();
}
Serial.print(grams, 1); Serial.print(F(" g, ")); Serial.print(mm, 3); Serial.println(F(" mm"));
}
delay(1000);
}
// Calibration sketch idea: replace loop() with one that prints scale.get_units(10)
// with CAL_FACTOR set to 1. Put 1000 g of known weight on the pan,
// then CAL_FACTOR = (reading with weight - reading without) / 1000.What the serial monitor should show
Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Nano with its sensors at their default values. Your numbers will follow your real readings, but the format should match.
RTC missing
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Add 100 g of water | Reading rises by about 100 g |
| Wait an hour indoors | Small positive mm_lost |
| Pour a cup in the pan | Row marked rain_or_refill |
| Remove the SD card and read it | CSV opens in a spreadsheet |
| Compare with a ruler gauge | Roughly the same millimetres |
If it does not work
Reading wanders
Wind, a loose cable or a warm HX711; shield and tighten.
Reading falls as weight rises
Swap the A+ and A- wires.
Always zero
DT and SCK swapped or wrong pins.
No rows on the SD
Check the card is FAT32 and CS is D10.
Large negative drift
Temperature drift of the cell; compare night readings.
Nano memory warning
Remove the Serial prints.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the evaporation pan water loss logger?
Arduino Nano, Load cell 5 kg (bar type), HX711 load cell amplifier, DS3231 RTC module, MicroSD Card Module, DS18B20 waterproof probe, Resistor 4.7 kΩ, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).
How long does the evaporation pan water loss logger take to build?
About 240 minutes for a advanced maker, in 8 steps.
How do I know the evaporation pan water loss logger works?
Add 100 g of water: Reading rises by about 100 g. Wait an hour indoors: Small positive mm_lost. Pour a cup in the pan: Row marked rain_or_refill.
Reading wanders: what should I check?
Wind, a loose cable or a warm HX711; shield and tighten.
Reading falls as weight rises: what should I check?
Swap the A+ and A- wires.
Always zero: what should I check?
DT and SCK swapped or wrong pins.
No rows on the SD: what should I check?
Check the card is FAT32 and CS is D10.
