Open-source smart prepaid electricity system using Arduino, ESP8266 and GSM for Africa
# β‘ Umeme ya Kwetu
**Open-Source Smart Prepaid Electricity System for Africa**
---
## π Overview
**Umeme ya Kwetu** is an open-source smart prepaid electricity platform designed to improve energy accessibility and management in developing regions, particularly in the Democratic Republic of Congo π¨π©.
The system combines **IoT hardware (Arduino, ESP8266)**, **GSM communication**, and a **web-based management platform** to enable real-time monitoring, secure prepaid energy distribution, and remote recharge via SMS.
---
## π― Objectives
* Provide an affordable and scalable prepaid electricity solution
* Enable real-time energy monitoring and control
* Simplify energy recharge via mobile (SMS/GSM)
* Improve transparency and management for energy vendors
* Support smart energy infrastructure development in Africa
---
## π Key Features
* π Prepaid electricity metering system
* π² Recharge via LoRa and SMS sending to customers by (GSM module: SIM800L / SIM900A)
* π‘ Real-time data transmission to the server using ESP32 and reception will be by loRa which transmits them to the ESP32
* π Web-based dashboard (Admin / Vendors)
* π₯ Multi-user management (Admin, Vendors, Clients)
* π Energy consumption tracking (kWh)
* π° Automatic conversion (1$ = 4 kWh)
* β οΈ Low credit alerts and notifications
* ποΈ Local database system (MySQL)
---
## ποΈ System Architecture
```
[ Client Meter ]
β
βΌ
[ Arduino + Sensors ]
β
βΌ
[ LoRa ] βββββββββββββββΊ[ LoRa ] βββββββββββββββΊ [ ESP32 ]
β β
βΌ βΌ
SMS Recharge [ Web Server (PHP/MySQL) ]
β
βΌ
[Dashboard / API /GSM Module]
```
---
## π§ Technologies Used
### Hardware
* Arduino Nano
* ESP32
* LORA
* GSM Module (SIM800L / SIM900A)
* Energy Meter (Yaki or PZEM-004T)
### Software
* Embedded C / Arduino IDE
* HTML, CSS, Bootstrap
* PHP (Backend API)
* MySQL (Database)
* JavaScript
---
## π Project Structure β¦