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.
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.
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.
- 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.
- 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).
- Live energy tracking on the go.
- Push notifications via Firebase Cloud Messaging (FCM).
- Secure access using Firebase Authentication.
- Remote control of appliances.
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 |
- Clone the repository:
git clone https://github.com/GDSC-ZHCET/VoltSense.git cd VoltSense/server
- Install dependencies:
npm install
- Set up Firebase credentials and Google Cloud Run API keys in
.env
. - Run the server:
npm start
- Navigate to the frontend directory:
cd ../frontend
- Install dependencies:
npm install
- Start the Next.js development server:
npm run dev
🔗 Server URL (only for serving API endpoints)
- 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.
This project is licensed under the MIT License.
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.
- Avyukt Soni (Team Lead) - LinkedIn | Email
- Ziya Ali (Team Member) - LinkedIn | Email
- Ahmad Ilyas (Team Member) - LinkedIn | Email
- Saad Ahmad (Team Member) - LinkedIn | Email