saicharanjaina/Smart_grid ? reverse-engineered prompt
Reverse engineered prompt
Build me an ESP32 based smart grid monitoring and protection project that reads voltage and current in real time, calculates power, and shows everything on a 16x2 I2C LCD. I want it to detect underload and overload conditions, switch a relay automatically for protection, and also support manual and automatic modes. Please include remote monitoring in Blynk so I can see the live values on my phone and control the system when needed.
It should also simulate a self healing grid, so after a fault or overload it waits a short time, restores power, and checks the load again. If possible, add simple machine learning based load classification using voltage, current, and power to classify underload, normal load, and overload. Use the ESP32 pins for the voltage sensor, current sensor, relay, and I2C display as described in the project, and make the code clean and easy to upload in the Arduino IDE. If you need current Blynk or ESP32 library details, look them up online.
Are you gonna build this?
make sure you review the code using coderabbit