Introduction

Due to the raise in lifestyle facilities, the energy demand is rapidly increasing. The overall electrification rate in India is 64.5 % and the 35.5 % of the population still lives without access to the electricity [1]. India has focused on solar photovoltaic (PV) power and has a vision of 50 % electricity from renewable energy sources (RESs) by 2030 [2]. The rooftop PV systems for homes are subsidy by the government of India under Jawaharlal Nehru national solar mission (JNNSM) program to achieve the set target of power generation from the RES. The microgrids have become a more attractive option for rural electrification compared with the extension of electrical transmission infrastructure to connect rural areas to the centralized grid [3]. This concept easily works in both the AC and DC domain, but the implementation of the DC microgrid system provides several advantages in terms of redundancy, modularity, fault tolerance, efficiency, reliability, maintenance, size, and design cost. Beside from reducing resource and financial costs, an important advantage of DC microgrid is that it simplifies and provides the opportunity to integrate the RESs such as PV, which is intrinsically DC source at higher efficiency. Additionally, with the rapid development of the DC technologies, the DC loads are continuously increasing in the residential and commercial building [4].

A DC microgrid is a system to directly connect the PV system and DC loads. This approach reduces the converter stages and improves the system efficiency [5]. The variability of the power production of PV systems and stochastic nature of energy demand by loads forces to use indispensable energy storage devices with the optimal size [6] in DC microgrid to smooth the power flow and provide high-quality electric power. The use of battery bank energy storage (BBES) systems is a popular alternative to maximize penetration level of variable power coming from PV into DC microgrid. The optimal operation of DC microgrid requires proper control strategies to control the power sources. The battery control and monitoring system (BCMS) is one of them. The BCMS monitors critical BB conditions and allows an early detection of potential blackout conditions [7]. It implies that the monitoring system of each source can play an important role in system reliability and security of the DC microgrid. The batteries have approximately 85 % efficiency. The minimum use of the battery can improve the system efficiency. The demand side management (DSM) can help to achieve this goal by the load scheduling as per PV generation.

The DSM programs are implemented by the utility companies to control the energy consumption at the customer side [8]. The main task of the DSM is to change the use of load quantitatively by implementating and planning for the utility or monitoring the consumer activities of load utilization. The load management and consumer side local generation are other tasks of the DSMs [9]. The DSM approaches are employed to use the available energy efficiently without installing new infrastructure for generation and transmission [10]. The decentralised DSM mechanism to defragment home loads is based on grid prices and utility companies which are offering the incentives to use the devices optimally [11]. The heuristic based evolutionary algorithm is used for day-ahead load shifting to reduce the peak demand and reshape demand curve [12]. The DSM promotes distributed generation in order to avoid long-distance transport. The DSM facilitates the consumption of locally generated energy immediately whenever it is available for local loads [13]. The main advantage of DSM, is that it is less expensive to intelligently influence a load [14].

Many DSM techniques have been reported in the literature during the last decades. Some of them are based on a neural network approach inspired controllers [15], peak clipping [16], price based DSM to assessing the impacts of timely use tariffs based on demand and peak demand of the residential building [17], direct load control [18] and impact of DSM in the penetration of renewable energy [19].

This paper proposed a new DSM scheme for the autonomous DC microgrid of residential building. The most obvious features such as load scheduling of the deferrable load from non sunny to sunny hours for directly utilize the PV power, and approaching the desired state of charge (SOC) by controlling the cycle based load and other controllable load makes it more advance. The DSM scheme decreases the use of battery power. In other words, it reduces the charging/ discharging cycles of the battery bank. The outcomes of the DSM scheme are (i) it reduces the power losses in the battery (i.e. improves the system efficiency), (ii) it reduces the size of the battery bank and PV plant, (iii) it also decreases the capital cost of the system, (iv) It also decreases the peak demand of the building.

Analysis of AC Vs. DC Microgrid

The converter stage, energy demand and size of power sources (battery and PV plant) are considered in this study for comparative analysis of the AC and DC microgrid.

Appliances

The energy saving with the DC compatible technology as compared to the AC technology can be found in Table 1. It can be seen from Table 1 that the total energy saving with most of the residential loads is up to 71 %. Whereas the rectifiers losses have existed in some cases like refrigerator, dishwasher, washing machine, fans, etc.

Table 1 Energy Saving from Efficient DC Internal Technology

Converter Stages

The DC loads in the residential as well as commercial building are increasing due to the high efficiency of the DC load as compared to the AC compatible load. It forced to connect the AC-DC converters in case of the traditional distribution system (AC system) to supply the DC loads [2]. These conversion stages at the load end are one of the causes to decrease the system efficiency and increase the system cost. The details of the conversion stages with AC system in an autonomous DC microgrid for residential building can be found in Table 2.

Table 2 Description of Cost and Efficiency of Internal Converters in Appliances and Power Sources

Energy Demand

The AC microgrid energy (E d,a c ) demand consists of the energy consumption in the appliances, and total energy losses (E l o s s,t ).

$$ E_{d} =\sum\limits_{t=1,j=1}^{T,n_{a}} {P_{aj} (t)\tau_{h}} +E_{loss,t} $$
(1)

where P a j is the power consumption in j th appliance, n a is the number of appliances; T is the scheduling horizon of the optimization; τ h is the optimize time step 1min.

The total energy loss consists of the energy losses in the converters (E l o s s,c ), line and energy loss (E l o s s,b ) in the battery during charging and discharging due to chemical reactions in the battery. As the system is a prototype and the cable length is very small, therefore, the line losses are considered negligible. The total energy losses (E l o s s,a c ) in the autonomous microgrid with the AC distribution system can be expressed as:

$$ E_{loss,t} =\sum\limits_{t=1,j=1}^{T,n_{c}} {P_{loss,cj} (t)\tau_{h}} +P_{loss,b} (t)\tau_{h} $$
(2)

where n c = (n a + n s ) is the number of converters in the autonomous microgrid; n s is the number of sources.

The autonomous microgrid consists of only DC power sources such as PV , BB and the DC loads. Therefore, the total energy demand of the microgrid with the DC distribution system includes the energy consumption in the appliances and energy losses in the battery. The energy consumption can be expressed as:

$$ E_{d,dc} =\sum\limits_{t=1,j=1}^{T,n_{a}} {P_{aj} (t)\tau_{h}} +E_{loss,b} $$
(3)

PV and Battery

PV Size

The PV watt-hours needed per day is the combination of the total power consumption in the appliances and power losses in the system. The size of the PV plant depends on the watt-hours needed from the PV plant and number of average sun hours per day in whole year [20] and can be expressed as:

$$ \mathit{PV}\,\mathit{Plant}\,\mathit{Size}=\frac{\mathit{PV}\,\mathit{watt}-\mathit{hours}\,\mathit{needed}\,\mathit{per}\,\mathit{day}}{\mathit{Avg.}\,\mathit{sun}\,\mathit{hours}\,\mathit{per}\,\mathit{day}\,\mathit{in}\,\mathit{year}} $$
(4)

Battery Capacity

The battery size should be large enough to store the sufficient energy to supply the load in the non-sunny hours and cloudy days.

$$ \text{Battery capacity } (\mu_{\mathrm{n}})=\frac{\mathrm{k}_{\mathrm{a}}} {\eta_{\mathrm{b}} \times DOD_{b} \times \mathrm{V}_{\text{nl}}} \times n_{au} $$
(5)

where k a is the watt-hours needed for appliances per day, η b is the battery efficiency (0.85); DOD b is the depth of discharge (0.5); V n l nominal voltage of battery; n a u is the number of autonomy (2 day), average winter temperature 80 °F.

State of Charge of Battery Bank

In general, the state of charge (SOC) of the battery is the ratio of its present capacity (μ(t)) to the nominal capacity (μn) of the battery [21]. The SOC can be defined as:

$$ SOC(t)=\frac{\mu (t)}{\mu_{n}} $$
(6)

The coulomb counting method measures the charging/ discharging current of a battery and integrates the charging /discharging current over time in order to estimate SOC [21]. The SOC can be calculated as:

$$ SOC(t)=SOC(t-1)+\frac{i(t)}{\mu_{n}} {\Delta} t $$
(7)

Autonomous DC Microgrid Configuration

The conceptual layout of the autonomous prototype DC microgrid for the residential building is shown in Fig. 1 and its hardware setup is shown in Fig. 2. Two solar charge controllers (SCCs) are connected in parallel to supply the load of the prototype DC microgrid. Additionally, both the SCCs connects to the energy storage (ES), which consists of four battery banks (BBs) BB-1, BB-2, BB-3 and BB-4 in parallel to store the surplus energy or balance the surplus demand. These types of connections for the BB increase the reliability of the DC microgrid. For example the PV plant of the SCC-1 is in outage then the SCC-1 connects their load to the ES and SCC-2 via 12 V DC bus between both the SCCs to feed the surplus energy to the ES. The voltage and state of charge (SOC) of the batteries are monitored in real time, which give the energy stored in the batteries. It helps to find out the battery back-up period to supply the future demand. The current sensors CS-1 and CS-2 are mounted in the service mains of PV-1 and PV-2 to monitor the PV currents injected to the controllers, while The current sensors CS-3 and CS-4 mounted on the battery terminals of the SCC-1 and SCC-2 to monitor the currents of ES shares with SCC-1 and SCC-2, respectively. The load on both the controllers are supplied separately and monitored by the current sensors CS-5 and CS-6, respectively. All the sensors are connected to the micro-controller (Arduino Mega) and retrieve the values at every one minute. The electronics switches S1–S16 are used to automatically switch ‘ON’/‘OFF’ the building load. The microcontroller executes the control algorithm and creates the digital control signal in the form of ‘0’ and ‘1’ to actuate the electronic switch to turn ‘ON’/‘OFF’ their respective appliance. The details of the load and their location in the building can be found in the Table 3. The technical specifications of the system components can be found in Table 4.

Fig. 1
figure 1

Conceptual diagram of the proposed DC microgrid

Fig. 2
figure 2

Experiential Setup of DC microgrid (a) Controller, Load and battery Bank, (b) Photovoltaic plant

Table 3 Load Locations in the Building
Table 4 Parameters of Microgrid Components

Demand-Side Management Algorithm

The flow chart of the proposed control algorithm for the demand-side management system is shown in Fig. 3. The PV feed the maximum power to the microgrid irrespective of the demand at different time instants. The monitoring of the PV generation, load and storage is done. The control objective of the DSM scheme is to maximize the direct use of PV power and maintain the SOC of the battery bank to supply the future load of the building. Therefore the proposed scheme schedules the deferrable loads (washing machine and pump) in this manner so that they operate directly by the PV power without affecting the consumer comfort. This reduces the charging/discharging of the battery and improves the efficiency of DC microgrid. The controllable loads such as tube lights are switched ‘OFF’ and the refrigerator operates with the ‘control cycle’ mode to reduce the building demand and increase the charging or decrease the discharging of the battery bank to achieve the desired SOC as soon as possible. The desired SOC shows the minimum requirement of stored energy in the battery to supply the future load during PV outage or generates a small amount of power as compare to the load. The proposed DSM scheme is explained in more detail by the following discussion.

Fig. 3
figure 3

Flowchart of control algorithm for demand management

When PV acts as an outage source and battery supplies the load, therefore, the SOC level of the BB decrease at every time instant. As the battery SOC deficits from the desired level, the critical loads (i.e. LED bulbs and fans) remains ‘ON’ and refrigerator operates with ‘control cycle’ (i.e it remains switch ‘ON’ for 15 minutes instead of 30 minutes and it remains switch ‘OFF’ for 80 minutes in a cycle). Besides that other, the load gets switched ‘OFF’. In this way, the discharging rate of the battery bank is decreased and battery maintained its desired SOC. When the PV starts generation and the battery SOC is less than its desired level than battery start charging. The surplus PV generation supplies the building load. If the PV surplus generation is less than the building demand besides that the difference of desired time (t d ) and appliance ‘ON’ time (t r ) is greater than or equal to the difference of termination of task (t t c ) and decision instant (t d i ) than the deferrable load is ‘ON’ while the refrigerator operates with ‘control cycle’ and other non critical loads gets switched ‘OFF’. The priority of the deferrable load is based on the desired ‘ON’ time of the loads to complete the task. For example, at the time instant 10:00 hrs, the PV plants produce approximately 90 watts of the surplus power, which activates the controller to switch ‘ON’ the deferrable load. While the status of the deferrable loads is as; the washing machine (70 watts) should run for 90 minutes up to 13:00 hrs to wash the cloth as per the consumer desires (instructions), and pump (80 watts) must run for 30 minutes to 10:50 hrs. The difference of the decision time instant and task terminations time instants are 180 minutes and 50 minutes for washing machine and pump, respectively. It verifies that the pump has more priority than the washing machine, therefore pump gets switched ‘ON’.

When the PV generation is greater than the building demand (i.e. demand of critical and non critical loads including with deferrable loads) and the decision instant belongs to the task slot of the deferrable load its task is not completed therefore the deferrable load remain ‘ON’ and the surplus PV power feed to the battery. On the other hand, if the decision instant does not belong to the task slot of the deferrable load then it remains switch ‘OFF’.

Results

The actual hardware of an autonomous DC microgrid has been built to validate the feasibility of the proposed demand-side management (DSM) scheme for the autonomous DC microgrid of the building. The photovoltaic (PV), battery bank (BB) and load are connected to the unipolar DC distribution system. The two solar charge controllers (SCCs) are connected in parallel to connect the PV plant with the DC microgrid. The SCCs has three terminals to connect with the PV plant, battery, and load. The BB terminals of both the SCCs are connected to each other via BB bus. This type of connection between BB terminals connects the batteries in parallel and provides the common point of connection to both the SCCs to connect with the BB. The beauty of these connections is that the BB can store the surplus power of both the SCCs and supply their surplus demand. The DC bus Power can be expressed as:

$$ \sum\limits_{j=1}^{n_{a}} {P_{aj} (t)=} \sum\limits_{j=1}^{n_{pv}} {P_{pvj} (t)} \pm \sum\limits_{j=1}^{n_{b}} {P_{bbj} (t)} $$
(8)

where P b b j is the power of j th battery and n b is the number of batteries, P p v j is the power of j th PV array and n p v is the number of PV arrays, P a j is the power consumption in j th appliance and n a is the number of appliances.

In this paper the DSM scheme is compared with the conventional scheme. In the conventional scheme, there is no feedback to switch ‘ON’ and ‘OFF’ the appliances (i.e. without demand side management). Therefore, the deferrable load does not shift their operating time from non sunny hours to sunny hours while the cycle based load operates in the regular cycle mode. The building demand curve with the conventional scheme, proposed DSM scheme, and the PV power generation for a typical day are shown in Fig. 4.

Fig. 4
figure 4

Power curve of PV generation and building demand with conventional scheme and proposed DSM scheme

The peak demand of the building is 297 watts and 285 watts with a conventional scheme and proposed DSM scheme, respectively. The building peak demand with the conventional scheme is 297 watt during 7:21–7:30 hrs time interval (non-sunny period) and it is supplied by the battery, while the proposed DSM scheme reduces the building demand upto 215 watts in this time interval because the deferrable load water pump has been switched ‘OFF’. In the sunny hours, the building peak demand with the proposed DSM scheme is 285 watt during 17:47-17:50 hrs, while the building peak demand with conventional scheme is 120 watt during 17:30-18:20 hrs. The proposed DSM scheme has a lower demand as compared to the conventional scheme during the PV act as outage source or PV generation is less than the building demand and the load are supplied by the battery. It verifies that the proposed DSM scheme shifts the building demand from non-sunny hours to sunny hours. The DSM scheme also reduces the BB charging/discharging power (rate) as compareed to the conventional scheme as shown in Fig. 5. This is the one cause of battery heating, poor health and short life [5]. It verifies that the proposed DSM scheme keeps the battery cool, healthy and increase their life as compared to the conventional scheme.

Fig. 5
figure 5

Battery power sharing with DC microgrid

Mode I: Battery as Source (Regular Operation)

The state of charge (SOC) of the battery gives the information about the energy stored in the battery to supply future load. The desired SOC of the battery represents the minimum energy required to supply the load. At the starting of the day, at time instant 0:00 the desired SOC level is 49.5 % to supply the future load of the building while both conventional scheme and proposed DSM scheme has 50 % SOC level as shown in Fig. 6. This is the reason, the proposed DSM scheme keeps the load pattern as per the conventional scheme. The battery supplies the same load with conventional and proposed DSM scheme during 0:00-05:59 hrs time interval as shown in Fig. 5.

Fig. 6
figure 6

State of charge of battery bank

Mode II: PV and Battery as Source (Deferrable Load Scheduling)

During early morning, the PV generation is lower than the demand and most of the load is supplied by the battery. For example, at time instant 6:00 hrs, the pump is switched ‘ON’ with the conventional scheme which is the cause to achieve lower SOC than the desired SOC with the conventional scheme during 6:00-6:30 hrs time interval as shown in Fig. 8c by the red line. While the pump task completion instant is 10:50 hrs and operating time to fill the tank is 30 minutes. Therefore, the pump has to run for 30 minutes to complete their task before the 10:50 hrs. The proposed DSM scheme keeps critical and another controllable load (as per Fig. 7) connected as per conventional scheme and waits to switch ‘ON’ the pump for the time interval in which surplus PV generation is higher than the combination of critical load and pump load. As the PV generation is higher than the critical load of the building at time instant 10:10 hrs the pump is switched ‘ON’ and remains ‘ON’ to 10:40 hrs (for 30 minutes) and the surplus PV power is stored in the battery as shown in Fig. 5.

Fig. 7
figure 7

Controllable load (LED bulb) mounted in (a) bed room-1, (b) bed room-2, (c) living room, (d) kitchen

Similarly, at time instant 7:00 hrs, the washing machine is switched ‘ON’ with the conventional scheme and remains ‘ON’ during 7:00-8:30hrs time interval as shown in Fig. 8b by a red line, which is the cause to achieve lower SOC than the desired SOC with a conventional scheme during 7:00-8:30 hrs time interval as shown in Fig. 6. While the washing machine task completion time is 12:30 hrs with 90 minutes the operating time. The proposed DSM scheme keeps the washing machine at the second priority and shifts the washing machine operating time from 7:00–8:30 hrs to the future. As the PV generation at 10:41hrs becomes higher than the building demand (critical load and deferrable load washing machine), the washing machine is switched ‘ON’. At time instant 10:59 hrs, the PV generation becomes lower than the building demand (critical load and deferrable load washing machine) and remain lower upto 11:04 hrs so the washing machine remains switch ‘OFF’ during 10:59-11:04 hrs while the battery is charged by the surplus power to achieve the BB SOC higher than the desired . As the washing machine operation time is 90 minutes and it runs only for 18 minutes so it has to be switched ‘ON’ again to complete the task as the PV generation becomes higher than demand at time instant 11:05 hrs washing machine is switched ‘ON’ and remains ‘ON’ to 12:18 hrs to complete the task as shown in Fig. 8b by blue line.

Fig. 8
figure 8

Control of cycle based and deferrable load (a) refrigerator, (b) washing machine, (c) water pump

Mode III: PV with Low SOC of BB (Control of Non-Critical and Cycle Based Load)

During 12:16–17:40 hrs time interval, the PV generation is greater than the building demand, but the battery SOC is lower than the desired with the conventional scheme. The proposed DSM scheme reduces the building demand by switching ‘OFF’ the controllable loads (LED bulbs mounted in bedroom-1, bedroom-2, living room and kitchen as shown in Fig. 7a, b, c and d by blue lines), and cycle based load (refrigerator) operate with the control cycle mode (i.e it remains switch ‘ON’ for 15 minutes instead of 30 minutes) as shown in Fig. 8a by a blue line.

Mode IV: PV and SOC Higher (Pre-Scheduling of Deferrable load)

During 17:41-18:10 hrs time interval, the PV generation is higher than the building demand (demand with a conventional scheme and future deferrable load i.e. pump) and the battery SOC is higher than the desired. Additionally, the task starts and completion time limit (evening time) for the pump is 17:30–19:30 hrs and the operating time is 30 minutes. The proposed DSM scheme switches ‘ON’ the pump at the time instant 17:41 and keeps it ‘ON’ during 17:41-18:10 hrs as shown in Fig. 8c. The surplus PV generation is stored in the battery.

The cost of a power sources for the autonomous DC microgrid can be found in Table 5 with the conventional scheme and demand side management scheme for an energy demand of 2.7 kWh/day. The size of the PV and battery bank are calculated by referring the Eqs. 4 and 5. The testing shows that, customers achieve 32.62 % total system cost saving with the DSM scheme as compared to the conventional scheme. There is 36.36 % savings in the cost of PV source while the saving in battery cost is 25 %.

Table 5 Description of PV and Battery Bank and Their Costs

Discussion

It is clear that the DC microgrid in residential building with DC appliances and renewable energy resources (DC power sources) provides the significant energy efficiency as compared to the traditional AC system. There are many challenges to be addressed for implementation of the demand-side management system in real time. One challenge is the monitoring of the energy level in the battery at every time instant. The open circuit voltage based state of charge (SOC) (i.e battery energy level) estimating scheme is required 3−4 hours rest time to monitor the SOC of the battery which is not possible in real-time applications. The proposed scheme monitors the SOC using coulomb counting method because of its simplicity and accuracy.

Other challenges are the availability of the hardware components in the market and their cost is another challenge. The cost of the DC appliances is not standardized. To achieve the battery SOC at the desired or higher level and shifting the deferrable load to the sunny hours are the great challenge in autonomous DC microgrid. The inclusion of the control to the controllable loads such as LED bulbs and cycle base load (refrigerator) makes it more robust and reliable in case of sunny as well as in the case of non-sunny hours. The proposed DSM scheme utilizes the PV energy in a very smart way and makes it more energy efficient.

Conclusions

This paper has presented a demand-side management (DSM) scheme for the autonomous DC microgrid of a residential building. The appliances have been automatically switching ‘ON’/‘OFF’ as per the control algorithm. The performance of the DSM scheme has been tested in terms of efficient utilization of the PV energy by scheduling the deferrable load from non-sunny hour to the sunny hours. It also monitors the battery state of charge (SOC) and keeps it close to the desired level. The proposed DSM system switches ‘OFF’ the controllable appliances (LED bulbs) and shifts the cycle based load (refrigerator) from regular cycle mode to the control cycle mode. The peak demand of the building during sunny and non-sunny hours has also been reduced significantly. The energy exchange band of the battery and the capital cost of the system have been reduced in proposed DSM scheme significantly as compared to the conventional scheme. The proposed scheme can be used for LVDC microgrid such as building with renewable energy resources and data centers.