This project monitors the energy meter readings of a grid-connected solar power plant and displays the data wirelessly in real-time. The project uses an ESP32 microcontroller to host a web server and display the readings from the energy meters.
- ESP32
- Energy Meters
- LDR sensors
- WiFi module
- Resistors
- Breadboard and connecting wires
- Monitors KSEB and Solar energy meter readings.
- Displays the readings in real-time on a web page.
- Calculates the energy consumption and cost.
- Provides a user-friendly web interface to view the data.
- Connect the LDR sensors to the ESP32 as follows:
- KSEB Meter Pin: GPIO 22
- Solar Meter Pin: GPIO 23
- Set up the resistors and LDRs on the breadboard.
- Connect the ESP32 to your computer using a USB cable.
-
Download and install the Arduino IDE.
-
Install the necessary libraries:
- WiFi.h
- WebServer.h
-
Clone this repository to your local machine:
git clone https://github.com/your-username/SolarPowerMonitor.git
-
Open the
code.inofile in the Arduino IDE. -
Update the
ssidandpasswordvariables with your WiFi credentials. -
Upload the code to the ESP32.
- After uploading the code, the ESP32 will start an access point with the SSID "test" and password "123456789".
- Connect your computer or mobile device to this network.
- Open a web browser and enter the IP address
192.168.4.1to access the web interface.
The web interface consists of four tabs:
- Pulse: Displays the KSEB and Solar pulse counts.
- KWh: Displays the energy consumption in KWh.
- Wh: Displays the energy consumption in Wh.
- Price: Displays the cost of energy consumption.
The data on the web interface updates every second to provide real-time readings.