{"id":48451814,"url":"https://github.com/robert-solomon12/ev-charging-session-simulator","last_synced_at":"2026-04-06T21:01:34.085Z","repository":{"id":349529142,"uuid":"1201282520","full_name":"robert-solomon12/ev-charging-session-simulator","owner":"robert-solomon12","description":"Python-based EV charging simulation project","archived":false,"fork":false,"pushed_at":"2026-04-06T11:01:33.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-06T12:23:35.918Z","etag":null,"topics":["charging","electric","evse","python","python3","vehicle"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/robert-solomon12.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-04T13:15:14.000Z","updated_at":"2026-04-06T12:09:37.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/robert-solomon12/ev-charging-session-simulator","commit_stats":null,"previous_names":["robert-solomon12/ev-charging-session-simulator"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/robert-solomon12/ev-charging-session-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-solomon12%2Fev-charging-session-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-solomon12%2Fev-charging-session-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-solomon12%2Fev-charging-session-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-solomon12%2Fev-charging-session-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robert-solomon12","download_url":"https://codeload.github.com/robert-solomon12/ev-charging-session-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robert-solomon12%2Fev-charging-session-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31489427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-06T17:22:55.647Z","status":"ssl_error","status_checked_at":"2026-04-06T17:22:54.741Z","response_time":112,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["charging","electric","evse","python","python3","vehicle"],"created_at":"2026-04-06T21:01:33.291Z","updated_at":"2026-04-06T21:01:34.078Z","avatar_url":"https://github.com/robert-solomon12.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![EV Charging Simulator](data/cover.jpeg)\r\n\r\n# EV Charging Session Simulator\r\n\r\nPython-based EV charging simulation project by **Robert Solomon**.\r\n\r\nThis project simulates EV charging sessions using battery state of charge (SOC), charger power, and electricity cost inputs. It also models simplified SOC-based charging behaviour and generates visualizations of charging progress over time.\r\n\r\n## Features\r\n- Simulates charging from current SOC to target SOC\r\n- Calculates energy added\r\n- Estimates charging time\r\n- Estimates charging cost\r\n- Logs charging sessions to CSV\r\n- Supports multiple predefined EV profiles\r\n- Uses simplified SOC-based charging behaviour\r\n- Generates a state-of-charge (SOC) graph for each charging session\r\n\r\n## Project Structure\r\n- `main.py` – entry point for the simulator\r\n- `vehicle.py` – EV battery logic and predefined vehicle profiles\r\n- `charger.py` – charger configuration\r\n- `session.py` – charging session calculations and SOC-based charging simulation\r\n- `utils.py` – CSV logging utilities\r\n- `visualization.py` – graph generation for charging sessions\r\n- `data/` – output logs and generated charts\r\n\r\n## Example Scenario\r\n- Vehicle: Tesla Model 3\r\n- Battery Capacity: 60 kWh\r\n- Starting SOC: 25%\r\n- Target SOC: 80%\r\n- Charger: 50 kW DC Fast Charger\r\n- Price: €0.35 / kWh\r\n\r\n## Supported EV Profiles\r\n- Tesla Model 3 – 60.0 kWh\r\n- Nissan Leaf – 40.0 kWh\r\n- BMW i4 – 83.9 kWh\r\n\r\n## Future Improvements\r\n- Add charging curve logic\r\n- Add multiple EV profiles\r\n- Add Streamlit dashboard\r\n- Add visual charts for SOC vs time\r\n\r\n## Charging Behaviour\r\nThe simulator includes a simplified SOC-based charging model to better reflect real EV charging behaviour:\r\n\r\n- 0%–50% SOC → 100% charger power\r\n- 50%–80% SOC → 70% charger power\r\n- 80%–100% SOC → 40% charger power\r\n\r\nThis models the idea that EV charging typically slows as the battery approaches a higher state of charge.\r\n\r\n## Visualization\r\nThe simulator generates a graph showing battery state of charge (SOC) over time for each charging session.\r\n\r\nOutput example:\r\n- `data/soc_over_time.png`\r\n\r\nSnapshot:\r\n![SOC Over Time](data/soc_over_time.png)\r\n\r\n\r\n## How to Run\r\n\r\n### 1. Clone the repository and navigate into the project\r\n```bash\r\ngit clone https://github.com/robert-solomon12/ev-charging-session-simulator.git\r\n\r\ncd ev-charging-session-simulator\r\n```\r\n\r\n### 2. Create and activate a virtual environment\r\n```bash\r\npython3 -m venv venv\r\nsource venv/bin/activate\r\n```\r\n### 3. Install dependencies\r\n```bash\r\npip install -r requirements.txt\r\n```\r\n\r\n### 4. Run the simulator\r\n```bash\r\npython3 main.py\r\n```\r\n\r\n\r\n## Version Control\r\nThis project follows a structured versioning approach using Git and GitHub.\r\n\r\nStable versions of the project are tracked using tags:\r\n\r\n- **v1.0-initial** – Initial implementation of the EV charging simulator\r\n- **v1.1-multiple-profiles** – Added support for multiple EV vehicle profiles\r\n- **v1.2-visualization** – Introduced SOC-based charging behaviour and session visualization\r\n\r\n👉 You can view all tagged versions and releases [here](\r\nhttps://github.com/robert-solomon12/ev-charging-session-simulator/releases)\r\n\r\n\r\n## Related Work\r\nThis project is part of my broader interest in EV systems and charging infrastructure:\r\n\r\n- [EV Charging Protocol Implementation (FYP)](https://github.com/robert-solomon12/FYP-Electric-Vehicle-Charging-Protocol-Implementation)  \r\n  A final year project exploring communication between electric vehicles and charging stations, including Vehicle-to-Grid (V2G) concepts and protocol-level interactions.\r\n\r\n\r\n## Future Improvements\r\n- Add charging power vs time graph\r\n- Add multiple charger types\r\n- Add Streamlit dashboard (to further enhance visual analysis and interaction)\r\n- Add cost comparison between different charging scenarios","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert-solomon12%2Fev-charging-session-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobert-solomon12%2Fev-charging-session-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobert-solomon12%2Fev-charging-session-simulator/lists"}