Back to all work

Harvest weighing station

A Raspberry Pi station that weighs every strawberry crate on my family's farm and records who picked it.

Year
2026
Built with
Python, Raspberry Pi, SQLite, Next.js, Prisma
Week of Oct 26: 0 of 54 contributionsWeek of Nov 2: 0 of 7 contributionsWeek of Nov 9: 0 of 14 contributionsWeek of Nov 16: 0 of 70 contributionsWeek of Nov 23: 0 of 144 contributionsWeek of Nov 30: 0 of 158 contributionsWeek of Dec 7: 0 of 11 contributionsWeek of Dec 14: 0 of 44 contributionsWeek of Dec 21: 0 of 131 contributionsWeek of Dec 28: 0 of 177 contributionsWeek of Jan 4: 0 of 82 contributionsWeek of Jan 11: 0 of 68 contributionsWeek of Jan 18: 0 of 54 contributionsWeek of Jan 25: 0 of 152 contributionsWeek of Feb 1: 0 of 107 contributionsWeek of Feb 8: 0 of 93 contributionsWeek of Feb 15: 0 of 118 contributionsWeek of Feb 22: 0 of 71 contributionsWeek of Mar 1: 0 of 88 contributionsWeek of Mar 8: 0 of 45 contributionsWeek of Mar 15: 0 of 117 contributionsWeek of Mar 22: 0 of 178 contributionsWeek of Mar 29: 0 of 87 contributionsWeek of Apr 5: 0 of 67 contributionsWeek of Apr 12: 0 of 8 contributionsWeek of Apr 19: 0 of 19 contributionsWeek of Apr 26: 0 of 537 contributionsWeek of May 3: 0 of 97 contributionsWeek of May 10: 0 of 456 contributionsWeek of May 17: 0 of 142 contributionsWeek of May 24: 0 of 699 contributionsWeek of May 31: 0 of 329 contributionsWeek of Jun 7: 0 of 288 contributionsWeek of Jun 14: 0 of 195 contributionsWeek of Jun 21: 1 of 324 contributionsWeek of Jun 28: 15 of 60 contributionsWeek of Jul 5: 18 of 243 contributionsWeek of Jul 12: 0 of 542 contributionsWeek of Jul 19: 0 of 103 contributionsWeek of Jul 26: 0 of 399 contributionsWeek of Aug 2: 0 of 395 contributionsWeek of Aug 9: 0 of 401 contributionsWeek of Aug 16: 0 of 124 contributionsWeek of Aug 23: 0 of 109 contributionsWeek of Aug 30: 0 of 95 contributionsWeek of Sep 6: 0 of 95 contributionsWeek of Sep 13: 0 of 78 contributionsWeek of Sep 20: 0 of 155 contributionsWeek of Sep 27: 0 of 123 contributionsWeek of Oct 4: 0 of 274 contributionsWeek of Oct 11: 0 of 316 contributionsWeek of Oct 18: 0 of 13 contributions
34 commits to this project in the last year.

Why I built it

During the strawberry harvest, every crate has to be counted for the person who picked it. I wanted that to happen automatically, even out on the farm without internet.

What I built

A picker scans their barcode and the station takes whatever the scale shows at that moment. It runs on a Raspberry Pi Zero 2 W with a KERN scale, a barcode scanner and a 4G module. Every weighing is saved on the Pi first and uploaded later, with its own ID so nothing counts twice. A dashboard in Next.js shows the day, every weighing and the employees.

The hard part

The scanner and the scale both lose their connection, so the station reconnects on its own and saves scans without a weight as 0 g instead of dropping them. Getting the barcodes right took four tries, from EAN-13 to simple two-digit IDs.

What I learned

With hardware you have to plan for things failing from day one. In software I can mostly assume the input arrives. Here the scale, the scanner or the mobile connection can drop out at any time.

Results

The station is in use on the farm.