Core Concept Engineering and Technology Published: November 19, 2025

How Computers Can Help Create Solar-Powered Communities

Abstract

Around 700 million people around the world do not have any electricity, and there are many more that only have access to electricity some of the time. Many of these people live in places that are hard to reach, and solar (photovoltaic) panels are a good way for them to get electricity. However, installing new solar panels can be expensive. Knowing how much electricity people need, and how much they might need in the future, is important to make sure that the right number of solar panels are installed, and in the right places, so that nobody goes without electricity. In this article, we discuss how openly available computer programs can help us to work out the best way for these communities to receive electricity.

What is a Solar Mini-grid?

You are likely reading this article on a screen. It might be on a tablet, phone, or laptop, but it is still a screen that needs electricity. This electricity either comes from a battery that you charged earlier, or from an outlet socket. But where does the electricity in your outlet socket come from? It is very likely that the electricity that’s powering your screen was generated far away and traveled through a network of cables, known as a national grid, before reaching you. Over 99% of the world’s population gets their electricity this way, but there are still over 670 million people without access to electricity throughout the world, with over 500 million of them living in Sub-Saharan Africa [1].

One way that people in remote places can access electricity is by using a mini-grid. A mini-grid is a small version of the national grid: it connects a source of electricity, like solar panels, to people who need it in houses, businesses, or public spaces like libraries or street lights. Whereas a national grid might supply a whole country, a mini-grid is a lot smaller and may supply around a few hundred people with electricity. Mini-grids can also operate in remote places that do not have a connection to the national grid. A schematic of a mini-grid network is shown in Figure 1. You can see potential users of electricity such as schools, farms, homes, and hospitals.

Illustration depicting interconnected themes of quality education, sustainable agriculture, power production, access to clean energy, and good health. Icons above buildings symbolize these concepts: a book, a tractor, solar panels, light bulbs, and a medical cross, respectively. Solar panels produce and store power, benefiting community infrastructure.
  • Figure 1 - A schematic of a solar mini-grid.
  • Photovoltaic panels (in the middle of the picture) generate electricity from the sun. Batteries store this electricity before distributing it when it’s needed through a network of cables (shown in orange) throughout the community. Mini-grids can help power hospitals (on the right) and schools (on the left) to help with the United Nations’ Sustainable Development Goals (SDGs) 3 and 4. Mini-grids can provide electricity for people’s homes (helping with SDG 7), and can provide the electricity farmers need for watering and storing their crops (helping with SDG 2) [2].

Many people without access to electricity live in very sunny places where using solar panels is often the cheapest way of producing electricity. Solar panels that produce electricity are called photovoltaic (PV): they take in energy from the sun (the “photo” part) and produce electricity (the “voltaic” part). Mini-grids can be powered by lots of different technologies. Mini-grids can use generators which burn fossil fuels (such as diesel) or can use renewable technologies like solar panels, wind turbines, or hydropower. A solar mini-grid is a mini-grid which is mostly powered through solar panels.

Renewable electricity is not always available when people need it. For example, solar panels rely on the sun to generate electricity, and so they do not work at night! Because people may want electricity when it is not being generated, mini-grids normally have some way to store electricity. Usually, mini-grids store electricity for later in electric batteries. This lets people use electricity when they want it, even when it is not being generated.

In some countries, people may already have access to electricity through their national grid. However, the grid may not always be able to supply everyone with as much electricity as they want. This can be for many reasons: sometimes old parts of the network break down, and sometimes there are simply more people who want electricity than the national grid can provide. Using batteries means that mini-grids can provide electricity around the clock (In places where the weather is less predictable, it might not be very sunny for several days in a row. In these places, a mini-grid might need more batteries so that it can store enough electricity to last for several days). Mini-grids can therefore provide communities with electricity in places where the national grid cannot provide enough electricity for everyone. This can ensure houses have all of the electricity that they need, help businesses to grow, and make sure that essential activities (like schools and hospitals) can function properly.

Why do Solar Mini-grids Matter?

Around the world, most people who do not have access to electricity live in rural areas. Figure 2 shows a map of Sub-Saharan Africa (the region of Africa which is south of the Sahara Desert). The map on the left (Figure 2A) shows the extra people (some of whom have not been born yet) who will need access to electricity by 2035 (This is in addition to those who already do not have access today!). These rural areas are often remote, making it difficult for the national grid to reach them. In the map on the right (Figure 2B), the areas in blue are those where the cheapest way to provide electricity is through solar power. Areas that are close enough to the national grid for the grid to be the cheapest way to provide electricity are colored in purple, and areas where diesel generators are the cheapest are colored pink. Around half the people getting new access to electricity by 2035 live in the areas colored purple, and so will get connected to the national grid. In most of the remaining areas, solar mini-grids are the cheapest option.

Map a (on the left) shows population density for the additional population without access by 2035 with a colour scale from purple (low, 0) to yellow (high, 80,000). Map b displays the optimum energy distribution for a  given pathway, with blue for photovoltaic (PV), red for diesel, and purple for grid lectricity.
  • Figure 2 - Maps of Sub-Saharan Africa: (A) the additional number of people who will need access to electricity by 2035; and (B) the best way of supplying those people with electricity, whether using solar PV systems (in blue), diesel-powered systems (in pink) or extending the national grid (in purple).
  • 25% of the new population’s electricity is met by solar PV panels, 26% by diesel systems, and 49% by the national grid. Reproduced under CC-by 4.0 [3].

Providing electricity through a mini-grid can help improve a community’s quality of life beyond just providing electricity. The United Nations set out a series of goals to be achieved by 2030, called the Sustainable Development Goals (SDGs) [2], which set targets for human development such as climate action, reducing poverty, and improving education and healthcare. Electricity from a solar mini-grid can have impacts across some of these other SDGs beyond providing electricity (Figure 1). For example, providing electricity for schools helps with SDG 4, which focuses on “quality education” and “lifelong learning”; providing electricity for agriculture can help achieve “food security”, the aim of SDG 2; and providing electricity for hospitals and health centers helps with SDG 3, which focuses on “healthy lives” and “wellbeing”.

Replacing existing energy sources with a solar mini-grid can bring additional benefits. Communities that do not have electricity often use wood or charcoal fires for cooking. These fires produce harmful smoke which can damage people’s lungs. Some people in these communities could use electricity rather than firewood or charcoal to cook meals which can reduce pollution and help improve their health. Some people without electricity use kerosene for lighting (Kerosene is a fossil fuel used in old-fashioned lamps as well as airplanes). Burning kerosene releases dangerous fumes. A solar mini-grid can provide clean electricity for lighting homes to make people more comfortable, as well as make it easier to study, work, and spend time together.

How Can Computers Help?

Before installing a mini-grid, there are lots of questions that need answering. For example, should batteries or diesel generators be used to provide electricity through the night? Or how many of each component should be installed? Choosing the right technology can depend on lots of factors, such as how sunny a place is, how much electricity people need, and when they need it. Often, the best solution might even be a mix of different technologies to make sure that everyone has enough electricity when they need it.

Although solar electricity is becoming cheaper and cheaper, mini-grids are still expensive for the communities who need them. This is because the money needed for the equipment must be paid for over many years. It is important to design the mini-grid just right so that it meets the community’s needs, helps their economy to grow, and is financially sustainable. Computer models can help to design the right system.

Governments, NGOs, companies, and anyone else who might be interested in building a mini-grid will want answers to these questions before they start building. Computers with speciliast software can help us answer these questions because they can let us explore lots of technical questions quickly (like estimating how much electricity will be generated by a solar panel). Figure 3 shows some of the input information needed to run these computer models and some of the information that comes out.

Diagram illustrating factors in an energy-system model. Inputs to the model on the left include weather, demand, and components. A central computer processes these inputs. Outputs on the right are cost, emissions, and technology comparison.
  • Figure 3 - An infographic showing how computer models can help researchers and members of the public to answer questions about mini-grids.
  • Computer models take in information about the community that needs investigating and output useful results. Information that goes into the models might include the weather (how sunny it is), the electricity needs (or “demands”) of the community, and information about the various pieces that will make up the mini-grid. Models can then calculate things like the costs and carbon footprint of mini-grids, as well as help answer questions like whether solar or diesel power is the best.

Mini-grids are not the best choice to get power to everyone in the world. Some countries have more sun than others and may have lots people living in rural places without power. In these countries, a solar mini-grid is a good solution. In other countries, a different type of renewable energy might be cheaper, like wind power. Using a computer model can help us to work out whether a solar mini-grid is likely to work well in a given place, or whether something else might work better, like a wind turbine.

Final Thoughts

Solar mini-grids can benefit communities by providing clean and affordable electricity (one of the United Nations’ SDGs) as well as other benefits like powering water pumps for drinking water or irrigating crops. By providing people with electricity, mini-grids can help improve people’s quality of life, power schools and hospitals, and reduce pollution released by burning fossil fuels. Computer models are a useful tool in determining whether mini-grids are the right solution for communities and how best to go about installing them.

Glossary

National Grid: A much larger network that connects people who need electricity to electricity sources. Unlike a mini-grid, a national grid is large and connects together a whole country.

Mini-grid: A network which connects a source of electricity (like solar power) to users (like houses, businesses and industries) using cables. Mini-grids usually generate all of their own electricity.

Photovoltaic: Photovoltaic panels are solar panels that convert sunlight (photo-) into electricity (voltaic). This makes them different from solar panels that heat up water.

Solar Mini-grid: A mini-grid which gets most of its electricity from solar panels. It may use batteries or a diesel generator as a backup source of electricity.

SDG: The “Sustainable Development Goals (SDGs)” are targets for improving people’s lives around the world by 2030 [2]. They cover things like eliminating poverty, supporting gender equality, and protecting natural habitats.

Computer Model: A piece of software that runs on a computer and which helps answer questions about something in the real world without needing to build anything or carry out experiments.

NGO: A “non-governmental organization” aims to help people first and make money second. You may have heard of: WaterAid, Greenpeace, or Médecins Sans Frontières.

Acknowledgments

This work was supported by the UK Engineering and Physical Sciences Research Council (EPSRC) [grant numbers EP/R045518/1 and EP/X52556X/1] and the UK Natural Environment Research Council (NERC) [grant numbers NE/S007415/1 and NE/R011613/1]. The work was also supported by the Royal Society under an International Collaboration Award 2020 [grant number ICA\R1\201302]. BW and HB would like to gratefully acknowledge the support of NERC and the Grantham Institute– Climate Change and the Environment for Ph.D. scholarships. JN thanks the Royal Society for the award of a Research Professorship and the European Research Council for award of an Advanced Grant (grant no. 742708, CAPaCITy). The authors would also like to thank UK company Solar Flow Ltd.

AI tool statement

The author(s) declare that no Gen AI was used in the creation of this manuscript.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Conflict of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.


References

[1] International Energy Agency (IEA), International Renewable Energy Agency (IRENA), United Nations Statistics Division (UNSD), World Bank, World Health Organisation (WHO). 2023. Tracking SDG 7: The Energy Progress Report. Available online at: https://www.irena.org/Publications/2023/Jun/Tracking-SDG7-2023 (Accessed October 30, 2025).

[2] United Nations (UN) General Assembly. 2015. Res. 70/1. Transforming our World: The 2030 Agenda for Sustainable Development. Available online at: https://www.refworld.org/docid/57b6e3e44.html (Accessed October 30, 2025).

[3] Beath, H., Mittal, S., Few, S., Winchester, B., Sandwell, P., Markides, C. N. et al. 2023. Carbon pricing and system reliability impacts on pathways to universal electricity access in Africa. Nat. Commun. 15:4172. doi: 10.1038/s41467-024-48450-7