Skip to content

GDSC-ZHCET/VoltSense

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VoltSense: AI-Powered Smart Energy Monitoring System

VoltSense

📌 Overview

VoltSense is an AI-powered IoT-based smart energy monitoring system designed to detect voltage anomalies, prevent electrical failures, and provide real-time insights through a web dashboard and mobile application. The project leverages Google Cloud Run, Firebase, Vertex AI (Gemini API), WebSockets, and Docker to create a robust, scalable, and intelligent energy management solution.

🎯 Problem Statement

Electrical failures and voltage fluctuations are significant challenges in many regions, especially in India, causing damage to appliances, financial losses, and even safety hazards. VoltSense provides a real-time monitoring system with anomaly detection to alert users before major electrical issues occur.

🌍 Sustainable Development Goals (SDG)

VoltSense aligns with SDG 7 (Affordable and Clean Energy) and SDG 12 (Responsible Consumption and Production) by promoting efficient energy usage, reducing electrical hazards, and enabling smart grid advancements.

🚀 Features

🔌 IoT Smart Switch

  • Monitors real-time voltage and current using ZMPT101B (voltage sensor) and ACS712 (current sensor).
  • Controls electrical appliances via Songle SRD-05VDC-SL-C relay module.
  • Uses Hi-Link HLK-PM01 (AC 220V to DC 5V) for power conversion.
  • WiFiManager (AP Mode) for easy device setup.

🌐 Web Dashboard

  • Real-time energy monitoring with interactive graphs.
  • Anomaly detection using AI (Vertex AI API - Gemini API).
  • User authentication (Firebase Authentication).
  • Secure WebSocket communication for live data updates.
  • Deployed using Google Cloud Run (Dockerized).

📱 Mobile Application

  • Live energy tracking on the go.
  • Push notifications via Firebase Cloud Messaging (FCM).
  • Secure access using Firebase Authentication.
  • Remote control of appliances.

🔧 Tech Stack

Component Technology Used
Hardware ESP32 Devkit V1, ZMPT101B, ACS712, Songle Relay, Hi-Link HLK-PM01
Frontend Next.js, Tailwind CSS, Chart.js
Backend Node.js, Express.js, Google Cloud Run, WebSockets
Database Firestore Database (NoSQL)
Deployment Google Cloud Run, Docker
AI Vertex AI API (Gemini API)
Authentication Firebase Authentication
Notifications Firebase Cloud Messaging (FCM)
Storage Firebase Storage

📊 Process Flow

Process Flow

🏗️ System Architecture

System Architecture


🛠️ Installation & Setup

🚀 Backend Setup

  1. Clone the repository:
    git clone https://github.com/GDSC-ZHCET/VoltSense.git
    cd VoltSense/server
  2. Install dependencies:
    npm install
  3. Set up Firebase credentials and Google Cloud Run API keys in .env.
  4. Run the server:
    npm start

🌐 Frontend Setup (Web Dashboard)

  1. Navigate to the frontend directory:
    cd ../frontend
  2. Install dependencies:
    npm install
  3. Start the Next.js development server:
    npm run dev

📽️ Deployment URLs, Demo Video & Screenshots

🔗 Dashboard URL

🔗 Server URL (only for serving API endpoints)

📽 Watch Demo Video

Dashboard


📌 Future Enhancements

  • Reduce the cost of production of IoT Smart Switch.
  • Reduce the form factor of the switch.
  • Multi-device support for industrial applications.
  • Train our own ML Prediction Model using Vertex AI, which will predict the estimated cost of electricity according to power consumption.

📜 License

This project is licensed under the MIT License.


👨‍💻👩‍💻 Our Team

We're a team of engineers from Zakir Husain College of College of Engineering and Technology, Aligarh Muslim University, India. We are a part of Google Developer Groups on Campus, ZHCET.


About

Deployed on Google Cloud Run via Docker, CI/CD using GitHub Actions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •