Solar-Powered RFID Water Vending Machine Based on ESP32
Building an Autonomous Water Dispensing System for Rural and Public Installations.
Abstract
The system combines Smart Vending Software, RFID authentication, cashless payment support, real-time monitoring, and intelligent power management into a compact embedded platform.
Introduction
Water vending systems have become increasingly common in public spaces, but many installations depend on continuous AC power and require frequent maintenance. Remote deployments demand an alternative architecture that minimizes power consumption while ensuring reliable operation. This smart vending machine is able to manage the real time inventory system and this vending machine allows users to access it with a web app.
The objective of this project was to develop an embedded controller capable of:
- Authenticating users through RFID cards
- Controlling water dispensing electronically
- Logging transactions
- Reporting operational data remotely
- Reducing maintenance requirements
System Architecture
The controller consists of the following functional blocks:
- RFID Reader (RC522)
- Solar Charge Controller
- 12 V Battery Pack
- Solenoid Valve Driver
- Relay Module
- LCD Display
- Water Flow Control
- Wi-Fi Communication
- Cloud Dashboard (MQTT)
Hardware Design
- PWM/MPPT Charge Controller
- 12 V Sealed Battery
- 5 V Buck Converter
- 3.3 V LDO for ESP32
- Water quantity
- Dispensing status
- Error messages
- Network status
Water Dispensing Circuit
Firmware Design
- Payment Interface
- Display Manager
- Water Control
- MQTT Client
- Wi-Fi Manager
- Power Monitoring
- Data Logger
- OTA Firmware Update
Operating Sequence
System startup- Initialize peripherals
- Connect to Wi-Fi
- Wait for RFID authentication
- Validate user credentials
- Verify payment or account balance
- Activate solenoid valve
- Dispense programmed water quantity
- Store transaction locally
- Upload data to cloud server
- Return to standby mode
Remote Monitoring

- Solar charging status
- Daily water consumption
- Number of transactions
- Valve operating time
- Device uptime
- Network signal strength
- System alarms
Power Optimization
- Wi-Fi activation only when required
- LCD backlight timeout
- Low-power peripheral management
- Battery voltage monitoring
Applications
- Schools
- Industrial facilities
- Public parks
- Bus terminals
- Railway stations
- Highway rest areas
- Smart city infrastructure
Future Improvements
- UPI integration
- GSM/LTE communication
- Water quality monitoring
- Predictive maintenance
- Mobile application support
- Remote firmware updates
- AI-based usage analytics
Conclusion
The modular hardware architecture and firmware design also make the controller suitable for future expansion with additional payment methods, environmental sensors, and cloud-based management services, offering a practical embedded solution for modern smart infrastructure.

Discussion (0 comments)