Smart scale for 5 L jugs – TAL220 + NAU7802 + XIAO ESP32-C6 (ESPHome)
Obliczymy ostateczną cenę na podstawie wybranego pliku. Sprawdzisz ją i zaakceptujesz przed płatnością.
Zapisane na tym urządzeniu.
WiFi scale for 5 L jugs: TAL220 load cell, NAU7802 ADC, XIAO ESP32-C6, ESPHome, calibrated from Home Assistant.
- Ocena
- 0 / 5
- Polubienia
- 1
- Pobrania
- 3
- Wydruki
- 0
- Wyświetlenia
- 29
- Oceny
- 0
Aktualizacja u źródła:
Informacje o modelu
- Źródło
- Printables
- Kategoria
- Electronics
- Licencja
- Open Community License v1.1 + General Attribution v1
A compact WiFi scale that sits under a 5 L jug and tells Home Assistant how much liquid is left, in grams and in litres. I built five of them for the nutrient jugs (Micro / Grow / Bloom / pH Down / pH Up) of my hydroponic dosing station, but it works for any liquid container up to ~190 × 130 mm footprint and ~10 kg.
One scale = one self-contained board. Load cell, 24-bit ADC and ESP32-C6 all live inside the base. One USB-C cable, nothing else. No HX711.
Features
TAL220 10 kg load cell in Z mounting: fixed end screwed to the base, load end under the tray
Adafruit NAU7802 24-bit ADC (I²C 0x2A) – measured noise ±0.12 g on the first unit
Seeed XIAO ESP32-C6, USB-C port flush with the outer wall on the left side: reflash or power without opening anything, and any USB-C cable fits, whatever the size of its plug
Closed enclosure: snap-fit lid all around, both boards held without screws
USB-C strain-proof: a small printed retainer clips over the XIAO and presses on its metal shield, so tugging the USB cable can't lever the board out — in any direction, lid open or closed
4 neodymium magnets (19 × 9 × 4.6 mm) pressed into side slots: the scales stick to a steel shelf, side by side
Or screw it down: four countersunk Ø 4.5 mm holes in the floor, 100 × 70 mm spacing, symmetric
Ribbed TPU mat on the tray: the jug doesn't slide, and the raised rim keeps it centred
Calibration from Home Assistant, no reflash: zero, slope, jug tare and liquid density are persistent numbers set by buttons
Safe outputs: mass is unknown until calibrated, volume is unknown when the jug is removed (never a fake "0 L"), the board reboots itself if the ADC freezes
Printed parts (per scale)
File | Qty | Material | Orientation | Notes |
|---|---|---|---|---|
| 1 | ASA / PETG | bottom on the bed | no supports |
| 1 | ASA / PETG | on its side, as exported | no supports – printed on its side so the 1 mm snap tooth is drawn by the perimeters and the legs flex along the layers |
| 1 | ASA / PETG | roof on the bed (already flipped) | no supports |
| 1 | ASA / PETG | rim up | no supports |
| 1 | ASA / PETG | flat | 100 % infill – it carries the whole load |
| 1 | TPU 95A | skin on the bed, ribs up | goes into the tray ribs down |
Test pieces – print these first, they take minutes and validate the critical fits on your printer:
test_loadcell_rail.stl– the TAL220 must sit straight against the railtest_xiao_mount.stl– XIAO bed, wall slot with flush USB-C, rear stop and the retainer pockets (use it withxiao_retainer_ASA.stl)test_nau7802_clips.stl– the four NAU7802 clipstest_magnet_slot.stl– magnet press-fit slot
Settings I use (ASA): 0.2 mm layers, 4 perimeters, 6 top/bottom layers, gyroid 40 % (spacer 100 %), bed ≥ 110 °C.
TPU: 3 perimeters, 3 top/bottom layers, gyroid 20 %, slow.
ASA because mine live in an unheated greenhouse tunnel. PETG should be fine indoors (not tested). Avoid PLA: creep under a constant 6 kg load will drift the zero.
Hardware (per scale)
1 × TAL220 load cell, 10 kg
1 × Adafruit NAU7802 breakout (product 4538)
1 × Seeed Studio XIAO ESP32-C6 (no headers)
1 × Qwiic / STEMMA QT cable 15–20 cm, one end cut to bare wires
2 × M5×20 socket head screws (fixed end, from below)
2 × M4×20 socket head screws (load end, from above)
4 × neodymium magnets 19 × 9 × 4.6 mm (optional)
or 4 × Ø 4 countersunk screws, wood or M4 (optional, to screw the base down instead)
1 × USB-C cable (any) + 5 V supply
Optional: self-adhesive u.FL FPC antenna stuck inside the lid
Wiring
From | To |
|---|---|
Load cell red / black / white / green | NAU7802 E+ / E− / A− / A+ |
Qwiic red / black | XIAO 3V3 / GND |
Qwiic white (SDA) | XIAO D4 (GPIO22) |
Qwiic yellow (SCL) | XIAO D5 (GPIO23) |
Standard Seeed XIAO pinout. Go by the position in the Qwiic connector (GND, V+, SDA, SCL), not by colour: some cables have no blue wire.
If white/green of the load cell are swapped on your batch, the slope just comes out negative: calibration absorbs it, no rewiring.
Assembly
TAL220 on the fixed block, pressed against the rail, cable towards the back, 2 × M5×20 from below.
Clip the NAU7802 in, wire the terminal block.
Solder the Qwiic cable on the XIAO, slide its USB-C into the side hole (the end of the board goes into a slot in the wall), then lay the other end flat inside the rear stop.
Push the retainer across the XIAO until both teeth click into their pockets. The soldered wires run between the board and the pockets. To remove it, spread the legs.
Plug the cable into the NAU7802 and run it under the load cell through the notch at the foot of the rib, flat on the floor. No cable may touch the load cell.
Check the gap between load cell and base, then snap the lid on all around.
Press the magnets into their slots until they click (permanent).
8 mm spacer through the lid opening, tray on top, 2 × M4×20.
TPU mat into the tray, ribs down. Check all clearances with a sheet of paper.
To reopen the lid, remove the tray first (2 M4 screws).
STEP files (Fusion 360, SolidWorks, Onshape…)
balance_assemblage.step– the whole scale assembled: the 6 printed parts plus simplified load cell, NAU7802, XIAO, magnets and screws, each as a named body in place
These are real B-rep solids, not converted meshes: planes, cylinders and cones are exact, so you can edit them with direct modelling (push/pull a face, change a hole diameter). A STEP never carries a feature history – the parametric source remains balance_tal220.scad.
Firmware (ESPHome)
balance-common.yaml– the shared firmware (comments in French)balance-example.yaml– one small file per scale: name, density, antenna, API key
Printables doesn't accept .yaml files: they are uploaded as .yaml.txt — just remove the .txt.
Calibration from Home Assistant, in this order, waiting ~30 s for the raw reading to settle each time:
Faire le zéro – empty tray
Masse étalon – type a known mass (a water jug weighed on a kitchen scale, ~5 kg is ideal), press Enter, then Étalonner
Tarer bidon vide – empty jug on the tray (optional)
Densité – liquid density in g/L
Entities: mass (g), volume (L), jug present, raw reading, WiFi signal, plus the calibration numbers and buttons.
Good to know
Temperature drift is about ±10 g per 10 °C. Per-dose consumption (a few minutes) is accurate to the gram; day-to-day readings in an unheated space drift by tens of grams.
The TAL220 is rated −10 to +40 °C. Keep the jugs in the shade.
WiFi: the XIAO sits under a plastic lid, a few mm above a steel shelf. If the signal is poor, use the optional u.FL antenna and set
antenne: ALWAYS_ON– never without the antenna plugged in.The jug outline is 190 × 130 mm. Everything is parametric in
balance_tal220.scad(OpenSCAD 2021+): changejug_l,jug_w,jug_rand re-export.
License
3D model, OpenSCAD source and images: Open Community License v1.1 with the GAtt v1 (General Attribution) plugin. Print it, modify it, use it in your own business (a farm or greenhouse building scales for its own use is welcome) — but credit the original design, share remixes under the same license, and don't sell prints, kits or derivatives without asking me first.
ESPHome configuration files (
balance-common.yaml,balance-example.yaml): MIT — reuse them freely in your own projects.