We built an off-grid, ESP32-powered water dispensing machine that gives desert communities free, metered access to clean water โ with zero connectivity required, no cash, no apps.

The Mier communities sit in one of South Africa's most remote semi-arid regions. Water is a shared public resource โ but access was uncontrolled, unmetered, and unsustainable. The brief was uncompromising.
We chose the ESP32 as the central controller for its balance of processing power, peripheral richness, and proven reliability in harsh field conditions. The entire dispensing logic โ RFID authentication, quota tracking, valve actuation, and display communication โ runs on a single ESP32 without cloud dependency.
Custom firmware handles the complete state machine: card read โ quota check โ valve open โ litre measurement โ valve close โ quota deduct โ card update. If power fails mid-dispense, the system recovers gracefully on next boot.
Each community member holds an RFID card preloaded with their daily/weekly water allocation. On tap, the ESP32 reads the card, verifies the remaining quota, opens the solenoid valve for the metered amount, and writes the updated balance back to the card โ all in under two seconds.
No central database is required. The card itself is the record. Lost card = lost quota, which creates natural accountability within the community without requiring any administrative infrastructure. This is a fundamentally different model from conventional cashless vending machine systems โ no payment gateway, no cloud dependency, no single point of failure.
We integrated a DWIN intelligent display as the user interface. The UI shows remaining quota, transaction confirmation, error states, and solar/battery status โ all without requiring literacy or technical knowledge. Visual cues and colour-coded states guide users through the process intuitively.
The display communicates with the ESP32 over UART. Custom DWIN pages were designed in the DGUS IDE, keeping UI updates fully independent of firmware changes.
The machine runs entirely on solar with a LiFePOโ battery bank sized for 3 days of autonomy through cloudy periods. A dedicated solar charge controller manages charging cycles and provides low-voltage cutoff protection. The ESP32 monitors battery state of charge and throttles display brightness when reserves drop below threshold.
The wooden pole framework visible in the site photos is the locally fabricated solar panel mounting structure โ built on-site using materials available in the region, reducing installation cost and shipping complexity.
The control electronics โ ESP32, relay board, buck converter, RFID reader, and terminal blocks โ are packaged in an IP-rated enclosure mounted inside the machine cabinet. Every connection uses ferrule terminals and strain relief. Wiring is colour-coded and documented for future field service by non-specialist technicians.
The water path uses NSF-compliant tubing and a solenoid valve rated for continuous outdoor use. A pressure vessel (the blue cylinder visible in the photos) provides flow buffering from the borehole pump.
Before shipping to site, the complete system underwent extensive bench testing at DigitalMonk's lab โ validating dispensing accuracy, RFID read reliability, power-loss recovery, and display state transitions across the full usage flow.
From lab bench to desert deployment โ the machine operating in Mier, Northern Cape.





Two videos โ one from our lab during development, one showing the DWIN machine UI that community members interact with every day.
Every component selected for reliability in harsh, off-grid conditions โ not lab conditions.
The machine has been live and dispensing water to Mier community members since deployment.
Building for Mier wasn't about cutting-edge connectivity or cloud dashboards. It was about building something robust enough to run for years without intervention, simple enough for any community member to use, and sustainable enough to run on sunlight alone.
The lesson from this project: offline-first embedded systems aren't a limitation โ they're a design philosophy. When you strip away infrastructure dependency, what remains is a machine that genuinely works โ even 500km from the nearest city. If you're exploring custom vending machine development for your own use case โ connected or off-grid โ this is the kind of thinking we bring to every build.
Whether you're building for remote communities, industrial environments, or a custom vending machine for any vertical โ our embedded team has shipped in every condition. Let's talk.
๐ NDA signed before any technical discussion. Your idea is safe.