Your idea is safe; NDA signed before discussion
Case Study ยท Mier, Northern Cape, South Africa

Solar-Powered
RFID Water Vending
for Remote Communities

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.

ESP32
Core MCU
100%
Solar Powered
RFID
Access System
0
Internet Needed
๐Ÿ“
Location
Mier, Northern Cape, South Africa
โ˜€๏ธ
Power Source
Solar PV + LiFePOโ‚„ Battery Bank
๐Ÿ’ง
Dispensing Model
RFID-gated, quota-based โ€” 1L per tap, fully free
๐Ÿ–ฅ๏ธ
UI
DWIN HMI Display โ€” multilingual, touch-enabled
๐Ÿ“ก
Connectivity
Fully offline โ€” no SIM, no WiFi required
Water vending installation in Kalahari desert
~500kmfrom nearest city

Water access in the Kalahari โ€” no grid, no internet, no margin for error

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.

  • โ˜€๏ธ
    Fully solar-powered โ€” no grid electricity anywhere near the installation site
  • ๐Ÿ“ก
    Zero internet connectivity โ€” GSM and WiFi both unavailable; all logic must run offline
  • ๐ŸŒก๏ธ
    Extreme desert conditions โ€” temperatures swinging 50ยฐC between summer days and winter nights
  • ๐Ÿง‘โ€๐Ÿคโ€๐Ÿง‘
    Non-technical end users โ€” UI must be effortless for people of all ages, including elderly community members
  • ๐Ÿ’ง
    Precise metering โ€” every litre counts; dispensing must be accurate and quota-enforced per card
  • ๐Ÿ”’
    Tamper resistance โ€” remote location demands rugged enclosures and anti-abuse design

End-to-end embedded engineering,
built for the edge of the world

01

ESP32 Core โ€” The Brain of the System

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.

ESP32-WROOM-32Custom FirmwareState Machine ArchitecturePower-Loss Recovery
Why offline-first matters here: In a location with no GSM and no WiFi, cloud-dependent systems simply fail. Every critical operation โ€” quota enforcement, data logging, user feedback โ€” runs entirely on-device.
02

RFID Access & Quota Management

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.

RFID-RC522On-card Data Storage1L Quota EnforcementSub-2s Response Time
03

DWIN HMI Display โ€” Designed for Clarity

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.

DWIN DMT SeriesDGUS UI DesignUART CommunicationIcon-Based UX
04

Solar Power Architecture โ€” Off-Grid by Design

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.

Solar PV ArrayLiFePOโ‚„ Battery Bank3-Day AutonomySmart Charge Control
05

Electronics Enclosure & Field Hardening

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.

IP-Rated EnclosureRelay-Controlled ValveFerrule TerminalsField-Serviceable Design
06

Lab Testing Before Deployment

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.

What you see in this video: The complete dispensing cycle โ€” card tap, quota verification, valve actuation, flow measurement, and quota write-back โ€” all running offline on the ESP32 at our Jalandhar lab before the unit was shipped to Africa.

Live in the Kalahari

From lab bench to desert deployment โ€” the machine operating in Mier, Northern Cape.

Solar panels and water pressure vessel on site
Solar array + pressure vessel โ€” operational site
Solar panel mounting frame structure
Locally fabricated solar panel mounting framework
Water storage tank and pump system
Water storage tank and borehole pump system
Full site aerial view in Northern Cape desert
Full site view โ€” Mier, Northern Cape
ESP32 control electronics inside the machine enclosure
ESP32 control electronics โ€” inside enclosure

Watch the system run

Two videos โ€” one from our lab during development, one showing the DWIN machine UI that community members interact with every day.

๐Ÿ”ฌ Lab Testing โ€” ESP32 Dispensing Logic LAB
๐Ÿ–ฅ๏ธ DWIN Display โ€” Machine UI Walk-through LIVE

The full tech stack

Every component selected for reliability in harsh, off-grid conditions โ€” not lab conditions.

๐Ÿง 
Core MCU
ESP32
Dual-core Xtensa, rich peripheral set, proven in field deployments worldwide
๐Ÿ“ณ
Access Control
RFID-RC522
13.56MHz MIFARE cards โ€” each card stores individual quota data
๐Ÿ–ฅ๏ธ
Human Interface
DWIN Display
Intelligent HMI with custom DGUS UI pages, UART-driven from ESP32
๐Ÿ’ง
Actuation
Solenoid Valve
Relay-controlled, NSF-compliant, rated for continuous outdoor use
โ˜€๏ธ
Power
Solar + LiFePOโ‚„
Solar PV array with charge controller, 3-day battery autonomy
๐Ÿ”ฉ
Enclosure
IP-Rated Cabinet
Weatherproof, tamper-resistant, field-serviceable wiring throughout
โšก
Power Conversion
Buck Converter
Efficient 12V โ†’ 5V + 3.3V rails, thermal protection built-in
๐Ÿ“
Development
Custom Firmware
C/C++ on Arduino-ESP32 framework, full state machine with fault recovery

Shipped. Operational. Proven.

The machine has been live and dispensing water to Mier community members since deployment.

100%
Solar Powered
Zero grid dependency. Runs indefinitely on renewable energy in the Kalahari sun.
<2s
Card-to-Water Time
RFID read, quota check, valve open โ€” sub-2-second response from tap to flow.
0
Internet Required
Fully offline operation. No SIM, no WiFi, no cloud โ€” and no single point of failure.
1L
Metered Accuracy
Precise quota enforcement per card per transaction. Every litre tracked on-device.
3 day
Battery Autonomy
LiFePOโ‚„ bank sized for 3 days of operation through overcast desert weather.
โˆž
Community Impact
Free, equitable water access for a remote population with no existing infrastructure.

Technology that reaches where it's needed most

The hardest engineering problems aren't always the most complex.

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.

"This is the kind of project that reminds you why embedded engineering matters. Not every system needs an app. Sometimes a card, a valve, and good firmware is everything."

โ€” DigitalMonk Engineering Team

Have a hardware problem
that matters?

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.

Get a Free Project Estimate