Professional Documents
Culture Documents
A thesis submitted by
Supervisor Co-Supervisor
Engr.Shayan Tariq Jan Engr.Rashid Aleem
(June 2021)
i
CERTIFICATE
This is to certify that “POWER MANGEMENT AND MONITORING OF SOLAR
PV LOAD TROUGH SENSOR USING IoT" is submitted in partial fulfillment of the
requirement for the degree of Bachelor of Engineering in Electrical Engineering by the
following students:
Shehriyar khan (13738)
Rafaqatullah khan (14107)
Owais Afridi (13686)
______________________ ______________________
Supervisor Co-Supervisor
Engr.Shayan Tariq Jan Engr.Rashid Aleem
_____________________________________
(Chairman, Department of Electronic Engineering)
Date: __________________
ii
ACKNOWLEDGEMENT
I acknowledge that the Research work presented in this thesis is a contribution and
collaborative work of a lot of people without whom I might not have reached this
milestone in my life. First of all, I thank The Almighty and Most Merciful Allah for
granting me the skills and abilities to reach the heights of success, then my parents, who
were always there to support me through every thick and thin. I thank my supervisor for
being extremely cooperative, guiding me and helping me out in all the problems and
issues encountered during the development of the project. In the last I thank all my
friends who supported me morally. Thank you all and may Allah bless you.
iii
ABSTRACT
The power generated from solar panel is to be efficiently monitored and managed to
reduce the generation losses in solar power generation. Generally, we use solar plants to
build in the locations where people can’t reach on daily basis so this approach will help
them to virtually control their systems from faraway places. It monitors the panel load by
using the IoT technologies and the data which are received from the panels are send to
the server through the internet for the future use. It also helps the remote users to monitor
the solar power. The user can get the information about the current and previous average
parameter like voltage, current. This will facilitate the fault detection and preventive
maintenance of solar. In this paper we use the application Internet of thing (IOT) to
automatically control and monitor the solar power (renewable energy). Using this
technology, the cost of solar energy (renewable energy) generation reduces. This also
provide real time information to the user help to monitor the system. The main purpose of
this project is that the solar panel can collect or capture maximum solar radiation and
maintain the system more reliably and efficientlyand turn on and turn off the load
accordingly to battery backup. if battery backup reduced the load on solar panel also
reduces and when its restore to full backup it turns on the full load automatically and vice
versa.
iv
Table of Contents
ABSTRACT......................................................................................................................iv
Table of Contents...............................................................................................................v
List of Tables....................................................................................................................vii
List of Figures.................................................................................................................viii
List of Abbreviations........................................................................................................ix
List of Symbols...................................................................................................................x
1. INTRODUCTION.....................................................................................................1
1.1 Problem Statement................................................................................................2
1.2 Aims and Objectives.............................................................................................2
1.3 Thesis Layout........................................................................................................2
2. LITERATURE REVIEW.........................................................................................4
3. DESIGN AND METHODOLOGY........................................................................12
3.1 Methodology.......................................................................................................12
3.1.1 Controller.....................................................................................................12
3.1.2 Current sensor..............................................................................................13
3.1.2.1 Pinout specification..............................................................................14
3.1.3 Voltage Sensor.............................................................................................15
3.1.3.1 Voltage Sensor Module Pinout Configuration.....................................15
3.1.4 Power Supply...............................................................................................16
3.1.5 Battery..........................................................................................................16
3.1.6 Lcd Screen 16*2..........................................................................................17
3.1.6.1 Table LCD Pin with Function..............................................................18
3.1.7 Serial Convertor for LCD:...........................................................................18
3.1.8 Solar Panel...................................................................................................19
3.1.9 Wi-Fi Module..............................................................................................20
3.1.10 Relay module...............................................................................................21
3.1.11 Socket..........................................................................................................22
v
3.1.12 Buck converter.............................................................................................23
3.1.13 Loads............................................................................................................24
3.2 Design.................................................................................................................25
3.2.1 Arduino Programing IDE............................................................................25
3.2.2 Protecus Simulation.....................................................................................27
3.2.3 IoT Websitr Interface...................................................................................28
3.2.3.1 IoT Website Main Page Interface.........................................................28
3.2.3.2 Current Measurement On Iot Server....................................................29
3.3 Hardware Protype...............................................................................................30
4. RESULTS AND DISCUSSION..............................................................................31
4.1 Result..................................................................................................................31
4.1.1 Full load ON................................................................................................31
4.1.2 Midium loads on..........................................................................................32
4.1.3 Minimium Load ON....................................................................................33
4.1.4 Full Load ON After Battery Back Restore..................................................34
4.1.5 Graphically Output of Load Current............................................................35
4.2 Discussion...........................................................................................................35
5. CONCLUSION AND FUTURE RECOMMENDATIONS.................................36
5.1 Conclusion..........................................................................................................36
5.2 Future Recommendation.....................................................................................36
6. APPENDIX-A:.........................................................................................................37
6.1 Project coding.....................................................................................................37
7. REFERENCES........................................................................................................52
vi
List of Tables
vii
List of Figures
viii
List of Abbreviations
LA Lead Acid
LI Lithium Ion
LP Lithium Polymer
P Power in Watt
lm lumen
lx lux
ix
List of Symbols
µ Micro
Ω Ohm
x
Chapter-1
1. INTRODUCTION
A solar monitoring system can help make you more aware of your PV system’s
performance. It offers information about energy consumption and generation, optimizing
energy usage, and damage to your solar system, among other topics. It’s important to
monitor your solar setup in some manner without monitoring, it can be difficult to figure
out if your solar panels are operating at their best or not. The Internet of things (IOT) is
an emerging technology that efficiently and effectively improving our daily life activities.
It reduces our cost of living by automating the manual processes. It integrates the
physical objects and devices via internet for synchronized communication. Here, solar
panels and solar plants are used for producing electricity in natural manner with the help
of sun light. These systems are manually operated by humans. So, there is a need of
efficient approach which automatically control and monitor the current, voltage and other
parameters of solar systems and provides real time statistics to users. Simply, the Internet
of things means the network of Physical objects. This provides us the connection of each
and every object in the world by means of wireless sensor network. Some of the devices,
buildings, vehicles and other objects embedded with the software, sensors, electronics
and network connectivity enables these objects to collect and exchange the data. This IoT
(Internet of Things) is achieved by wireless sensor networks, 2G/3G/4G networks, GSM,
GPRS, RFID, WI-FI, GPS, microcontroller, microprocessor, etc. Accepting the
information and processing that relevant data can provide an understanding which is
needed to build the “intelligence” into “things”. This is the highlighted feature which
differentiates IOT from standard internet. The system consists of a controller
incorporated with ESP32 Module, voltage sensor and current sensor. The ESP32 Module
is a controller integrated with Wi-Fi and Bluetooth support. The sensors check the
predefined conditions that are programmed and detects the output voltage and current.
The module alerts to the users or the maintenance in charge and uses the things speak
cloud to show the received data from sensor and GUI to display. By using the IoT we can
enable the machine to machine communication M2M or device to device communication
1
2
Available Charge Controller Are Load Dependent i.e 1kw,2kw and So On.
Not Existing Any Mechanism for Monitoring and Management of load on PV
Panel.that can turn off the load according to battery backup as backup
increased full load on and if battery backup decresed it turn off the high
cureent consumping load and vice versa.
Un availability of Notification and Updating regarding daily load.
Our objective is make the system in which we can control the Power management and
controlling of load on solar pv and sending the information to server for moinitoring
using Internet of Things.
In our thesis organization Ist chapter consists of introduction of our project and aim of
our project and objective of our project and problem statement which we face in make of
our project and thesis layout.
2nd chapter consists of literature review related to our project we study different literature
regading our project and in which we included 20 differenet literature which mostly alike
our project.
3rd chapter consists of design and methodology in which we explain hardware and
software portion of our project and design of our project means simulation and circuit
designing implementation tools.
The 4th chapter of our thesis consists of our project result and different disscution
regarding project.
The 5th chapter consists of our project in which we explain conclusions extracted from
our project and recommendation regarding our project that how we improved and get
more accuracy in future.
6th chapter consists of appendix in which explain data sheet of different components and
programming of our project and data regading our project.
Chapter-2
2. LITERATURE REVIEW
4
5
monitoring. This research has been carried out in solar power plants at Engineering
Physics Department, FTI-ITS. The design of an ATmega32 microcontroller-based system
that is integrated with Raspberry-pi as a data acquisition system. Data reading solar
power plants output parameters stored in memory can be downloaded at any time. The
analysis result shows that the efficiency of photovoltaic arrays is 10.78 %. The total
efficiency of the solar power plants system is 8.05 %[5]. Renewable energy sources are
proven to be reliable and accepted as the best alternative for fulfilling our increasing
energy needs. Solar photovoltaic energy is the emerging and enticing clean technologies
with zero carbon emission in today's world. To harness the solar power generation, it is
indeed necessary to pay serious attention to its maintenance as well as application. The
IoT based solar energy monitoring system is proposed to collect and analyzes the solar
energy parameters to predict the performance for ensuring stable power generation. The
main advantage of the system is to determine optimal performance for better maintenance
of solar PV (photovoltaic). The prime target of PV monitoring system is to offer a cost-
effective solution, which incessantly displays remote energy yields and its performance
either on the computer or through smart phones. The proposed system is tested with a
solar module of 125- watts to monitor string voltage, string current, temperature, and
irradiance. This PV monitoring system is developed by a smart Wi-Fi enabled CC3200
microcontroller with latest embedded ARM processor that communicates and uploads the
data in cloud platform with the Blynk application. Also the Wireless monitoring system
maximizes the operational reliability of a PV system with minimum system cost[6]. The
power generated from solar panel is to be efficiently monitored and managed to reduce
the generation losses in solar power generation. Generally, we use solar plants to build in
the locations where people can’t reach on daily basis so this approach will help them to
virtually control their systems from faraway places. It monitors the panel load by using
the IoT technologies and the data which are received from the panels are send to the
cloud through the internet for the future use. It also helps the remote users to monitor the
solar power plant. The user can get the information about the current and previous
average parameter like voltage, temperature and current. This will facilitate the fault
detection and preventive maintenance of solar. In this paper we use the application
Internet of thing (IOT) to control and monitor the solar power (renewable energy). This
system is designed to solve the problem occur in solar power generation like management
problem, maintenance and to reduce the time of repair. Using this technology, the cost of
solar energy (renewable energy) generation reduces. This also provide real time
information to the user help to monitor the system. The main purpose of this paper is that
the solar panel can collect or capture maximum solar radiation and maintain the system
more reliably and efficiently[7]. In this paper, we propose a power management
7
framework for solar-powered Internet of Things (IoT) devices to maximize the lifetime of
the system by adaptively changing performance of the system. Our framework balances
the energy consumption and the performance of the IoT system by monitoring energy
accumulation and battery, and ensures the minimum level of service. The framework has
been implemented in real hardware and software. Experiments with the implemented
system shows that our framework can help increase the lifetime of the solar powered IoT
system. The framework prevented the IoT device from power down due to the full
discharge of the battery at night time, by changing the execution rate based on energy
accumulation and battery status. The proposed framework has been implemented using
open hardware compatible with Arduino, so it can be used for a wide range of IoT
applications and services[8]. Occurrence of high impedance faults (HIFs) in rural
overhead power distribution networks may cause safety and economic issues for both
public and the utility. Such faults may not be detected by the conventional protection
schemes, so the development of a more sophisticated method is necessary. The
forthcoming evolution of power networks to smart grids creates opportunities for new
technologies to be implemented to that purpose. Utilities may transmit data that are
necessary for the system operation using specific frequency ranges. A novel method
utilizing these is proposed in this work. The monitoring of the network’s input impedance
in these frequency ranges can be used for detection of HIF occurrence, because such
faults impose significant changes in its value. The proposed method is applied to single
branch topologies, as well as to an existing topology of a Greek rural distribution system.
Significant conclusions are derived in both cases. Moreover, the influence of several
parameters, such as fault impedance and location and earth’s electromagnetic properties
on the method’s efficacy is examined. Also, it is shown that the implementation of the
proposed method may be drastically simplified by focusing on the monitoring of specific
frequencies rather than the entire frequency range under study[9]. The aim of this paper is
to monitor and distribute the power in the solar based power systems remotely. The
system contains multiple grids of solar panels where each grid is connected to various
sensors to measure the parameters in order to monitor the system. The output of the
sensor is fed to the mini microcontroller of this project (Arduino UNO). The output from
all the mini microcontrollers is given to the main microcontroller which is 8051
microcontroller in this case, which is in turn connected to a Bluetooth module (HC-05).
The main microcontroller (8051) processes all the received data from the mini
microcontrollers (Arduino UNO) and displays it on the LCD connected to it and also
sends this data via a Bluetooth module (HC-05) to user. The user remotely monitors the
data via a smartphone using Bluetooth Terminal application. Monitoring of power system
is implemented and tested in this manner. This paper also aims towards the distribution of
8
the power that was monitored before. The user sends a signal to another microcontroller
(Arduino Uno) wirelessly which then controls the relay on the basis of the signal sent by
the user. Now, the control signal from Arduino Uno is used for switching ON/OFF of
relay and power from the power system is distributed accordingly. This is how power is
monitored and distributed in power stations (solar power system).This paper aims to
make the existing systems more efficient and cost effective[10]. The Internet of Things
has a vision in which the internet extends into the real world, which incorporates
everyday objects. The IoT allows objects to be sensed or controlled remotely over
existing network infrastructure, creating opportunities for pure integration of the physical
world into computer-based systems, and resulting in improved efficiency, accuracy and
economic benefit in addition to reduced human intervention. This technology has many
applications like Solar cities, Smart villages, Micro grids and Solar Street lights and so
on. As Renewable energy grew at a rate faster than any other time in history during this
period. The proposed system refers to the online display of the power usage of solar
energy as a renewable energy. This monitoring is done through raspberry pi using flask
framework. Smart Monitoring displays daily usage of renewable energy. This helps the
user to analysis of energy usage. Analysis impacts on the renewable energy usage and
electricity issues[11]. Solar photovoltaic (PV) system has become the greatest attraction
in the clean, renewable electricity generation. However, the performance is varying due
to various parameters and environmental conditions. Hence, a remote and real-time
monitoring system is needed to assess its performance. Implementation of the Internet of
Things (IoT) in the monitoring of the solar PV system was proposed and its performance
was studied. The system consists of data acquisition, data gateway, and smartphone
application display. The data acquisition was successfully collect the data with 98.49%
accuracy and was uploaded to the data gateway. The data gateway was able to send the
graphical representation of the data to the smartphone application with a mean
transmission time of 52.34 seconds. The results demonstrate that the proposed monitoring
system can be a promising solution for intelligent remote and real-time monitoring of a
solar PV system[12]. Monitoring photovoltaic systems can provide useful information
about their operation and what should be done to improve performance, but if the data are
not reported properly, the effort is wasted. To be helpful, a monitoring report must
provide information on the relevant aspects of the operation in terms that are easily
understood by a third party. Appropriate performance parameters need to be selected, and
their values consistently updated with each new issue of the report. In some cases it may
be beneficial to monitor the performance of individual components in order to refine and
improve system performance, or be alerted to loss of performance in time for
preventative action. For example, monitoring battery charge/discharge profiles will signal
9
when replacement is due before downtime from system failure is experienced[13]. Solar
power is emerged as a likely supply of renewable power over the last to 3 decades. This
sun power is transformed into electric power with the aid of using the use of sun panel in
line with the precept of photovoltaic effect. Out of diverse renewable power reassets sun
power is extensively used. Because it is easy and it is straightforward to apply in family
too. Solar Trackers is a tool used for the rotation of sun panel in line with the solar’s rays.
To make use of this renewable sun power sun trackers are employed. For static sun panel,
there may be no motion withinside the panel. But the placement of the solar adjustments
in the course of growing and setting (solar rises withinside the east and units withinside
the west). Due to this reason, unmarried axis sun tracker is advanced for rotation of sun
panel in east and west direction. But because of the rotation and revolution of earth we
can not get same quantity of sunrays all through the year[14]. This paper presents a low-
cost prototype for monitoring online the maximum power produced by a domestic
photovoltaic (PV) system using Internet of Things (IoT) technology. The most common
tracking algorithms (P&O, InCond, HC, VSS InCond, and FL) were first simulated using
MATLAB/Simulink and then implemented in a low-cost microcontroller (Arduino). The
current, voltage, load current, load voltage, power at the maximum power point, duty
cycle, module temperature, and in-plane solar irradiance are monitored. Using IoT
technology, users can check in real time the change in power produced by their
installation anywhere and anytime without additional effort or cost. The designed
prototype is suitable for domestic PV applications, particularly at remote sites. It can also
help users check online whether any abnormality has happened in their system based
simply on the variation in the produced maximum power. Experimental results show that
the system performs well. Moreover, the prototype is easy to implement, low in cost,
saves time, and minimizes human effort. The developed monitoring system could be
extended by integrating fault detection and diagnosis algorithms[15]. With an enormous
range of applications, Internet of Things (IoT) has magnetized industries and
academicians from everywhere. IoT facilitates operations through ubiquitous
connectivity by providing Internet access to all the devices with computing capabilities.
With the evolution of wireless infrastructure, the focus from simple IoT has been shifted
to smart, connected and mobile IoT (M-IoT) devices and platforms, which can enable
low-complexity, low-cost and efficient computing through sensors, machines, and even
crowdsourcing. All these devices can be grouped under a common term of M-IoT. Even
though the positive impact on applications has been tremendous, security, privacy and
trust are still the major concerns for such networks and an insufficient enforcement of
these requirements introduces non-negligible threats to M-IoT devices and platforms.
Thus, it is important to understand the range of solutions which are available for
10
Chapter-3
3.1 Methodology
We used different components in our project implementation in real form which are as
following.
1. Controller 2560
2. Current Sensor
3. Voltage Sensor
4. Power Supply
5. Battery
6. Lcd Display
7. Serial Converter
8. Solar panel
9. Wifi module
10. Relay module
11. Socket
13. Loads
13
3.1.1 Controller
Arduino MEGA is one among the most recent microcontroller management boards
created by Arduino and a MEGA micro-monitoring. The Arduino board could be a
reference model of the Arduino platform. During this project, we have a tendency to used
Arizona boards to attach alphanumeric display sensors additionally as GSM initial we
have a tendency to connect the motion device of pin half-dozen and also the gas device of
pin seven and eventually we have a tendency to connect Arduino MEGA is AN
ATmega328-based mini-control board (data sheet). merely connect it to a laptop with a
USB cable or charge it with AN AC adapter or battery to induce started.
The MEGA is completely different from all the previous boards therein it doesn't use the
USB serial driver. Instead, it offers USB-connected Atmega8U2 to the serial convertor.
“MEGA” means that one in Italian and has been updated to mark the future unharness of
Arduino one.0.
MEGA and can be a reference of the Arduino going forwardly is that the latest within the
USB dashboard and reference model for the Arduino platform; for assessment to the
previous version, the Arduino Mega is AN ATmega328-based mini-control board (data
sheet). USB affiliation, a USB port, and a push button. It contains everything you wish to
take care of a microwave monitor. Basically attach it to a laptop with a USB cable or duty
it with AN AC-to-DC device to induce started. The MEGA is completely different in the
end the previous boards therein it. Instead, it's the Atmega16U2 (Atmega8U2 to R2)
code, that is about up as a USB for publishing.
The second revision of the MEGA board incorporates an electrical device that pulls AN
8U2 HWB cable to the bottom that facilitates change to DFU mode.
14
It is used to measure the current used by the entire circuitry. It is easy to use due to
compact size and can measure maximum 5A current. The Allegro ACS712 provides
economical and precise solutions for AC or DC current sensing in industrial, commercial,
and communications systems. The device package allows for easy implementation by the
customer. Typical applications include motor control, load detection and management,
switched-mode power supplies, and overcurrent fault protection. The device consists of a
precise, low-offset, linear Hall sensor circuit with a copper conduction path located near
the surface of the die. Applied current flowing through this copper conduction path
generates a magnetic field which is sensed by the integrated Hall IC and converted into a
proportional voltage. Device accuracy is optimized through the close proximity of the
magnetic signal to the Hall transducer. A precise, proportional voltage is provided by the
low-offset, chopper-stabilized BiCMOS Hall IC, which is programmed for accuracy after
packaging. The output of the device has a positive slope (>VIOUT(Q)) when an
increasing current flows through the primary copper conduction path (from pins 1 and 2,
to pins 3 and 4), which is the path used for current sensing. The internal resistance of this
conductive path is 1.2 mΩ typical, providing low power loss. The thickness of the copper
conductor allows survival of the device at up to 5× overcurrent conditions. The terminals
of the conductive path are electrically isolated from the sensor leads (pins 5 through 8).
This allows the ACS712 current sensor to be used in applications requiring electrical
isolation without the use of opto-isolators or other costly isolation techniques.
15
It is used to measure battery voltage. Voltage sensor is a precise low-cost sensor for
measuring voltage. It is based on the principle of resistive voltage divider design. It can
make the red terminal connector input voltage to 5 times smaller.
Voltage Detection Sensor Module is a simple and very useful module that uses a potential
divider to reduce any input voltage by a factor of 5. This allows us to use the Analog
input pin of a microcontroller to monitor voltages higher than it capable of sensing. For
example, with a 0V - 5V Analog input range, you are able to measure a voltage up to
25V. This module also includes convenient screw terminals for easy and secure
16
We used 12v 2A adaptor for wapda sourc for manngement of power sources in which we
used different sources. A DC power supply 12v is an electronic circuit that converts an ac
voltage to dc voltage. Power Adapter is basically consisting of the following elements:
transformer, rectifier, filter and regulator circuits.
17
Power supplies are categorized in various ways, including by functional features. For
example, a regulated power supply is one that maintains constant output voltage or
current despite variations in load current or input voltage. Conversely, the output of
an unregulated power supply can change significantly when its input voltage or load
current changes.
3.1.5 Battery
We used 12v 7A battery for providing power to leds and current sensor and controller.
The lead-acid battery is a type of rechargeable battery first invented in 1859 by French
physicist Gaston Planté. It is the first type of rechargeable battery ever created. Compared
to modern rechargeable batteries, lead-acid batteries have relatively low energy density.
Despite this, its ability to supply high surge currents means that the cells have a relatively
large power-to-weight ratio. These features, along with their low cost, make them
attractive for use in motor vehicles to provide the high current required by starter motors.
18
As they are inexpensive compared to newer technologies, lead-acid batteries are widely
used even when surge current is not important and other designs could provide
higher energy densities. In 1999 lead-acid battery sales accounted for 40–50% of the
value from batteries sold worldwide (excluding China and Russia), equivalent to a
manufacturing market value of about in billion.Large-format lead-acid designs are widely
used for storage in backup power supplies in cell phone towers, high-availability settings
like hospitals, and stand-alone power systems. For these roles, modified versions of the
standard cell may be used to improve storage times and reduce maintenance
requirements. Gel-cells and absorbed glass-mat batteries are common in these roles,
collectively known as VRLA (valve-regulated lead-acid) batteries.
The LCD is an automated module and most bargain many solicitations. This is a
rudimentary unit and is mainly rummage-sale in innumerable strategies and tours. These
units are chosen finished multi-part LEDs. We use LCDs because they are easy to
program means it can spectacle every 16 letterings. Then two of these. In each
atmosphere is shown in a 5x7 pixel milieu. This LCD has two registrants: a description of
the data and a command.
19
3 Contrast Vee
7 Data Pin 1
8 Data Pin 2
9 Data Pin 3
10 Data Pin 4
11 Data Pin 5
12 Data Pin 6
13 Data Pin 7
14 Data Pin 8
15 Led Positive
16 Led Negative
A standard LCD adapter is used to attach a 2x16 or 4x20 LCD to your development
board or prototype. The board has a detector used to adjust the brightness of the LCD. A
16-bit MCP23S17 I / O amplifier is provided on board, thus reducing the number of
MCU pins needed to run this display. The amplifier has a SPI clock speed (tm) of up to
10 MHz for high bandwidth applications. The board is equipped with a long cable with
IDC10 female connector, which is compatible with all microwave development boards.
It is used for providing power to circuit for working on solar energyand also battery can
be charging from solar power. A solar panel, or photo-voltaic (PV) module, is an
assembly of photo-voltaic cells mounted in a framework for installation. Solar panels
use sunlight as a source of energy to generate direct current electricity. A collection of
PV modules is called a PV panel, and a system of PV panels is called an array. Arrays of
a photovoltaic system supply solar electricity to electrical equipment.
Photovoltaic modules use light energy (photons) from the Sun to generate electricity
through the photovoltaic effect. Most modules use wafer-based crystalline silicon cells
or thin-film cells. The structural (load carrying) member of a module can be either the top
layer or the back layer. Cells must be protected from mechanical damage and moisture.
Most modules are rigid, but semi-flexible ones based on thin-film cells are also available.
The cells are usually connected electrically in series, one to another to the desired
voltage, and then in parallel to increase current. The power (in watts) of the module is the
mathematical product of the voltage (in volts) and the current (in amperes) of the module.
The manufacture specifications on solar panels are obtained under standard condition
which is not the real operating condition the solar panels are exposed to on the
installation site.
21
A PV junction box is attached to the back of the solar panel and functions as its output
interface. External connections for most photovoltaic modules use MC4 connectors to
facilitate easy weatherproof connections to the rest of the some system. A USB power
interface can also be used.
It is used for sending data to server through internet.it is easy to used due to compact size
and design. ESP8266 in smaller sizes of the module encapsulates Ten silica L106
integrates industry-leading ultra-low-power 32-bit MCU micro, with the 16-bit short
mode, Clock speed support 80 MHz, 160 MHz, supports the RTOS, integrated Wi-Fi
MAC/BB/RF/PA/LNA, on-board antenna. The module supports standard IEEE802.11
b/g/n agreement, complete TCP/IP protocol stack. Users can use the add modules to an
existing device networking, or building a separate network controller. ESP8266 is high
integration wireless SOCs, designed for space and power constrained mobile platform
designers. It provides unsurpassed ability to embed Wi-Fi capabilities within other
systems, or to function as a standalone application, with the lowest cost, and minimal
space requirement.
22
For switching of dc fan and water system we used relay module which received
signal from controller to on /off the dc fan and water system in our project and this
relay module operate on 5v dc and switch the load up to 22ov and 10A.which shown
in figure 3.1.1.6 a. Relays consist of three pins normally open pin, normally closed
pin, common pin and coil. When coil power on magnetic field is generated, the
contacts connected to each other. As shown in relay working idea it depends on
magnetic field generated from the coil so there is power isolation between the coil
and the switching pins so coils can be easily powered from Arduino by connecting
VCC and GND bins from Arduino kit to the relay module kit after that we choose
Arduino output pins depending on the number of relays needed in project designed
and set these pins to output and make it out high (5 V) to control the coil that allow
controlling of switching process.
23
3.1.11 Socket
It is used to detect day and night condition send signal to controller where controller turn
on or off the lights in hardware. AC power plugs and sockets connect electric equipment
to the alternating current (AC) power supply in buildings and at other sites. Electrical
plugs and sockets differ from one another in voltage and current rating, shape, size, and
connector type. Different standard systems of plugs and sockets are used around the
world.
Plugs and sockets for portable appliances became available in the 1880s, to replace
connections to light sockets with wall-mounted outlets. A proliferation of types
developed for both convenience and protection from electrical injury. Today there are
about 20 types in common use around the world, and many obsolete socket types are
found in older buildings. Coordination of technical standards has allowed some types of
plug to be used across large regions to facilitate trade in electrical appliances, and for the
convenience of travellers and consumers of imported electrical goods.
We used led light lamp as street light which operate on 12v 3a dc. This LM2596 chip of
the Power Module is made in China Mainland. A module to adjust the power supply. The
LM2596 series of regulators are monolithic integrated circuits that provide all the active
functions for a step-down (buck) switching regulator, capable of driving a 3-A load with
excellent line and load regulation. These devices are available in fixed output voltages of
3.3 V, 5 V, 12 V, and an adjustable output version. Requiring a minimum number of
external components, these regulators are simple to use and include internal frequency
compensation, and a fixed- frequency oscillator. The LM2596 series operates at a
switching frequency of 150 kHz, thus allowing smaller sized filter components than what
would be required with lower frequency switching regulators. Available in a standard 5-
pin TO-220 package with several different lead bend options, and a 5-pin TO-263 surface
mount package. The new product, LMR33630, offers reduced BOM cost, higher
efficiency, and an 85% reduction in solution size among many other features. Start
WEBENCH Design with the LMR33630. A standard series of inductors are available
from several different manufacturers optimized for use with the LM2596 series. This
feature greatly simplifies the design of switch-mode power supplies. Other features
include a ±4% tolerance on output voltage under specified input voltage and output load
conditions, and ±15% on the oscillator frequency. External shutdown is included,
featuring typically 80 μ A standby current. Self-protection features include a two-stage
frequency reducing current limit for the output switch and an over temperature shutdown
for complete protection under fault conditions.
25
3.1.13 Loads
It isused to detect object .it operate on 5v dc and having long range sensitivity to detect
object and its cover 360* circumference. An LED lamp or LED light bulb is an electric
light that produces light using light-emitting diodes (LEDs). LED lamps are significantly
more energy-efficient than equivalent incandescent lamps and can be significantly
more efficient than most fluorescent lamps,The most efficient commercially available
LED lamps have efficiencies of 200 lumens per watt (Lm/W).Commercial LED lamps
have a lifespan many times longer than incandescent lamps.
LED lamps require an electronic LED driver circuit to operate from mains power lines,
and losses from this circuit means that the efficiency of the lamp is lower than the
efficiency of the LED chips it uses. The driver circuit may require special features to be
compatible with lamp dimmers intended for use on incandescent lamps. Generally, the
current waveform contains some amount of distortion, depending on the luminaires’
technology. LEDs come to full brightness immediately with no warm-up delay. Frequent
switching on and off does not reduce life expectancy as with fluorescent lighting.Light
output decreases gradually over the lifetime of the LED (see Efficiency droop section).
Some LED lamps are drop-in replacements for incandescent or fluorescent lamps. LED
lamps may use multiple LED packages for improved light dispersal, heat dissipation, and
overall cost. The text on retail LED lamp packaging may show the light output in lumens,
the power consumption in watts, the color temperature in Kelvin or a color description
26
such as "warm white", "cool white" or "daylight", the operating temperature range, and
sometimes the equivalent wattage of an incandescent lamp delivering the same output in
lumens.
3.2 Design
Software we used in our project development are following regarding model designing
codeing and simulation.
1. Arduino IDE
2. Protecus
3. IoT Website Interface
For programming of our project we used arduino IDE which is eas y to used and having
buildin complier through which we modified the programming if any errors occurred in
our programming.
27
We used Thingspeak.com for IoT first we make an account in it and than we implement
the logic for data updation and shown it on site in graph or indication for fautls and
manually override with respect to time and date. which can be seen from figure given
below.
30
Figure 3.2.3.18: Lighted indication show loads status show on IoT server in chapter 3
32
4.1 Result
Result obtained from our prototype explain are following.
when battery is fully charge from solar source its turn on the full load and in our
prototype we used 4 dc loads. And when full loads are ON controller sense the current
value with helped of current sensor and show that value on display and also send the
measured value to IoT server using wifi module. which can be seen in figure below.
33
34
When battery backup is decresed and rached the value 12.90v controller turn off the
maximium current consuming load and when load is off controller sense the current
value with helped of current sensor and show that value on display and also send the
measured value to IoT server using wifi module. which can be seen in figure below.
When battery backup is descresed to value 12.10v on that time controller tuns off the
maximium current coinsumimg loads and when load is off controller sense the current
value with helped of current sensor and show that value on display and also send the
measured value to IoT server using wifi module. which can be seen in figure below.
Once battery is full discharge all loads are off. As battery recharged from solar panel
and battery backup achived midium and maximium charged value accordingly
controller turn ON the loads with help off current sensor and show value on display
and also send that information to server with the helped of wifi module and the
processec continue as vice versa. which can be seen in figure below.
37
Figure 4.1.4.27:Full Load ON After Battery Back Restore on IoT display in chapter 4
38
4.2 Discussion
After getting result and after discussion on these result we come to know that our
project as achieved the objective as we disscuss it in earlier chapter. In our project we
achieved our objective but we implemented controlling of loads on dc voltage as
voltage decresed the load automatically shut down and as battery backup restord the
load will be full onand vice versa.
Chapter-5
5.1 Conclusion
Implementing Renewable Energy technologies is one of the most recommended way
of reducing the environmental impact. Because of the frequent power cut, it is
important to use the renewable energy and monitoring it. Monitoring guides the user
in analysis of the renewable energy usage. This system is cost effective and its
efficiency is about 95%.This enables the efficient use of renewable energy and also it
reduces the electricity issues. The main benefit of using IOT in solar energy is that we
can see exactly what’s happening with all your assets from one central control panel.
By connecting your devices to a network, you can identify where the problem is
originated and you can dispatch a technician to fix it before it disrupts your entire
system.
1. AI based controlled.
2. By using inverter our protype can be used with AC loads.
39
6. APPENDIX-A:
#include <SoftwareSerial.h>
#include <Wire.h>
#include "ThingSpeak.h"
#include "WiFiEsp.h"
#include "secrets.h"
LiquidCrystal_PCF8574 lcd(0x27); // set the LCD address to 0x27 for a 16 chars and 2
line display
int keyIndex = 0; // your network key Index number (needed only for WEP)
WiFiEspClient client;
#ifndef HAVE_HWSERIAL1
#include "SoftwareSerial.h"
#else
40
41
#endif
float BValue = 0.0, Sample = 0.0, AvgB = 0.0, BValueF = 0.0;uint8_t duty_cycle_1 =
127;
// Set the LCD address to 0x27 for a 16 chars and 2-line display
// sendATcmd
42
int AT_cmd_time = 0;
Serial.println(AT_cmd);
ESP.println(AT_cmd);
if(ESP.find(readReplay))
AT_cmd_result = true;
break;
AT_cmd_time++;
Serial.print("Result: ");
if (AT_cmd_result == true)
Serial.println("DONE");
else
Serial.println("FAILED");
}
43
return AT_cmd_result;
void config_esp01(void)
delay (500);
sendATcmd("AT",5,"OK");
sendATcmd("AT+CWMODE=1",5,"OK");
void post_data_to_server(void)
{
44
if (! send_once)
send_once = true;
url += apiKeyIn;
Serial.println(url);
ESP.println(url);
delay (2000);
void Title(void)
delay (2000);
delay (2000);
46
float map_f (float x, float in_min, float in_max, float out_min, float out_max)
void Power_Source(void)
append_zero(solar_v);
lcd.print(solar_v,1);
source = BATTERY;
47
else
else
append_zero(_v);
lcd.print(wind_v,1);
source =;
else
append_zero(_v);
lcd.print(solar_v,1);
source =;
// Get 50 samples
// 2.5 is offset (I assumed that arduino is working on 5v so the viout at no current comes
// out to be 2.5 which is out offset. If your arduino is working on different voltage than
AcsValueF = abs(AcsValueF);
return AcsValueF;
void Get_Currents(void)
Current1 = read_I(I1);
Current2 = read_I(I2);
Current3 = read_I(I3);
lcd.print(Current1,1);
lcd.print(Current2,1);
lcd.print(Current3,1);
void generate_pwm(void)
duty_cycle_1 = 127;
50
duty_cycle_2 = 127;
duty_cycle_3 = 127;
duty_cycle_1 = 255;
if (! digitalRead ())
duty_cycle_2 = 255;
if (! digitalRead ())
duty_cycle_3 = 255;
// low = day
// high = night
duty_cycle_1 = 0;
duty_cycle_2 = 0;
duty_cycle_3 = 0;
generate_pwm ();
void Show_Fault(void)
lcd.print(F("F1"));
fault1 = 1;
else
fault1 = 0;
}
52
lcd.print(F("F2"));
fault2 = 2;
else
fault2 = 0;
lcd.print (F (“ a“));
lcd.print(F("F3"));
fault3 = 3;
else
fault3 = 0;
lcd.print (F (“c"));
void setup ()
{
53
Serial.begin(9600);
ESP.begin(115200)
lcd.setCursor(0, 1);
delay(dvalue);
lcd.clear();
lcd.setCursor(0, 1);
lcd.setCursor(0, 2);
lcd.setCursor(0, 3);
lcd.print(" ");
delay(dvalue);
lcd.clear();
lcd.setCursor(0, 1);
lcd.setCursor(0, 3);
delay(dvalue);
lcd.clear();
lcd.print(ssid);
delay(2000);
generate_pwm ();
Title ();
config_esp01();
void loop ()
Power_Source ();
Get_Currents ();
OverRide_PIR ();
Show_Fault ();
post_data_to_server ();
55
7. REFERENCES
[1] M. Ali and M. K. Paracha, “an Iot Based Approach for Monitoring Solar Power
Consumption With Adafruit Cloud,” Int. J. Eng. Appl. Sci. Technol., vol. 04, no.
09, pp. 335–341, 2020, doi: 10.33564/ijeast.2020.v04i09.042.
[2] S. Ansari, A. Ayob, M. S. Hossain Lipu, M. H. Md Saad, and A. Hussain, “A
review of monitoring technologies for solar pv systems using data processing
modules and transmission protocols: Progress, challenges and prospects,” Sustain.,
vol. 13, no. 15, 2021, doi: 10.3390/su13158120.
[3] A. Y. Appiah, X. Zhang, B. B. K. Ayawli, and F. Kyeremeh, “Review and
performance evaluation of photovoltaic array fault detection and diagnosis
techniques,” Int. J. Photoenergy, vol. 2019, 2019, doi: 10.1155/2019/6953530.
[4] J. O. F. Geology, “a S Tudy of,” vol. 9, no. 3, pp. 2777–2780, 1901.
[5] R. Hantoro et al., “Design and Implementation of Real-Time Monitoring System
for Solar Power Plant in Surabaya, Indonesia,” E3S Web Conf., vol. 190, 2020,
doi: 10.1051/e3sconf/202019000034.
[6] V. Kavitha and V. Malathi, “A Smart Solar PV Monitoring System Using IoT,”
pp. 19–33, 2019, doi: 10.5121/csit.2019.91502.
[7] R. L.R. Lokesh Babu, D. Rambabu, A. Rajesh Naidu, R. D. Prasad, and P. Gopi
Krishna, “Solar Power Monitoring System using IOT,” J. Eng. Technol., vol. 7,
no. 3.12, p. 526, 2018.
[8] Y. Lee and M. Park, “Energy management for solar-powered IoT devices with
performance adjustment,” Int. J. Smart Grid Clean Energy, vol. 8, no. 1, pp. 22–
30, 2019, doi: 10.12720/sgce.8.1.22-30.
[9] A. N. Milioudis, G. T. Andreou, and D. P. Labridis, “Enhanced protection scheme
for smart grids using power line communications techniques - Part I: Detection of
high impedance fault occurrence,” IEEE Trans. Smart Grid, vol. 3, no. 4, pp.
1621–1630, 2012, doi: 10.1109/TSG.2012.2208987.
[10] S. Mohapatra, M. Aggarwal, and S. K. Jindal, “Remote Power Monitoring and
Distribution System of a Solar Based Power Plant,” SSRN Electron. J., no. June
2019, 2018, doi: 10.2139/ssrn.3170182.
[11] S. Patil, M. Vijayalashmi, and R. Tapaskar, “SOLAR ENERGY MONITORING
SYSTEM USING IoT,” Indian J.Sci.Res, vol. 15, no. 2, pp. 149–155, 2017,
[Online]. Available: https://www.ijsr.in/upload/1455558654Chapter_26.pdf
%0Ahttps://www.mendeley.com/catalogue/solar-energy-monitoring-system-using-
iot/.
56