Projects / Evaporation pan water loss logger

Evaporation pan water loss logger

Advanced4 hGuided buildReviewed

Build it step by step

0 of 8 done
  1. NANO++421 g

    Make the platform

    Fix the cell to a rigid base and a pan plate to its free end.

  2. NANO

    Wire the electronics

    Follow the table and keep the cable short.

  3. NANO

    Calibrate

    Use a known weight and set CAL_FACTOR.

  4. NANO

    Measure the pan

    Compute area and put it in the sketch.

  5. NANO

    Test indoors

    Add and remove a cup of water.

  6. NANO

    Install outdoors

    Shield it from wind and rain splash.

  7. NANO

    Check the first day

    Open evap.csv.

  8. NANO

    Review a week

    Total mm lost per day.

In short

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

Parts list

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

Wiring

FromToWhy
HX711 VCC and GNDNano 5V and GNDPower
HX711 DTNano D4Data
HX711 SCKNano D5Clock
Load cell red, black, white, greenHX711 E+, E-, A-, A+ (swap A+ and A- if the reading falls as weight rises)Bridge connection
DS3231 SDA and SCLNano A4 and A5Real-time clock
DS3231 VCC and GNDNano 5V and GNDPower
SD module CS, MOSI, MISO, SCKNano D10, D11, D12, D13Storage
SD module VCC and GNDNano 5V and GNDModule has its own level shifter
DS18B20 dataNano D2 with 4.7 k to 5VAir temperature
DS18B20 red and black5V and GNDPower

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.

CheckExpected
Add 100 g of waterReading rises by about 100 g
Wait an hour indoorsSmall positive mm_lost
Pour a cup in the panRow marked rain_or_refill
Remove the SD card and read itCSV opens in a spreadsheet
Compare with a ruler gaugeRoughly 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 →

Ask Lark AI

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.