1 Introduction

The rapid expansion of industries in modern civilization and excessive use of non-conventional energy sources lead to the energy crisis that suspiciously affects rural communities and also impacts the environment [1, 2]. So, the developing countries are deciding to generate the power through renewable energy sources, in addition to creating the new distribution system for eco-friendly, minimize the operating cost, reduce the power loss, supply continuous power in rural areas and reduce the tariff to consumers [3,4,5]. The above-mentioned constraints are suitable for microgrid (MG) systems. It consists of renewable energy sources like PV and wind with energy storage systems connected on conventional grid [6,7,8,9,10,11] as illustrated in Fig. 1.

Fig. 1
figure 1

Diagram of general microgrid system

The majority of benefits are available in microgrid even though some of the technical issues present. The maximum energy utilization in hybrid RES is very difficult because the energy sources are intermittent in nature and the second issue is power balance between sources and sudden raising consumers load [9], due to improper scheduling of the load for non-availability of hybrid energy resource. Furthermore, ineffective control mechanism for battery management system causes cycle aging, temperature sensitivity and an imbalance in the state of charge (SOC), resulting in an unstable DC bus voltage [12,13,14,15]. To tackle the mentioned concerns, a proposed intelligent energy management system aims to enhance the performance of small-scale microgrid systems. The energy management primary work is to optimize the use of energy from hybrid resources and minimize energy wastage. [16], second with the absence of hybrid source the battery energy storage system effectively works to maintain power balance to make system reliable, third an islanded mode hybrid power generation-based proper load scheduling action is taken to regulate the voltage and frequency in standard level, and finally, the entire work is smartly monitoring and coordinally controlling the microgrid system to make it reliable, stable and economic [17,18,19,20,21,22]. In a small-scale microgrid system, a hybrid power source is required to ensure sustainability. Such sources necessitate an efficient controller for optimal utilization of power. In off-grid mode, it is essential to maintain a balance in energy supply by utilizing battery backup with the assistance of advanced controllers for charging and discharging during rapid variations in load and input power. Furthermore, real-time monitoring and a smart management system are crucial for ensuring the reliability and stability of the system. From the above discussion work, the control measures are found based on the literature review step by step.

In the domain of hybrid energy systems, the primary emphasis of researchers is on enhancing energy efficiency and reducing greenhouse gas emissions, specifically in on-grid, off-grid and grid integration scenarios [23,24,25,26,27]. Some scholars delve into the analysis of modeling and sizing hybrid systems [28,29,30]. One group of authors implemented a hybrid system to provide battery backup for ensuring power reliability to end-users [31, 32]. Furthermore, authors [33] offer a detailed review of the design, modeling and optimization techniques related to hybrid systems. Recent articles indicate that hybrid systems are well-matched for microgrid applications due to their improved power supply reliability, efficient utilization of diverse resources, energy self-sufficiency, and reduced environmental impact. However, certain limitations are also noted, including dependency on weather conditions, technical challenges such as grid integration and maintaining voltage and frequency regulation in off-grid conditions, as well as the increased complexity in design, control topologies, and maintenance when more renewable energy sources are installed. Based on the aforementioned observation, I deduce that effective control techniques are imperative in microgrid hybrid solar–wind systems with battery integration. Furthermore, a detailed examination of the solar energy conversion system, wind conversion system, and battery storage system control algorithms will be conducted sequentially.

Practically, solar and wind energy conversion efficiency is low such as 17–21% and 20–40%, respectively. The observation must be made that the level of effectiveness in converting energy is of moderate quality, so to enhance the efficiency of converting renewable energy, it is crucial to employ a proficient control algorithm. The solar energy conversion system employs traditional maximum power point tracking (MPPT) algorithms such as hill climbing (HC) [34], incremental conductance (IC) [36, 37], modified incremental conductance method (MICM)[38, 39], perturb and observe (P&O) [40] and finally improved perturb and observe method (IPSO) [41, 42] within its controller and it facilitates the effective tracing of the maximum power point, leading to an overall improvement in system performance. These controlled algorithms are simple, robustness and effectively track MPP in constant ecological condition, but rapid variation of these controller tracking abilities is very less and produced the oscillated reference signal. To overcome this issue, the soft computing-based MPPT methods are developed in past few years like particle swarm optimization (PSO) [43,44,45], genetic algorithms (GA) [46], grey wolf optimization [47], artificial bee colony (ABC) [48], cuckoo search (CS) [49], ant colony optimization (ACO) [50], cat swarm optimization (CSO) [51], Jaya algorithm (JA) [52], firefly algorithm (FA) [53], bacterial foraging optimization (BFO) [54], flower pollination algorithm (FPA) [55] and gravitational search algorithm (GSA) [56]. These methods have high MPP tracking efficiency, less steady-state oscillation and high conversion ratio, and each algorithm has unique characteristics and used only particular application. But these soft computing techniques have some certain drawbacks, the GA, PSO, ABC and other metaheuristic optimization algorithms are suffered from computationally expensive, required initial parameter tuning, convergence speed and lack of robustness. Let’s now explore intelligent algorithms that are based on human characteristics, like fuzzy logic, and artificial neural networks (ANN). Then the fuzzy logic algorithms struggled to adapt to dynamic and rapid variation in environmental condition and large-scale system to design a fuzzy rules and membership function is very difficult [57,58,59,60,61]. Finally, artificial neural network (ANN) control method is an ability to capture the nonlinear correlation among input and output variables of PV system. So it tracks the accurate MPP and adapts for various ecological conditions in PV system without the need for manual recalibration [62,63,64,65,66]. However, such algorithms have some drawbacks, such as: i) they require ample and meaningful training data to accurately understand the association between input variables (temperature and irradiation) as well as the productivity variable (PV maximum power point voltage (Vmpp)), ii) ANN parameter tuning (number of hidden layer, weight), and iii) overfitting, which means inaccurate training data or missing data to produce the poor performance in dynamic condition.

Based on my examination of control algorithms for converting solar energy, they can be categorized into three main groups: 1. traditional approaches (like P&O, ICM and HC), 2. soft computing methods (such as PSO, GA, GWO, ACO, ABC, FA and others) and 3. intelligent algorithms inspired by human behavior (like fuzzy and ANN). While these algorithms are appropriate for specific purposes, the rapid fluctuations in environmental data and system requirements may result in limitations, as discussed in the aforementioned literature. The concise literature review can be condensed into Table 1 according to its effectiveness.

Table 1 SECS MPPT Comparison

In the realm of wind energy conversion systems (WECSs), there exists a captivating pursuit to enhance the power capabilities of the wind turbine. This quest involves the intricate task of tracing and operating at the pinnacle of the turbines power curve, otherwise known as the maximum power point (MPP). In this review section, a detailed overview of the established method of wind energy conversion system (WECS) is introduced. The pitch angle control method [67], tip speed ratio control method [68, 69] and optimal torque control [70] are utilized to enhance the mechanical output power from the wind turbine, known as the indirect control method. On the other hand, methods such as P&O [71] and ICM [72] are employed to directly maximize the obtained output power in the wind turbine, referred to as direct power control. Additionally, as previously mentioned, soft computing techniques such as genetic algorithm (GA) [73], particle swarm optimization (PSO) [74], cuckoo search (CC) [75] and grey wolf optimization (GWO) [76] are employed to optimize the generator power. Furthermore, human intelligent-based algorithms such as fuzzy logic [77] and artificial neural network (ANN) [78] exhibit more advanced capabilities compared to the aforementioned methods for maximizing power utilization from WECS. Various MPPT methods have been reviewed and scrutinized for their advantages and disadvantages, and improvements are recommended in Table 2.

Table 2 Comparison for WECS control method

In rapid variation load (or) renewable energy resources absence, the energy storage system is needed for microgrid system especially for islanded mode. But it is a challenging task to transfer power in a storage device to load and RES to storage device; the bidirectional power flow operation is done in an effective controller. In recent years, many controllers are created for the battery energy storage system (BESS) such as PI [79], PID [80], single phase shift [81], extended phase shift [82], dual phase shift [83], fuzzy logic [84, 85], sliding mode controller [86] and model predictive controller [87]. While these controllers are effective in situations where input parameters experience minor fluctuations, they are not suitable for rapid variations. The existing controller details are mentioned in Table 3. In addition, certain important actions are required in BESS. This includes consistently monitoring the battery’s state of charge, current and voltage to improve its lifespan and decrease stress on the battery and finally regulating battery charging and holding the discharging within the boundary condition.

Table 3 Comparison of different controller for BESS

Within a microgrid energy management system, the primary function is to conduct various tasks such as monitoring, analyzing and predicting power generation from renewable energy resources, load consumption, energy market prices, ancillary market prices and weather conditions. These tasks assist the EMS in optimizing the operation of the microgrid, while ensuring technical constraints like energy balance, operational and maintenance costs of the energy storage system, demand response, operational and maintenance costs of traditional generators, reliability, greenhouse gas emission costs, and more are met. Many researchers have explored EMS strategies using different methods to achieve the best and most effective operation of the microgrid. In my detailed examination of microgrid energy management system (EMS), various researchers are employing the following methodologies: linear and nonlinear programming methods [79, 80], dynamic programming [81, 82], rule-based methods [83, 84], metaheuristic approaches (such as matrix real coded genetic algorithm [94], particle swarm optimization [95], slime mold algorithm [96, 97], cockroach swarm algorithm [98], gravitational search algorithm [99]), artificial intelligent methods (including fuzzy logic [114] and neural networks [115]) and model predictive control [116]. The aforementioned methodologies enable researchers to efficiently optimize their individual work objectives. The analysis of the benefits and limitations of these methods is provided in Table 4.

Table 4 Comparison of different control methods for EMS

In a microgrid communication system, the continuous monitoring of real-time data is essential. This is necessary to ensure grid stability, enhanced energy management, detection and isolation of faults, data analysis and optimization through the predominant communication data. Therefore, it is crucial to continuously monitor real-time data such as solar, wind, battery and load parameters to manipulate energy management operations, balance power demand and minimize wastage. By utilizing communication systems, we can reduce operational costs and enhance grid reliability. The communication system can be classified into two categories: wired and wireless technologies. Wired systems, including DSL, PLC and fiber optics, provide faster data transmission and higher reliability, albeit at a greater installation cost. In contrast, wireless systems such as Zigbee, GSM and IoT are more economical to implement, making them the preferred choice for remote locations. In a microgrid system, researchers working in rural areas prefer an IoT-based communication system [100,101,102,103]. Furthermore, some researchers [104,105,106] are implementing IoT-based energy management strategies, including demand response programs, to enhance the performance of microgrids and achieve energy and cost savings. Based on the observation, this system includes energy monitoring to optimize microgrid operation, enabling remote management through the internet and improving energy management. This benefits both consumers and power companies.

In this section, recent work on a small-scale microgrid is reviewed to identify research gaps for my proposed work. In [107] the author suggests a small-scale system using a traditional MPPT algorithm, but one notable advancement in the experimental setup is the rapid control prototyping model for testing various control algorithms in future. In the same author’s work, a rule-based EMS is developed, although a traditional MPPT method is utilized. In [108] the author incorporates WECS and PVES, proposing the gain scheduled proportional integral controller in the paper. In [109] the author conducts real-time control using rapid control prototyping to experimentally test and validate the control algorithms of the microgrid system. Another author [110] focuses on an energy management strategy that regulates the energy flow between the hybrid microgrid system and the loads connected directly or to the utility grid.

Based on the literature review, it is apparent that small-scale microgrids necessitate highly efficient control algorithms for fully leveraging the potential power generation of hybrid systems. Furthermore, a dependable monitoring and management system is essential for maintaining the performance of the microgrid. Additionally, in hybrid setups, having a battery backup with a sophisticated charging controller is crucial to maintain power equilibrium when dealing with fluctuating load and generation scenarios.

In this research, ANN-based MPPT algorithm is proposed in the solar and wind energy conversion system controllers and also battery storage system. Furthermore, to improve the performance of ANN controller the two major key issues such as significant training data and hyper parameter (hidden layer and initial weight) will be resolved in this work. For example, the real-word data are collected from NASA Research Center System as depicted in Fig. 2 and trained the neural network properly to avoid overfitting and the rapid variation of input variables the accurate output will produce in controller because of significant data will trained in ANN. Generally, the neural network initial weigh and bias of the network are generated by back-propagation algorithm and number hidden layer value set by user. Such algorithm is susceptible to getting trapped in local optima, especially for complex problem with high-dimensional data. This issue is resolved by grey wolf optimization algorithm which is applied in ANN to generate optimized value of the initial weight and number of hidden layer. This optimized ANN parameter avoids the local optima trapped and produces the very minimum mean square error value, so it improves the performance of ANN to predict the optimal output value. In this work an IoT-based wireless communication system has been implemented in a small-scale microgrid system to efficiently monitor real-time data including the values of wind, solar and battery parameters. Additionally, a simple and intelligent battery state of charge rule-based system, along with an IoT-integrated energy management system, is established for small-scale microgrid systems. This system is designed to balance power demand and minimize power generation wastage and maintain.

Fig. 2
figure 2

Real word data: a solar irradiation, b Temperature, c wind velocity

1.1 The summarization of this research work constitutes its primary contribution

  • The proposed MPPT techniques aim to optimize the power output of each generating unit, encompassing both the wind-driven generator (WDG) and the PV array.

  • GWO-tuned ANN controller is implemented for a BESS converter to retain the DC bus voltage to a constant magnitude during different sudden disturbances in energy sources and load.

  • IoT-based wireless communication system is implemented.

  • Microgrid performance will be enhanced through the deployment of an intelligent energy management system.

This document is organized as follows: In a beautifully detailed way, Section 2 provides a comprehensive depiction of the complete system design, converter topologies and control techniques in an elaborate manner. Section 3 covers the test system, including multiple case studies and Simulation results. Section 4 describes experimental validation and results, followed by conclusions in Sect. 5.

2 System description

The proposed small-scale microgrid that has been suggested is made up of a system that preserves solar energy, another one that preserves wind energy, and a remarkable storage system for battery energy. Each conversion system contains conventional converters, and a unique regulated algorithm has been created. The entire works are synchronized and monitored by the intelligent energy management system that has been proposed, as demonstrated in Fig. 3.

Fig. 3
figure 3

The proposed small-scale microgrid system

2.1 Solar power generation system (SPGS)

Solar power generation system as depicted in Fig. 4 encompassed of PV arrays, conventional boost converter [34,35,36,37,38,39,40,41,42] and proposed controller. The solar panel arrays convert light energy in to electrical energy and boost converter to boost the solar panel voltage for desire load application with help of controller. A 500 watts solar panel is used for in this work and utilized the maximum power with help of optimized ANN controller which is implemented for conventional boost converter. The various ecological conditions the suggested controller to track the extreme power effectively and generate the optimum Vref value, then it will compare with actual PV voltage it generate error signal after that is goes through PI controller it generate optimized duty cycle for boost converter.

Fig. 4
figure 4

The proposed solar energy conversion system with controller

In addition to turn on and off by MPPT controllers based on battery SOC condition, if the microgrid system is satisfied, the load constraints and the hybrid sources generate the excess power and the battery will charge continuously; if the battery SOC increases the above boundary condition, it will affect the battery components, so avoid this circumstance of the MPPT controller turn on and off by SOC boundary condition; once the battery SOC reaches the upper limit, the MPPT controller automatically turns off, for this effective operation to reduce the battery stress and increase the lifespan of battery as shown in Fig. 4. 500W solar panel P–V and I–V characteristics with the effect of irradiance are shown in Fig. 5. It is apparent from the aforementioned graphical depictions that the solar panel exhibits a nonlinear behavior with respect to both voltage and current as the irradiance changes. The properties are displayed for various levels of irradiance that span from 250 to 1000 W/m2 while retaining a persistent temperature of 25 °C and various levels of temperature that span from 25 to 40 °C while retaining a constant 1000 W/m2 irradiance level. An output power of 500Wp is measured at 12 V at a maximum irradiance level of 1000 W/m2.

Fig. 5
figure 5

500W PV module P–V and I–V characteristics under different situations: a and b show variations in values of temperature (T) while maintaining a constant irradiance (G) of 1000 W/m2; c and d demonstrate variations in irradiance (G) while keeping the temperature (T) constant at 25 °C

2.2 Wind power generation system

The power generated from wind is determined by various factors. Especially, “it is derived using the air density (\(\rho )\), the surface area swept by the rotor blades (A) and the velocity of the wind (v)” [67]. The power coefficient, denoted as Cp, is also taken into consideration and is influenced by the tip speed ratio (TSR) and pitch angle. In this particular system, a wind turbine with adjustable speed is utilized and the attributes of this turbine can be witnessed in Fig. 6, which exhibits the Cp values for various wind speeds and pitch angles [67,68,69,70].

Fig. 6
figure 6

The wind turbine mechanical attributes in relation to various wind velocities

$$P=\frac{1}{2}*\rho *A*{v}^{3}*{C}_{p}(\lambda , \theta )$$
(1)

The wind power generation system contains a turbine coupled generator setup used to generate AC power, and it depends on wind velocity. After that, the three-phase AC supply undergoes conversion into DC through a diode bridge rectifier and then increases the rectifier voltage level with support of DC–DC boost converter. To extract the maximum power in WECS here, the GWO-tuned ANN-MPPT controller implemented to generate the optimum pulse width for DC–DC boost converter is shown in Fig. 7.

Fig. 7
figure 7

The proposed wind power generation system

2.3 Battery energy storage and management system

The BESS comprises a lead acid battery, a DC–DC bidirectional converter [79] and a proposed controller, as illustrated in Fig. 8. The charging process is contingent upon the surplus power produced by renewable energy resources, while the discharging process hinges on the load and the absence of RES. In the proposed work the battery reference current is generated by ANN controller and the controller hyperparameter is optimized by grey wolf optimization method; the design and implementation process is mentioned in detail in flowchart as shown in Fig. 10. After getting the reference current, it will compare actual battery current and then the signal goes to PI controller; it produces optimized pulse width of the bidirectional DC–DC converter. Equations (2) and (3) offer the explanations for the battery’s state of charge (SOC) and its corresponding limits.

Fig. 8
figure 8

The proposed battery energy storage and management system

$${\text{SOC}}=100*\left(1+\frac{\int {I}_{bat}dt}{Q}\right)$$
(2)
$${{\text{SOC}}}_{{\text{min}}}\le {\text{SOC}} \le {{\text{SOC}}}_{{\text{max}}}$$
(3)

Furthermore, the performance of BMS is decided by battery state of charge (SOC) constraints. This research adheres to several key measures for an effective battery management system. Firstly, if the battery SOC limit reaches the upper boundary value, the solar controller algorithm is turned off, and the determined power is delivered by the battery until the SOC value decreases to the lower boundary limit. Secondly, if the battery SOC limit reaches the lower boundary limit, the battery is only in charging mode, and if the generation also decreases at the same condition, load scheduling is done by EMS system.

2.4 Grey wolf optimization algorithm

The GWO method takes motivation from the hunting behavior of grey wolves, who operate in a four-level hierarchy to capture their prey [111]. The alpha (α) leads the group and is responsible for making all decisions related to the hunt. The beta (β) supports the alpha in decision-making and holds a sub-leadership position. The delta (δ), the third tier of the hierarchy, must obey the alpha and beta but have authority over omega (ω), the lowest rank in the pack, which must submit to all higher-ranking wolves. The GWO algorithm partitions possible solutions into four distinct categories in order to replicate the hierarchical structure of leadership. The highest-rated solution is known as alpha, the second best as beta, and the third best as delta, while any remaining solutions are designated as omega. The process of hunting involves the encirclement of prey by grey wolves, and this particular stage can be accurately represented through the utilization of mathematical Eqs. (4)–(7).

$$\overrightarrow{H}=\left|\overrightarrow{C }\overrightarrow{ X } (t)-\overrightarrow{X }(t)\right|$$
(4)
$$\overrightarrow{X }(t+1)=|{\overrightarrow{X}}_{p}(t)-\overrightarrow{A } \overrightarrow{H }|$$
(5)
$$\overrightarrow{A }=2\overrightarrow{a}\overrightarrow{{n}_{1}}- \overrightarrow{a}$$
(6)
$$\overrightarrow{C}=2\overrightarrow{{n}_{2}}$$
(7)

When referring to the current iteration, t, the position vectors of a search agent \(\overrightarrow{X }\) and the optimal solution \(\overrightarrow{{X}_{p}}\), also known as the prey position, are taken into consideration. Additionally, coefficient vectors \(\overrightarrow{A}\) and \(\overrightarrow{C}\) can be computed using the equations provided. During the iterations, the components of vector \(\overrightarrow{a}\) are gradually decreased in a linear manner from 2 to 0, while vectors \(\overrightarrow{{n}_{1}}\) and \(\overrightarrow{{n}_{2}}\) are randomly selected from the range of 0 to 1.

During the hunting phase, α, β, and \(\gamma \) are responsible for conducting the operation due to their superior understanding of the probable location of the optimal solution. Other search agents are required to modify their locations by considering the position of the most optimal search agent. To achieve this, the location of the search agent can be adjusted as follows in Eqs. (8)–(12).

$$\overrightarrow{{H}_{a}}= \left|\overrightarrow{{C}_{1} } \overrightarrow{{ X}_{\alpha }} \left(t\right)-\overrightarrow{X}\right|$$
(8)
$$\overrightarrow{{H}_{\beta }}= \left|\overrightarrow{{C}_{1} } \overrightarrow{{ X}_{\beta }} (t)-\overrightarrow{X}\right|$$
(9)
$$\overrightarrow{{H}_{\gamma }}= \left|\overrightarrow{{C}_{1} } \overrightarrow{{ X}_{\gamma }} (t)-\overrightarrow{X}\right|$$
(10)
$$ \overrightarrow {{X_{1} }} = \left| {\overrightarrow { X}_{\alpha } - \overrightarrow {A } \overrightarrow {{H_{\alpha } }} } \right| ;\;\overrightarrow {{X_{2} }} = \left| {\overrightarrow { X}_{\beta } - \overrightarrow {A } \overrightarrow {{H_{\beta } }} } \right| ;\;\overrightarrow {{X_{3} }} = \left| {\overrightarrow { X}_{\gamma } - \overrightarrow {A } \overrightarrow {{H_{\gamma } }} } \right| $$
(11)
$$\overrightarrow{X }\left(t+1\right)= \frac{({\overrightarrow{X}}_{1}+{\overrightarrow{X}}_{2}+{\overrightarrow{X}}_{3})}{3}$$
(12)

The GWO algorithm is able to seamlessly transition from exploration to exploitation by utilizing adaptive values for search and attack of prey, represented by \(\overrightarrow{a}\) and \(\overrightarrow{A}\). During the exploration phase, half of the iterations are dedicated to exploring and seeking out prey by decreasing \(\overrightarrow{A}\) and ensuring that |A| is greater than 1. Conversely, during exploitation, the other half of the iterations are focused on attacking prey by setting |A| to less than 1.

2.5 ANN controller

In common a feed-forward neural network is comprised of three layers, namely input, hidden and output layer [112], as illustrated in Fig. 9. The mathematical definition of the dispersed dispensation system is represented by Eq. (13).

Fig. 9
figure 9

General block diagram of ANN

$$L=\sum_{J=1}^{n}{W}_{IJ}{X}_{J}+{b}_{J}$$
(13)

To effectively train a feed-forward artificial neural network (ANN) system, it is crucial to possess several key elements: the input training node xj, the associated connection weights wij for input, hidden and layer nodes, the bias bj for hidden and output layer nodes, and the total number of input signals, denoted as n [112]. The widely used method for this training process is the back-propagation (BP) algorithm. This algorithm, a sophisticated gradient technique, elevates the performance of the ANN by iteratively adjusting the weights and bias terms of each node. This iterative process continues until the output value at the output layer accurately predicts the desired outputs, thereby minimizing the training error. Fundamentally, the mean-squared error (MSE) acts as the cost function, which can be mathematically represented by Eq. (14).

$$MSE=\frac{1}{n}\sum_{i=1}^{n}\sum_{j=1}^{m}[{{L}_{j}\left(i\right)-{T}_{j}(i)]}^{2}$$
(14)

where ‘n’ denotes the quantity of input data, ‘m’ signifies the number of output signals. ‘Lj(i)’ represents the factual yield while ‘Tj(i)’ indicates the target output [112, 113]. During the process of work, there are two control parameters that enhance the recital of the system, namely the initial weight for training nodes and the value of the hidden layer. Generally, the user sets the values of the hidden layer, while the initial weights are produced by the BP algorithm. But the usage of back-propagation algorithm for generating initial weight values in neural networks has certain drawbacks. Inadequate initialization may impede convergence, resulting in suboptimal solutions or local minima. It does not thoroughly explore weight space, thereby limiting generalization. Furthermore, the decision of weight values impacts other hyperparameters, making the tuning process complicated. Symmetric weights can decelerate learning, while imbalances may result in gradient issues. It necessitates resource-intensive trial-and-error to determine appropriate values. The transfer to new tasks is a challenging process, and random initialization lacks control over weight distribution. Finally, uncertainty estimation is not provided.

2.6 GWO-ANN algorithm

As early said, the standard approach to initializing neural networks employs the back-propagation algorithm to generate initial weights and biases, while the user determines the number of hidden layers. Despite its susceptibility to local optima, this algorithm is still useful for handling intricate issues that involve high-dimensional data. To tackle these concerns in this research, the grey wolf optimization algorithm is employed in order to ascertain the preliminary weight and concealed layer variables of the artificial neural network (ANN). Thus, we have implemented a proposed control algorithm which has the capability to precisely assess the growth of neurons in the hidden layer without any prior selection by the user and locate optimized initial weight values. Our belief is that this method will greatly elevate the efficiency and precision of the ANN model through the enhancement of convergence rate and reduction of training error. Our research has effectively obtained a neural network with one output and two inputs for the hidden layer while achieving the lowest training error. Figure 10 illustrates the sequence of tasks involved in GWO-ANN, as represented by the flowchart.

Fig. 10
figure 10

Flowchart for GWO-ANN Method

2.7 Energy management system (EMS)

The microgrid solution is a complicated interconnected network that necessitates exact and synchronized management to guarantee efficient and dependable operation. The energy management system (EMS) serves as the primary controller, overseeing and coordinating all control actions. It plays a crucial role in managing and directing these actions. The ongoing research focuses on an intelligent EMS responsible for regulating various converter controllers that operate based on the EMS control mode. One example of such a controller is the non-isolated boost converter in the solar energy conversion system, which can function in either MPPT mode or off-MPPT mode depending on power generation and battery SOC limits. Similarly, the battery bidirectional converter can either charge or discharge and keeps the DC bus voltage constant. The wind energy conversion system’s DC–DC boost converter operates in boost mode. However, ensuring power balance in the microgrid under various power generation and load demand conditions is a major challenge and it is represented by mathematical Eq. (15).

$$\text{P}_{\text{Solar}} + \text{P}_{\text{Wind}} - \text{P}_{\text{Battery}} - \text{P}_{\text{Load}} = 0.$$
(15)

Any discrepancy between the power produced and the power utilized will result that there is a dissimilarity in voltage and frequency within the microgrid, thereby potentially causing instability and harm to the constituent elements. Therefore, it is essential to maintain a balance between the power generated and consumed to guarantee the dependable and efficient operation of the proposed system. In energy management system (EMS), four distinct modes of operation are utilized. Initially, in grid-connected mode, the EMS primarily monitors the battery state of charge (SoC), while the load requirements are met by the grid. Secondly, in islanded mode, the EMS first evaluates power generation, battery capacity and load demands. If power generation exceeds the load demand, surplus power is utilized to charge the battery and transferred to the grid. In the third scenario, when power generation is insufficient to meet the demand, the EMS prioritizes maintaining the battery SoC within limits. If the battery SoC is above 20%, power generation is initiated to balance the load demand. If the battery SoC exceeds 80%, the solar panel maximum power point tracking (MPPT) controller is disabled, and the load is powered by the battery until the SoC drops below 80%. Lastly, if the battery SoC falls below 20% and power generation is inadequate, load scheduling operations are employed to ensure microgrid stability. The flowchart depicted in Fig. 11 elucidates the various methods by which the energy management system operates.

Fig. 11
figure 11

Flowchart for intelligent energy management system

2.8 Load side control and conventional grid

Maintaining voltage and frequency is essential in small-scale microgrid systems, and the inverter serves as the backbone of the system, playing a vital role in ensuring optimal performance in both operating modes (grid and islanded). In islanded mode, it is crucial for the inverter to maintain voltage and frequency to effectively transfer power through local distributed networks and maintain system stability. In a grid-connected setup, the inverter guarantees synchronization of output voltage and frequency with the grid’s standard rating. It also manages power flow control among hybrid sources, storage systems and the primary grid.

Managing power quality is also a significant task in this regard. To tackle this challenge, a simple yet effective controller has been devised for the inverter, as illustrated in Fig. 12. The load side control device comprises a variable load through a single phase grid-connected inverter and an LCL filter to reduce inverter output voltage and current harmonic. The inverter controller control parameter direct axis reference current value is generated by an intelligent energy management system due to the variation of hybrid generation and sudden changes in load.

Fig. 12
figure 12

Load side converter tie with Microgrid

3 Simulation result discussion

In this research, a microgrid framework configuration was conducted on a small scale and its performance was evaluated through the utilization of the MATLAB software. The initial phase of this section involved the development and appraisal of the control strategies for the PV, wind and battery energy storage systems. An analysis was conducted to compare the aforementioned strategy with other conventional methods. Following that, the microgrid’s output was analyzed in islanded modes, and the study also examined how the intelligent energy management system functioned under varying load and ecological conditions. This section provides a detailed discussion of the aforementioned activities.

3.1 GWO-Tuned ANN algorithm for initializing weights and hidden layer parameters

To initiate the process, begin by selecting the structure of the ANN model and then focus on optimizing its initial weight values. This method can be implemented by a hybrid GWO-ANN technique which has been developed using specific parameters for the GWO optimizer, including a population size of 20 and a maximum iteration count of 50. The values of weight and hidden layer in this algorithm have a scale between -0.9 to 0.9 and 10 to 20, respectively. After running the hybrid algorithm, optimized hyperparameters are obtained. The algorithm’s search history can be found and compared with conventional ANN method as shown in Fig. 13. The optimized values acquired are subsequently employed to train an artificial neural network (ANN) model through the utilization of the ‘nntool’ command within the MATLAB software. The performance of the ANN model is significantly improved with the optimized training approach using real data, resulting in enhanced predictions than using traditional ANN. By reason of the lesser MSE and fewer epochs obtained by all conversion unit controller, as illustrated in Fig. 13, Table 5 provides basic statistical analysis of the algorithm proposed.

Fig. 13
figure 13

Fitness values of proposed controllers. a PV, b Wind, c BMS

Table 5 The preliminary computation of statistics for the suggested method showcases its potential efficacy

3.2 Dynamic performance of PV and wind energy conversion system

The performance of the PV and wind energy conversion unit control algorithm is to be analyzed using the MATLAB Simulink framework. The traditional MPPT algorithm will be compared with the proposed work.

The PV configuration consists of a PV array, boost converter and load, with the array comprising five PV modules connected in parallel. Similarly, the wind energy system configuration includes a variable wind turbine, PMSG, diode bridge rectifier, boost converter and load. The main parameters of the PV array and wind energy system, used in the simulation are provided in Table 6.

Table 6 PV and wind energy conversion system module properties

During the simulation, the solar irradiance (G) experienced an unexpected drop from 1000 to 700 W/m2 between 1 and 2 s, followed by an increase from 700 to 800 W/m2 between 2 and 3 s, another increase from 800 to 900 W/m2 between 3 and 4 s, and a final increase from 900 to 1000 W/m2 between 4 and 5 s. Throughout this timeframe, the input temperature (T) remained unchanged at 25 °C. According to the results shown in Fig. 14a, the exceptional predictive capability of the proposed GWO-tuned artificial neural network (ANN) method was clearly demonstrated in various atmospheric conditions, thanks to its highly optimized training strategy. After reaching the MPP, a comparison was made between the proposed method and the conventional methods like ANN, ICM, FLC and P&O. The power outputs recorded were approximately 499.5 W, 495 W, 492 W, 490 W and 478 W, respectively, under a solar irradiation of 1000 W/m2. By examining the magnified section of Fig. 14a, it becomes evident that the proposed ANN method exhibits the least amount of fluctuations around the MPP compared to the other methods under steady-state conditions.

Fig. 14
figure 14

a The proposed method for solar energy conversion system performs better traditional methods in different solar irradiance levels. b The proposed method for wind energy conversion system performs better than the traditional methods in different wind velocity conditions

This ultimately leads to a reduction in consumption time. Building upon these observations, a comprehensive analysis was conducted on the conventional methods and GWO-tuned ANN techniques, with a focus on their key characteristics for PV. This analysis is presented in Table 7 and Fig. 15. Lastly, the predictive PV power efficiency of the proposed method was compared to that of the conventional P&O, FLC and ANN techniques.

Table 7 A comprehensive analysis was conducted on the conventional method and GWO-tuned ANN techniques, focusing on their key characteristics for PV
Fig. 15
figure 15

The proposed method’s predictive PV power efficiency was related to that of conventional techniques

Similarly, to analyze the performance of the wind energy system controller, only five distinct wind velocity values have been utilized in the proposed algorithm. These values were 12 m/s, 9 m/s, 10 m/s, 11 m/s and 12 m/s at the beginning, during the intervals of (0–1)s, (1–2)s, (2–3)s, (3–4)s and (4–5)s. Based on the findings in Fig. 14b, the proposed ANN method clearly demonstrated its exceptional predictive capability in various wind velocity conditions due to its highly optimized training strategy. Furthermore, it was determined to be remarkably robust in achieving the optimal maximum power point (MPP) under both increasing and decreasing levels of wind velocity. Comparing the GWO-tuned ANN method with the conventional methods ANN, ICM, FLC and P&O after reaching the MPP, the power outputs were approximately 99.78 W, 99 W, 98 W, 97.5 W and 97.4 W, respectively. The magnified section of Fig. 14b clearly demonstrates that the proposed ANN method exhibits the least amount of fluctuations around the MPP compared to other methods under steady-state conditions, resulting in reduced consumption time. Based on the observation, Table 8 presents a comprehensive analysis that was conducted on the traditional ANN, FLC, ICM, P&O control algorithm and optimized GWO-tuned ANN techniques, focusing on their key characteristics for wind. Additionally, Fig. 16 shows the comparison of the predictive wind power efficiency of the suggested method to that of conventional P&O, FLC and ANN techniques.

Table 8 A comprehensive analysis conducted on the conventional MPPT techniques and optimized ANN-MPPT techniques, focusing on their key characteristics for wind
Fig. 16
figure 16

The proposed method’s predictive wind power efficiency was related to that of conventional techniques

3.3 Dynamic performance of BESS controller

The primary task in this particular segment entails evaluating and scrutinizing the efficacy of the controller for the battery energy storage system (BESS). In order to achieve this, two different types of testing will be conducted. The first test involves sudden increases or decreases in power generation due to varying ecological conditions, while maintaining a constant load that is simulated over a period of 0 to 3 s. The second test involves constant power generation with variable load conditions that is simulated over a period of 3 to 4 s. The performance of the converter will then be compared with traditional control strategies. According to Fig. 17, the voltage of the bus experiences limited fluctuations due to the gradual changes in power generation.

Fig. 17
figure 17

The proposed method’s DC link voltage was compared to that of conventional PI, sliding mode and FLC techniques

The implementation of PI control results in a maximum fluctuation of Δv = 5%. On the other hand, sliding mode control limits the maximum fluctuation to Δv = 4.1%, while fuzzy logic control further improves the maximum fluctuation to Δv = 2.5%. Ultimately, the proposed controller ensures that the voltage remains constant at 60 V. Simulation results indicate that the selected control strategy is capable of upholding the constancy of the DC bus voltage even in the presence of energy generation as well as load fluctuations. During fluctuations, the optimized ANN control method yields the best control effect, resulting in the bus voltage climbing to the rated value at 60 V. This is followed by sliding mode fuzzy logic and PI control. From the above observation, the least effective control strategy is found to be traditional PI controller.

3.4 Dynamic performance of hybrid renewable energy microgrid:

The hybrid renewable energy microgrid underwent three distinct case scenarios. The initial situation entailed the preservation of a consistent load state, while simultaneously altering the solar and wind energy inputs. In the subsequent situation, the demand for load was altered, while the renewable energy sources remained unchanged. The third scenario encompassed fluctuations in both the demand for energy and the availability of renewable energy resources. It is important to highlight that the simulation results were obtained in a consistent runtime of 5 s for both of these scenarios.

3.4.1 Varying generating conditions with consistent load

The primary objective of the initial case study is to ensure a consistent and uninterrupted power supply to the load by adapting to varying generating conditions. To achieve this, the level of irradiance was adjusted to 0 W/m2, 400 W/m2, 600 W/m2 and 1000 W/m2 during the time intervals of 0–1 s, 1–2 s, 2–3 s, and 3–5 s, respectively. Similarly, the wind speed underwent changes of 12 m/s, 10 m/s, 8 m/s, 9 m/s and 11 m/s during the time intervals of 0–0.5 s, 0.5–1 s, 1–2.5 s, 2.5–3.5 s and 3.5–5 s, respectively, as illustrated in Fig. 18a.

Fig. 18
figure 18

The distribution of power across various points in the microgrid remains consistent despite the fluctuating supply of renewable energy sources

Based on Fig. 18, the intelligent energy management system utilized in small-scale microgrid operation is working effectively. The battery management system can keep a steady load power of 360 watts due to the variable power generation. During the initial stage, PV power is zero from 0–0.5 s, while wind power is at 100 W as shown in Fig. 18c. As a result, the battery storage will discharge and produce 260 W to compensate for the load demand. From 0.5 to 1 s, PV power remains at zero, and wind power is reduced to 83 W. The battery produced 273W to maintain the load demand. From 1–2 s, the PV generates 210 W as shown in Fig. 18b, and wind power is reduced to 30W. The battery produced 120 W to maintain the load demand. From 2–3 s, PV power is at 320W, and wind power is at 40 W. The demand is satisfied by the hybrid system, and the battery will start charging mode after 3–5 s. The hybrid system maintains the load power while simultaneously charging from 0 to 2.5 s, the battery will discharge, and from 2.5 to 5 s, it will charge, as shown in Fig. 18d. Finally, the DC bus voltage maintains at 60 V, as depicted in Fig. 18h. The load voltage and current maintain a constant magnitude at different generations as shown in Fig. 18f.

3.4.2 Varying generating conditions with variable load

In this scenario, as previously mentioned, the ecological data for PV and WIND are identical, but the load power varies between 360 and 800W for different durations ranging from 0 to 5 s. The hybrid energy resource and battery storage system are employed in order to fulfill the fluctuating load requirements. Throughout the analysis, the battery discharging mode is activated for 0 to 5 s, ensuring that the DC bus voltage maintains at 60 V, as illustrated in Fig. 19a–h. Despite the different power generation levels, the load voltage remains consistent.

Fig. 19
figure 19

The distribution of power in various sections of the microgrid changes depending on the fluctuating demand and the varying sources of renewable energy

3.4.3 Real-world generation capabilities in a single day with a consistent load.

In this particular situation, we make use of 1-day worth of real-world ecological data for PV and WIND, along with a constant load that spans from 0 to 23 h. In order to address the variability in electricity production and fulfill the requirements of power consumption, we employ a hybrid energy resource and battery management system. Throughout the analysis, the battery discharging mode is turned on between 0 and 6 and 17 and 23 h, with the charging mode turned on between 6 and 17 h, while upholding a constant DC bus voltage of 60 V, as illustrated in Fig. 20a–d. Despite varying power generation levels, the load voltage remains consistently stable.

Fig. 20
figure 20

The distribution of power across various points in the microgrid remains consistent despite the fluctuating supply of renewable energy sources for one day

After conducting the aforementioned simulation work and analyzing the results, we have reached the conclusion that the suggested controller algorithm and intelligent energy management system function effectively under various ecological and load conditions, successfully maintaining the energy balance. The proposed controller algorithm demonstrates remarkable performance in rapidly changing conditions. In comparison to traditional controllers, our suggested controller is suitable for real-time environmental applications (Table 8).

4 Experimental validation and results

The experimental implementation of small-scale prototype modes for renewable energy based microgrid has been executed through the utilization of a DSPIC30F4011 controller board, as depicted in Fig. 21. The DSPIC30F4011 board is an adaptable and highly capable solution for low power microgrid applications, with features including power management, communication, digital signal processing, real-time control and energy management. This alternative is an exceptional pick for guaranteeing the steadiness, dependability and efficiency of microgrids, which perform an essential part in current power systems. As microgrids become increasingly important, the DSPIC30F4011 remains a reliable and versatile tool for effective management and control. The inclusion of IoT technology to supervise and regulate the system enhances its potential by enabling remote supervision, data-based decision-making and enhanced efficacy. This comprehensive method signifies a progressive remedy for generating and distributing sustainable and dependable energy in microgrid settings.

Fig. 21
figure 21

Prototyping a small-scale hybrid solar–wind microgrid system

The DSPIC30F4011 comes preloaded with common control functions, eliminating the need for custom code compilation. Additionally, the controller can directly compile programs from C-code using the Simulink Real-Time Workshop library. The DSPIC30F4011 not only provides PWM and serial peripheral interface functionalities, but it also expertly manages the encoder interface and A/D modules. Consequently, the DSPIC30F4011 board proves to be an exceptional real-time controller that is perfectly suited for closed loop control applications.

The proposed hardware setup is made up of a PMSG coupled with a 0.5 HP induction motor, which can achieve varying wind speeds, while a PV emulator is used to adjust irradiation and temperature levels of PV input power. To store energy, a 12 V, 24 Ah lead acid battery is employed, and the suitable power converters for the PV, wind, battery and load are chosen. All the necessary components for the task at hand encompass encoders, line filter inductors, modules capable of handling variable loads with minimal power consumption, interfaces for seamless connectivity and devices for measuring voltage and current. Furthermore, NodalMCU is used for wireless communication to access data and control from all over the world. Table 9 provides a list of hardware equipment parameters. The microgrid system utilizes two DSPIC30F4011 controllers, with one of them functioning as the master controller and the other as the slave controller, as illustrated in Fig. 22. The slave controller is responsible for controlling the PV and wind energy conversion unit, while the master controller manages the BMS and inverter for load and grid control. The proposed controller that has been suggested is accountable for the acquisition of voltage and current measurements from the power generation unit, energy storage unit and load unit.

Table 9 Parameters of hardware equipment
Fig. 22
figure 22

Schematic diagram of controller functions

The aforementioned measurements are subsequently conveyed to the intelligent energy management system and control algorithms for the purpose of determining the power levels at various points within the microgrid. Additionally, it evaluates the necessary measures to regulate the energy equilibrium within the system, producing the requisite pulse width modulations for the microgrid converters.

The assimilation of IoT technology grants the ability to remotely oversee and regulate the microgrid system. By employing sensors and NODEMCU ESP8266 communication module, the microgrid’s data can be sent to a centralized control center or cloud-based platform. This remote access avails real-time performance monitoring, fault detection and the capability to adjust system parameters from afar. Moreover, it facilitates data analytics and anticipatory maintenance, thereby enhancing the overall effectiveness and dependability of the microgrid.

4.1 Experimental results

In this particular section of the research, the examination of empirical findings was carried out employing two distinct modalities: grid-connected and islanded mode in relation to the suggested small-scale microgrid system. The grid-connected operational mode was utilized to validate the correspondence between the inverter’s voltage and frequency and those of the grid, as demonstrated in Fig. 23. Then, the suggested control system for the hybrid renewable energy based microgrid small-scale system, which combines photovoltaic (PV) and wind power, along with battery storage, was proven using the islanded mode. Numerous experimental scenarios were analyzed, encompassing various parameters including wind turbine velocity, solar irradiation, fluctuating load and situations involving low power output. This study involved examining three scenarios to assess the dependability of the system. The first scenario focused on a constant load with consistent PV and wind power, whereas the second scenario placed its focus on the inconsistent nature of wind power and solar power, which can be unpredictable, while concurrently maintaining a constant load.

Fig. 23
figure 23

Hardware grid and inverter voltage

It is essential for the system to stay stable and guarantee a trustworthy energy output in such circumstances. The third scenario dealt with a constant renewable power generation and variable load, requiring battery power to supplement insufficient power generation from renewable sources. By analyzing these three scenarios, the hybrid power system’s reliability was established. In the fascinating realm of islanded mode operation, the rapid fluctuations in output can be visually observed through the use of a digital storage oscilloscope (DSO). However, this marvelous device only displays the instantaneous output. To capture and preserve the swift variations in output, we rely on the assistance of storage devices within the DSO. These invaluable storage devices allow us to store the rapid variation output, which can then be conveniently exported to a CSV file. Once in this digital format, we can further analyze and visualize the results using the magnificent MATLAB software.

4.1.1 System performance under constant power generation and constant load

The prime objective of the initial scenario is to ensure a consistent amount of power to the load under stable power generation circumstances. In this particular case, a load of 200 watts was subjected to testing in an isolated microgrid mode. The load was powered by 100 watts from solar energy and 100 watts from wind energy. To achieve islanded mode, the inverter voltage was set to 48 V. The entire performance of both the power generation and load signals was visually observed using a digital signal oscilloscope, as depicted in Fig. 24.

Fig. 24
figure 24

Hardware output—constant generation power and constant load

4.1.2 The constant load can be balanced with diverse renewable energy sources.

The main focus of the second scenario is to guarantee a steady provision of electricity to the load despite fluctuating circumstances of power generation. In order to achieve this, the solar irradiance is adjusted utilizing a PV emulator, while the wind speed is adjusted through the use of a wind emulator. The solar irradiance varies at different time intervals, starting from the beginning and continuing at 0–1 min, 1–2 min, 2–3 min, 3–4 min and 4–5 min, with corresponding measurements of 500 W/m2, 450 W/m2, 300 W/m2, 150 W/m2 and 100 W/m2 respectively. Similarly, the wind velocity is varied at the initial time and at time intervals of 0–0.5 min, 0.5–1.5 min, 1.5–2.5 min, 2.5–3.5 min and 3.5–5 min with corresponding values of 12 m/s, 11 m/s, 10 m/s and 9 m/s respectively, as depicted in Fig. 25a. It is essential to mention that these variations are only step variations and do not precisely represent the ever-changing real-world meteorological conditions. However, these values have been carefully selected to encompass the complete range of operation for the PV and wind energy conversion system, this deliberate selection allows for a comprehensive assessment of the performance of the system under varying conditions. Furthermore, it is important to note that the load, as depicted in Fig. 25e, remains constant at 100 W in this specific case. It should be acknowledged that in real-world scenarios, the load would not remain consistently fixed. The rationale behind maintaining a fixed load is to observe the performance of the renewable energy conversion systems and the battery storage system within a small-scale microgrid system. During the initial phase, PV power is at 160 W from 0–1 min, while wind power is at 100 W as illustrated in Fig. 25b, d. Consequently, the battery storage will charge to compensate for the load demand in the hybrid system. Between 1–2 min, PV power decreases to 140 W, and wind power decreases to 70 W. This leads to the battery storage charging to meet the load demand. Moving on to 2–3 min, PV generates 100 W as seen in Fig. 25b, and wind power drops to 60 W. This results in the battery storage charging to address the load demand. From 3.5 to 4 min, PV power is 50 W, and wind power is 40 W. Consequently, the battery storage discharges and produces 10 W to meet the load demand. Between 4–5 min, PV power is 40 W, and wind power is 70 W. This causes the battery storage to charge to compensate for the load demand. The consistent load can be managed by various renewable energy sources from 0 to 3 min as the battery charges, from 3 to 3.5 min a lag in generation occurs, leading to the battery balancing the demand and initiating a discharging operation. The remaining interval sees the battery charging. According to the research findings, energy wastage is minimized, and power supply reliability is maintained with the assistance of EMS. Ultimately, the DC bus voltage remains stable at 60 V, as shown in Fig. 25h. The load voltage and current maintain a constant magnitude during different generation stages as depicted in Fig. 25f, g.

Fig. 25
figure 25

The distribution of power in various sections of the microgrid changes depending on the constant demand and the varying sources of renewable energy

4.1.3 Constant renewable power generation and variable load

In the alternate scenario, the continuous production of solar and wind power remains unaltered, with solar power of 100 W in irradiance remaining steadfast at 300W/m2 and wind power at 55 W in 10 m/s wind velocity, as illustrated in Fig. 26a. At intervals of 1 min, the energy demand fluctuates, thus subjecting the effectiveness of the microgrid to the challenge of varying energy requirements. At the outset, the load requirement is established at 100 W, wherein 100 W of energy is obtained from renewable sources, and the residual 55 W of energy is accumulated in a battery storage apparatus. From 1 to 5 min, the demand escalates rapidly, enabling the surplus power generated during this period to recharge the battery. Subsequently, after 1 min, the demand surpasses the supply, leading to the battery supplying the additional power required, as depicted in Fig. 26d. Throughout these fluctuations in load, the microgrid consistently maintains a steady voltage at the load terminal, as demonstrated in Fig. 26e. The EMS successfully maintains equilibrium of power when faced with varying load demands, encompassing both lower and higher levels. Meanwhile, the power generated from sustainable energy sources remains steady. The battery charges when the load demand decreases, but releases its stored energy when the load demand increases.

Fig. 26
figure 26

The distribution of power in various sections of the microgrid changes depending on the fluctuating demand and the constant sources of renewable energy

4.1.4 Data monitoring system output (IoT)

The incorporation of NodeMCU ESP8266-based monitoring devices in a small-scale microgrid system offers an affordable and efficient solution for monitoring different parameters of solar, wind and battery storage systems. By accessing data online through the Adafruit platform, users are able to conveniently monitor renewable energy systems from any location around the globe, thus facilitating efficient energy management and optimization. The specific methodology mentioned plays a substantial part in advancing the acceptance of sustainable energy sources through the improvement of the reach and feasibility of tracking capabilities. Figure 27 showcases data that are visually displayed on an online website, illustrating constant power generation and load condition scenarios in a case study.

Fig. 27
figure 27

Proposed system communication data visually displayed on an online website

5 Conclusion

In this research work, we successfully designed and developed an intelligent energy management system (EMS) tailored for a small-scale microgrid, catering to remote communities. Here, three major tasks such as designing a GWO-tuned ANN controller for hybrid system, IoT-based monitoring and intelligent energy management for small-scale microgrid system are successfully achieved. In the initial stages of designing an artificial neural network (ANN) controller, it is imperative to first acquire significant data. This involves the collection of real data over a period of 210 days, equivalent to 5040 h, through the NASA Research Center. The utilization of significant data is crucial in preventing overfitting and mitigating the rapid fluctuations in input variables, thereby ensuring the generation of accurate outputs by the controller through the training on such data. Subsequently, the significant parameters of ANN such as initial weight and hidden layer are optimized by grey wolf optimizer during the computation process. The results revealed notable improvements in mean-squared error (MSE) values when compared to the conventional back-propagation technique. Specifically, the MSE values were 0.00978, 0.0500 and 0.0440 for the solar, wind and battery controllers, respectively, under the conventional method, whereas they were 0.0040, 0.0065 and 0.0022 under the GWO-tuned approach. Due to minimization of MSE, the tracking ability of the controller is improved and extracted the maximum power as system output. Simultaneously, the performance the battery storage system is improved. Even though rapid variation of demand as well as generation, the DC bus voltage is maintained consistently. For simulation process, considering the proposed system is required to meet 200 watts as load demand in islanded mode. Here, PV produced 100 watts for 300 m/s2 as solar irritation and wind produced 55 watts for 10 m/s as wind velocity. Hence, total power is produced in this system is around 155 watts which is insufficient to meet the demand. In this instant, based on the response of IoT and smart EMS, instruction has been given to the controller which initiates the battery storage unit to provide rest of the power (45 watts) to meet the load demand. Same environment has been applied for experimental validation of proposed system which has produced same output as obtained in simulation result. In future, this system will help to analyze fault identification, integration of distributed energy resources like biomass, mini hydropower generation and reduction of GHG emission.