Renew. Energy Environ. Sustain.
Volume 7, 2022
Achieving Zero Carbon Emission by 2030
Article Number 8
Number of page(s) 7
Published online 06 January 2022

© S. Finke et al., Published by EDP Sciences, 2022

Licence Creative CommonsThis is an Open Access article distributed under the terms of the Creative Commons Attribution License (, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

1 Introduction

The access to electricity is a significant factor in human development. Nevertheless, there is an extreme undersupply of electricity in sub-Saharan Africa, where around 580 million people have no access to electricity [1]. In addition, electricity systems in this region often cannot provide a stable and reliable electricity supply and face problems like low efficiency and high costs. To provide electricity to smaller or remote communities, off-grid options such as mini-grids are required. Without such solutions, the commitment of universal access to electricity stated in the Sustainable Development Goals (SDGs) is unlikely to be reached [2].

Mini-grids are a stand-alone network of several electrical energy generators, storage devices and loads. Due to the mostly decentralized generation of electricity from renewable energy sources, decentralized network structures are often appropriate. Chemical energy storage devices in the form of accumulators are normally used due to the volatility of renewable resources. While a mini-grid typically has the capability of operating independently, a connection to the main national grid is possible. This connection can be switched on or off, following economic or technical reasons. Mini-grids are a proven way to reduce the costs of energy generation compared stand-alone generators. Investment as well as operation and management costs can be reduced by using available components more efficiently. Operational and management costs can be reduced due to the bundled installation and maintenance of components [3]. Current mini-grids as well as the main electricity grid are usually controlled by a central instance, responsible for metering and billing of the consumed electricity. This hinders the connections of existing solar home systems to mini-grids, particularly in the case when the solar systems belong to different persons or institutions. There are some approaches in the sub-Sahara Africa seeking to overcome these issues. However, none of them are tackling all of the above-mentioned issues in one approach [4]. This paper proposes a novel technical solution for a smart decentralized mini grid to overcome the shortfalls of conventional mini-grids.

1.1 Case study: the don bosco solar training center in tema, ghana

On the premises of the Don Bosco Solar and Renewable Energy Training Center in Tema, Ghana, the power distribution connects thirteen buildings, forming the Don Bosco Ashaiman mini-grid. Eight of these building are consumers connected to the mini-grid. Five buildings have a total of 114 kWp photovoltaic (PV) generator power installed and are considered prosumers, a combination of producers and consumers. Three of these prosumers are equipped with a battery storage of 248 kWh in total. All the produced electricity is fed into the local mini-grid. A connection to the utility grid exists to ensure the operation of the mini-grid in times of low solar irradiance. The power storage is dimensioned for an autonomy of one night. A diesel generator is available as an additional safety measure, to provide electricity in case of grid outages during times of low solar irradiance. Currently the campus has an electricity self-supply rate of 85%. The operator's long-term goal is to be 100% self-sufficient. Possible measures to achieve self-sufficiency are an increased battery storage to raise autonomy time as well as the implementation of a smart mini-grid with an intelligent and fully automatic demand side management system. Figure 1 shows a campus map and the current mini-grid layout.

thumbnail Fig. 1

Sketch of the Don Bosco mini-grid.

2 Towards a smart mini-grid

The first step towards a smart mini grid is the collection of all relevant data within the network.

In order to collect the relevant data one smart meter per building is required. Additionally, the installation of smart meters is necessary at all the six national grid connection points and at the available diesel generator, respectively. Due to the size of the campus, the data transmission from the smart meters to a data collection gateway must use wireless connections. Devices implementing the Zigbee protocol [5] are currently being tested for data communication. Direct transmission to a cloud computing service is a possible but not preferred option as prolonged outrages of the mobile phone network could affect the proper functioning of the mini-grid and its load management. It is required to have a secured local internet connection to run the blockchain nodes, the Application Programming Interface (API) servers and the Artificial Intelligence (AI) neural network. Therefore, controllers with deployed applications will be installed in three buildings: The Church, the Provincial House and the Power Room where a local network connection through WI-FI or GSM modem is possible.

The following section describes the conversion of the existing Don Bosco mini grid into a decentralised smart mini-grid.

2.1 Decentralized controllers

The controller is the key component of the smart mini-grid. It stores and executes all data, smart contracts and algorithms. The system architecture around the mini-grid controller including the API and the database is depicted in Figure 2.

The functionality of the mini-grid controller must be considered in two different cases. The functionality depends on whether it has an internet connection to communicate with cloud servers or not. The smart mini-grid must be operational regardless of the internet availability.

thumbnail Fig. 2

Mini-grid controller data collection and command distribution.

thumbnail Fig. 3

Centralized solution and blockchain.

2.1.1 Offline mode

In the offline mode, the connection to the cloud service depicted in Figure 2 is interrupted. In case of an unstable internet connection, all data must be securely stored locally. Furthermore, the controller must be able to maintain all functions of the mini-grid in the offline mode. Hence, it is the system's default mode. To provide the possibility to operate the network offline locally, each controller is running a blockchain node. Controllers store the data collected from the mini-grid and data related to energy management, sending it directly into the blockchain node with indexing. Indexing will help to query the data quickly and to have a real-time overview of the status of the network. As all controllers create a copy of blockchain ledger, the reliability of the blockchain algorithm is ensured.

2.1.2 Online mode

The online mode is an extra layer on top of the developed system architecture. In addition to the offline mode, it provides external access to the smart mini-grid network for users through the client application. Hence, a cloud gateway, API and database are required to run the system online. After the data has been evaluated on the blockchain node locally, the data is transmitted to the cloud database. The API server will synchronise the databases regularly in order to avoid too many calls to the internet.

2.2 Smart contracts via blockchain technology and artificial intelligence

2.2.1 Blockchain

Blockchain sees more and more use cases as a backbone technology for peer-to-peer (P2P) energy trading projects nowadays [6]. The goal of these is the creation of a decentralized, secured system with a highly scalable network as shown in Figure 3, to provide reliable and sustainable power [7]. With the smart mini-grid solution proposed in this paper, it is possible to track energy production and consumption precisely and transparently using an automated P2P energy sharing management tool.

Blockchains combine concepts of P2P networks, asymmetric cryptography, decentralized computing, and smart contracts into a new technology platform [8]. The immutability and transparency of blockchain transactions play a critical role in the decentralized ecosystem architecture.

2.2.2 Decentralized governance

The here described smart mini-grid solution differs from a general mini-grid model in terms of its decentralization. All data created and used for energy sharing management will be stored in a distributed way, meaning that the network will contain several nodes and each node participating in the network receives and maintains a copy of the database, the blockchain ledger, synchronously.

An increased number of nodes participating in the network enhances data distribution as each node receives each transaction information. This pattern decreases the risk of data loss, which is critical for P2P energy network.

2.2.3 Immutability

One of the specific advantages of the blockchain is that the data can only be added, updated into the storage, but not deleted [9]. Every data update or change results in a new data production event which combines previous and new data into a block on the blockchain. Hence, existing data cannot be altered or deleted. Furthermore, historical data can be fully traced. By using this pattern, the data regarding power generation and consumption of each unit on the mini-grid can be verified, resulting in a high tamper resistance and trust between operators and users.

2.2.4 Smart contracts

Smart contracts are agreements in the form of executable programmes in the blockchain which provide a high degree of trust, due to their self-enforcing nature [10]. Smart contracts can replace the trusted third parties in an agreement [11] and thereby reduce transaction costs [12]. The utilisation of smart contracts can enact agreements for energy transfer processes, where important actors are usually located within different organisations [10]. With the smart contracts, the energy management platform can provide total automation of all business flows for users, such as buying power based on some conditions and stop buying if the conditions are not met.

Because all recorded transactions on the blockchain are time stamped, it is elementary to track changes and modifications on the blockchain in the past. The traceability of all records that exist on a ledger provide assurance and authenticity to all the participants on the network.

2.2.5 Artificial Intelligence

Artificial intelligence is one of the leading digital disruption technologies [13]. Together with blockchain and the Internet of Things (IoT) it is touted to innovate almost every industry [13]. Blockchain and AI are used e.g., to upgrade the traceability of logistics [14].

Blockchain combined with AI is playing a crucial role for creating much more efficient solutions. Both, energy providers and consumers can thus predict energy production and portfolio consumption inside the network. Artificial intelligence digital solutions play an integral role in predicting the aforementioned. Enabling a level of forecasting offers a solution that increases the accuracy of supply, demand and prices which is a prerequisite to improve energy infrastructure and automate consumption workflow.

2.3 Load management

An important pillar of a smart mini-grid is the load management, as the automatic control of appropriate electrical loads in a power network.

In a PV power system there is a shift between the power production at daytime and the consumption, distributed over the entire day and night. A battery storage is used to store excess solar energy produced during the day and to make it available to serve the loads during night time or when the power provided by the solar generator is not sufficient [15].

Through load management, the power consumption is shifted as much as possible into times of power production. The goal is to smooth the consumption curve, making the power production and consumption synchroneous as far as possible. Hence, there is a reduced need in storage capacity decreasing the overall system cost and the environmental impact.

The purposes of load management are:

  • Shaving of peak loads.

  • Stabilization of the network frequency.

  • Optimal use of fluctuating decentralized energy sources.

The prerequisites for this on the technical side are:

  • The presence of communication-capable and controllable loads.

  • A network of measuring devices that adequately describes the state of the mini-grid.

  • A fast and reliable network that distributes the information.

In order to optimise the system, the load management must be automated and relegated by a mini-grid controller that uses an appropriate algorithm to identify the loads to be started or shut down. A manual operation is possible; however, it is unlikely that a mini-grid user will be either willing or capable of continuously manually controlling the loads. With an automated load management, the user or the mini-grid administrator provides the necessary parameters described below once and the mini-grid controller operates the loads by using a defined load management algorithm.

The load management algorithm is triggered by the mini-grid controller following the detection of a shift between power production and consumption in the mini-grid.

Figure 4 depicts the developed algorithm:

The two necessary parameters to start the algorithm are “Grid Status” and “Amount of Energy”. The first differentiation the algorithm makes is between different mini-grid statuses. These describe the status the mini-grid is operating in. Table 1 lists the possible mini-grid statuses:

Different actions are undertaken by the algorithm in dependence of the specific grid status at the time the algorithm is triggered.

The second parameter “Amount of Energy” represents the mismatch between production and consumption and can be positive or negative, depending on whether more energy is produced than consumed and vice versa.

Internally, the algorithm uses a list of flexible loads − loads that can be operated automatically − together with a set of parameters that describe each load. These parameters are listed in Table 2.

Furthermore, each load has a defined status category which describes in which grid status the load can be operated, e.g., in which grid status the load can be switched on and off.

These categories are:

  • The load can always be switched off if necessary.

  • The load can be switched off when battery power is used.

  • The load can be switched off if there is no connection to the utility grid.

Based on this inputs, the load management algorithm selects a list of loads that can be switched on or off, depending on the original mini-grid controller detection and sends this list back to the mini-grid controller. The mini grid controller sends a message to the loads in the returned list in order to switch the loads on or off.

thumbnail Fig. 4

Outline of a load management algorithm.

Table 1

Mini-grid status parameters.

Table 2

Load specific parameters.

3 Conclusion

The result of the paper is the above decribed technical layout of a smart mini-grid. The proposed solution makes it possible to achieve a major leap regarding the cost and energy efficiency of solar-powered mini-grids in sub-Saharan Africa. The holistic approach contributes to the transition to an affordable, clean and reliable energy supply by optimising decentralised PV mini-grids towards full-scale self-sufficiency. The first prototype based on the findings in this paper is being installed at the Don Bosco Solar & Renewable Energy Center campus mini-grid in Tema, Ghana and will be operational by the end of 2021. After one year of testing, data collection and improvement it is plann to scale the developed smart mini-grid system to other sites.s.


The research work published in this paper is conducted within the project “MonaL” (16EXI4011A) supported by the Federal Ministry for the Environment, Nature Conservation and Nuclear Safety (BMU). We are also grateful for the important preparatory work of Hannes Harthan, Eike Pachernek, and Pascal Ferkinghoff, who contributed significantly to this paper.


  1. Worldbank. Access to electricity (% of population). Available online: (accessed on 19 March 2021) [Google Scholar]
  2. A.G. Dagnachew, P.L. Lucas, A.F. Hof, D.E. Gernaat, H.S. de Boer, D.P. van Vuuren, The role of decentralized systems in providing universal electricity access in Sub-Saharan Africa − a model-based approach, Energy 139, 184–195 (2017) [CrossRef] [Google Scholar]
  3. S. Rolland, G. Glania, Hybrid Mini-Grids for Rural Electrification: Lessons Learned, Alliance for Rural Electrification (ARE) (2011) [Google Scholar]
  4. Institute for Advanced Sustainability Studies, Exploring the nexus of mini-grids and digital technologies (2019) [Google Scholar]
  5. on 11 November 2020) [Google Scholar]
  6. P. Newman, The rise and rise of renewable cities, Renew. Energy Environ. Sustain. 2, 10 (2017) [CrossRef] [EDP Sciences] [Google Scholar]
  7. C. Zhang, J. Wu, C. Long, M. Cheng, Review of existing peer-to-peer energy trading projects, Energy Proc. 105, 2563–2568 (2017) [CrossRef] [Google Scholar]
  8. K. Sultan, U. Ruhi, R. Lakhani, Conceptualizing blockchains:characteristics & applications, in 11th IADIS International Conference Information Systems, Lisbon, Portugal (2018) [Google Scholar]
  9. K. Košťál, P. Helebrandt, M. Belluš, M. Ries, I. Kotuliak, Management and monitoring of IoT devices using blockchain, Sensors 19, 856 (2019) [CrossRef] [Google Scholar]
  10. L. Thomas, Y. Zhou, C. Long, J. Wu, N. Jenkins, A general form of smart contract for decentralized energy systems management, Nat. Energy (2019) [Google Scholar]
  11. D. Macrinici, C. Cartofeanu, S. Gao, Smart contract applications within blockchain technology: a systematic mapping study, Telemat. Inform. 35, 2337–2354 (2018) [CrossRef] [Google Scholar]
  12. R. Yuan, Y.B. Xia, H.B. Chen, B.Y. Zang, J. Xie, Shadoweth: private smart contract on public blockchain, J. Computer Sci. Technol. 33, 542–556 (2018) [CrossRef] [Google Scholar]
  13. F. Bublitz, A. Oetomo, K. Sahu, A. Kuang, L. Fadrique, P. Velmovitsky, R. Nobrega, P. Morita, Disruptive technologies for environment and health research: an overview of artificial intelligence, blockchain, and internet of things, Int. J. Environ. Res. Public Health 16, 3847 (2019) [CrossRef] [Google Scholar]
  14. B. Teufel, A. Sentic, M. Barmet, Blockchain energy: blockchain in future energy systems, Dianzi Keji Daxue Xuebao/J. Univ. Electr. Sci. Technol. China 17 (2019) [Google Scholar]
  15. S. Bhatti, A. Williams, Estimation of surplus energy in off-grid solar home systems, Renew. Energy Environ. Sustain. 6, 25 (2021) [CrossRef] [EDP Sciences] [Google Scholar]

Cite this article as: Sebastian Finke, Michele Velenderić, Semih Severengiz, Oleg Pankov, Christof Baum, Transition towards a full self-sufficiency through PV systems integration for sub-Saharan Africa: a technical approach for a smart blockchain-based mini-grid, Renew. Energy Environ. Sustain. 7, 8 (2022)

All Tables

Table 1

Mini-grid status parameters.

Table 2

Load specific parameters.

All Figures

thumbnail Fig. 1

Sketch of the Don Bosco mini-grid.

In the text
thumbnail Fig. 2

Mini-grid controller data collection and command distribution.

In the text
thumbnail Fig. 3

Centralized solution and blockchain.

In the text
thumbnail Fig. 4

Outline of a load management algorithm.

In the text

Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.

Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.

Initial download of the metrics may take a while.