{"id":27627077,"url":"https://github.com/shashwat0903/e-yantra","last_synced_at":"2026-05-07T03:32:30.562Z","repository":{"id":288634749,"uuid":"968745251","full_name":"shashwat0903/E-Yantra","owner":"shashwat0903","description":"Built a smart energy simulation game that helps users understand and manage renewable sources like solar and hydro power more efficiently. Using ESP32 boards, ultrasonic sensors, and LDRs, we brought real-time data into the game to forecast energy output and balance supply-demand scenarios.","archived":false,"fork":false,"pushed_at":"2025-04-18T17:16:08.000Z","size":413,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T13:58:37.756Z","etag":null,"topics":["esp32","huggingface-transformers","ldr-sensor","mysql","nextsjs","openweather-api","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/shashwat0903.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}},"created_at":"2025-04-18T16:48:55.000Z","updated_at":"2025-04-18T17:16:11.000Z","dependencies_parsed_at":"2025-04-20T12:05:02.995Z","dependency_job_id":null,"html_url":"https://github.com/shashwat0903/E-Yantra","commit_stats":null,"previous_names":["shashwat0903/e-yantra"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shashwat0903/E-Yantra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashwat0903%2FE-Yantra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashwat0903%2FE-Yantra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashwat0903%2FE-Yantra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashwat0903%2FE-Yantra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shashwat0903","download_url":"https://codeload.github.com/shashwat0903/E-Yantra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shashwat0903%2FE-Yantra/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281745925,"owners_count":26554474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-30T02:00:06.501Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["esp32","huggingface-transformers","ldr-sensor","mysql","nextsjs","openweather-api","reactjs"],"created_at":"2025-04-23T13:52:39.603Z","updated_at":"2025-10-30T04:38:08.985Z","avatar_url":"https://github.com/shashwat0903.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⚡ E-Yantra - Operation and Control of Renewable Energy Sources\n\nA gamified simulation system integrated with real-time environmental inputs to manage and optimize renewable energy consumption in households. Built under the **E-Yantra initiative**, this project merges **simulation, hardware and AI-based recommendations**.\n\n![System Architecture](sys.png)\n\n---\n\n## 🧠 Project Summary\n\n**E-Yantra** is a **simulation + control system** that helps users understand how to manage renewable energy from **solar, wind, and hydro sources**. It provides:\n- Real-time **energy allocation and optimization**\n- **Weather/location-based recommendations**\n- Integration with **ESP32 + sensors** to predict actual renewable generation potential.\n\n---\n\n## 🚀 Key Features\n\n| Feature                            | Description                                                                                 |\n|-----------------------------------|---------------------------------------------------------------------------------------------|\n| 🎮 Energy Grid Game               | Simulated energy management game (see below)                                                |\n| 🌤 Weather-Based Recommendations | Dynamic suggestions based on solar irradiance, wind speed, rainfall                         |\n| 🌍 Location-Aware Optimizations   | Region-specific energy source guidance (e.g., wind in coastal areas, solar in deserts)     |\n| 📟 Sensor-Based Predictions       | Uses LDR \u0026 ultrasonic sensors to predict energy potential via ESP32                         |\n| 📊 Energy Calculation Dashboard   | Optimized allocation based on cost, green factor, or balanced approach                     |\n| 📡 Real-Time Data Integration     | Combines API + sensor input to dynamically adapt strategies                                 |\n| 📈 Impact Reports                 | Shows potential cost savings, carbon reduction, and usage charts                           |\n| 🧠 Educational Value              | Teaches real-world constraints through interactive design                                   |\n\n### 🎮 Energy Grid Optimization Game  \nUser allocates energy to appliances and receives feedback on efficiency.  \n\u003e **Image file:** `ec.png`\n\n![Energy Grid Game UI](./e.png)\n\n### 🌤 Weather-based Recommendation Panel  \nUses real-time weather (via OpenWeatherMap API) to guide source prioritization.  \n\u003e **Image file:** `rec.png`\n\n![Weather Recommendation UI](./r.png)\n\n---\n\n## 🛠️ Hardware \u0026 Software Stack\n\n### 🔌 Hardware\n- **ESP32** microcontroller\n- **HC-SR04** Ultrasonic Sensor – For water height → hydro energy\n- **LDR Sensor** – For light intensity → solar potential\n- **Zener Diode \u0026 Op-Amp** – Signal conditioning\n- **Breadboard \u0026 Jumper Wires**\n\n### 💻 Software\n- **Frontend**: React / HTML5 + JS + CSS\n- **Arduino IDE**: ESP32 code for sensor reading\n- **Weather API**: OpenWeatherMap API\n\n---\n\n## 🧪 How It Works\n\n### 🏠 Simulation Gameplay\n- Each day, the system assigns a fixed **energy budget**.\n- Users allocate energy to appliances.\n- Game provides **feedback and efficiency score**.\n\n### 🌦 Weather \u0026 Location Adaptation\n- Uses OpenWeatherMap to fetch real-time:\n  - Sunlight intensity\n  - Wind speed\n  - Rain probability\n- Updates strategy to reflect source potential.\n\n### 🔋 Optimization Algorithms\n- **Green Strategy**: Maximize renewable source use\n- **Cost Strategy**: Prioritize lowest-cost source\n- **Balanced Strategy**: Blend based on availability and demand\n\n### 🧾 Prediction Hardware Flow\n- **LDR** reads sunlight → predicts solar output\n- **Ultrasonic sensor** reads water level → predicts hydro potential\n- Readings sent to server via ESP32 serial/HTTP\n- Dashboard updates predictions live\n\n---\n### 🧰 Clone the Repository\n```bash\ngit clone https://github.com/your-username/E-Yantra.git\ncd energy-game\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshashwat0903%2Fe-yantra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshashwat0903%2Fe-yantra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshashwat0903%2Fe-yantra/lists"}