This project presents a Blockchain-Enabled Portable Electric Vehicle (EV) Charger that ensures secure, transparent, and real-time monitoring of the charging process.
The system integrates MATLAB/Simulink for charger modeling and control, Blockchain for transaction security, and a Streamlit-based web dashboard for live visualization.
The goal is to create a smart, portable, and tamper-proof EV charging system capable of recording every energy transaction with transparency — essential for modern e-mobility infrastructure.
The project consists of three integrated layers:
| Layer | Description |
|---|---|
| 🧩 1. MATLAB/Simulink Layer | Simulates the EV charging operation, logs real-time parameters such as voltage, current, energy, SOC, and cost. |
| 🔐 2. Blockchain Layer | Converts each charge session into a secure transaction, forming a blockchain ledger (LiveLedger.csv) with hash links to prevent tampering. |
| 💻 3. Streamlit Dashboard | Displays live charger metrics, plots, SOC %, energy, cost, and verifies blockchain integrity in real time. |
- Portable EV Charger Simulation using MATLAB/Simulink.
- Secure Blockchain Ledger with SHA-256 transaction hashing.
- Real-Time Dashboard built with Streamlit for live monitoring.
- SOC, Energy & Cost Calculation based on dynamic charge parameters.
- Cross-Platform: Works on Windows, macOS, or Linux.
- Auto-Refresh Visualization with blockchain integrity validation.
-
Simulation
- Run the
server_listener.mand then the Simulink model of the portable EV charger. - Then, run the
BasicData.mto log basic parameters in the workspace. - Key parameters (
Vout,Iout,SOC,Energy,Cost) are logged to the workspace as Timeseries variables.
- Run the
-
Transaction Assembly
- Run
transactions.mto convert logs into blockchain-formatted data. - The script generates:
Transactions.mat→ MATLAB structured data.
- Along this, open
addBlock.mscript and then run the filebuild_blockchain_ledger.m.build_blockchain_ledger.mcreates ledger records.
- Finally, run the
create_csv_for_streamlit.mfile to successfully generate csv file containing dashboard parameters.
- Run
-
Visualization
- Launch the dashboard using:
python3 -m streamlit run ev_streamlit_dashboard.py
- View live metrics (SOC, power, cost) and blockchain status updates in the browser.
- Launch the dashboard using:
-
Integrity Verification
- Each ledger entry is validated via hash links (
PrevHash,Hash). - Any manual modification breaks integrity → shown as "Blockchain Integrity FAILED" on dashboard.
- Each ledger entry is validated via hash links (
| Software / Library | Purpose |
|---|---|
| MATLAB / Simulink | Charger modeling, logging |
| Python | Dashboard backend |
| Streamlit | Live visualization |
| Pandas | Data processing |
| Matplotlib | Plot rendering |
| SHA-256 | Blockchain hashing |
Mohammed Ahmed Majid
Department of Electrical Engineering
Zakir Husain College of Engineering & Technology
Aligarh Muslim University (AMU)
Project submitted for:
MathWorks MATLAB & Simulink Challenge 2025