How solar panels convert sunlight into electricity
A solar panel turns sunlight into electricity when light energises electrons inside a solar cell and the cell’s built-in electric field directs those electrons into a circuit. This is the photovoltaic effect. The electricity that first leaves the panel is direct current, or DC, because it flows in one direction. An inverter then converts that DC into alternating current, or AC, so it can be used by household electrical systems, shared with a grid where allowed, or managed by other equipment in the solar system.
What the photovoltaic effect does
Sunlight is made of photons, which are small packets of light energy. When a photon reaches a solar cell, it can pass its energy to an electron in the cell’s semiconductor material. A semiconductor is a material that can conduct electricity under the right conditions.
If the photon gives the electron enough energy, the electron can move away from its usual position. That movement matters because electricity is the controlled movement of charged particles. A solar cell is not useful just because electrons are disturbed. It is useful because its structure gives those electrons a preferred path.
The panel also needs an external circuit. When the circuit is connected, electrons can flow out through wires, do electrical work, and return to the cell. The panel keeps supplying current while enough light reaches it and the circuit can accept the power.
Why the p-n junction matters
The part that gives a solar cell direction is the p-n junction. It forms where a p-type semiconductor region meets an n-type semiconductor region. The n-type side has electrons that are easier to move. The p-type side has “holes”, which are places where electrons can move into.
At the boundary between these regions, the cell develops an internal electric field. Think of it as a built-in separator. When light frees an electron, the field helps push electrons one way and holes the other way. This separation reduces the chance that the electron simply settles back before it can do useful work.
That is why the p-n junction is central to a solar cell. Light supplies the energy, but the junction gives the charge carriers direction. Without that internal push, the cell would absorb light without producing a steady, usable current.
From panel output to usable power
Solar panels produce DC electricity. That is suitable for some devices and for charging batteries, but many buildings and electricity grids use AC. AC changes direction as part of how mains power systems are designed and distributed.
An inverter sits between the solar panels and the AC side of the system. Its job is to reshape the panel’s DC output into AC that matches the electrical system it connects to. In a grid-connected system, the inverter also has to stay synchronised with the grid and operate within safety limits. In an off-grid system, it helps provide stable AC for connected loads.
The basic chain is simple: sunlight releases charge inside the solar cells, the p-n junction separates and directs that charge, the circuit carries DC electricity away from the panel, and the inverter converts that electricity into AC where AC is needed.
Questions people ask
Convert english to sinhala?
සූර්ය පැනල් විදුලිය නිපදවන්නේ හිරුඑළියේ ෆෝටෝන සිලිකන් සෛලවලට වැදී, ඉලෙක්ට්රෝන නිදහස් කර විදුලි ධාරාවක් ඇති කිරීමෙනි. මේ ක්රියාව ප්රකාශ-වෝල්ටීය බලපෑම ලෙස හැඳින්වේ. නිදහස් වූ ඉලෙක්ට්රෝන පැනලයේ පරිපථය හරහා ගලා යන අතර, එම විදුලිය නිවසක උපකරණ ක්රියාත්මක කිරීමට හෝ බැටරියක් ආරෝපණය කිරීමට භාවිතා කළ හැක.