I did not study this. I studied chemistry education, and I taught secondary school chemistry in Lagos for two years. Now I am working through photovoltaics from the beginning, on my own, in the evenings, while I apply for Master's programmes.
This page is the whole thing. The plan I am following, where I am in it, what I got wrong, and the things I built to understand it. Nothing here is locked. If you want to follow the same plan, everything you need is on this page.
Phase 0, day 3. Still deciding whether I actually need calculus.
Phase 1, day 9. Doping finally made sense this morning.
RIGHT NOWReading about why perovskites fall apart in sunlight.
01
The crystal
RUN 001 · NUCLEATED 2026-08-01
MY RUN
DAY OF THE RUN1
PHASE I AM ON2
YOUR CRYSTAL
ATOMS0
DEFECTS0
PHASE0
GROWTHnot started
Drag it to turn it round, or give it focus and use the arrow keys.
That crystal is yours, not mine, and it is empty because you have just arrived. Every topic you tick off in the plan adds atoms to it. Every topic you mark as one that fought you leaves a defect in the lattice, and the defects do not go away. You can hover one to see what caused it.
I had this the wrong way round for a while. The page said the crystal was mine while the code was quietly drawing yours, so it sat there at zero atoms next to a note saying I was on phase two. Two people's numbers in one readout is worse than a stale one, so they are separated now. The top two lines are mine. Everything under them is yours.
Crystals grown on Earth come out flawed because they grow in bad conditions. Convection stirring the solution, gravity pulling everything down, nothing ever still. Grow the same crystal in microgravity and it comes out clean. Mine has defects in it because I learned this on a school laptop, in the evenings, after teaching all day. Imperfect conditions.
02
The plan
Eight phases, in order. I wrote the first version of this before I knew what I was doing, and I have edited it twice since. The corrections stay visible, because a plan that never changed was never a real plan.
Your ticks are yours. Nothing is sent anywhere, and you can export them at the bottom.
03
The calculation bench
Every bit of maths on this page is a piece of chemistry wearing a different hat. I could not make logarithms stick until I stopped treating them as maths.
Why the pH scale is logarithmic
Drag the concentration. Watch what the linear scale tries to do, and what the log scale does instead.
Before you drag it. What happens to the linear bar when concentration gets very small?
[H+] = 1.0 × 10-7mol dm-3pH = -log10[H+]pH = 7.00
Linear scale
Readable.
pH scale
Always readable, from battery acid to drain cleaner.
FIG · Linear and logarithmic representation of the same quantity.
Show the working
WHAT IS COMPUTED
// pH is nothing more than this, and the slider walks it.
conc = Math.pow(10, -pH); // mol per cubic decimetre
// The linear bar is that concentration as a share of 1 mol dm-3.
// That is the entire demonstration: at pH 3 it is 0.1 percent of
// the bar and there is nothing left to look at.
linearWidth = conc / 1 * 100; // per cent
// The log bar is the same number, positioned by pH instead.
logPosition = (14 - pH) / 14 * 100;
WHAT THIS ASSUMES
Concentration and activity are treated as the same thing. In real solutions they part company as things get concentrated, and pH is defined on activity.
The scale is drawn from 0 to 14 because that is the range people are taught. It is not a hard limit: concentrated acids go below 0 and concentrated bases above 14.
Temperature is ignored. Neutral is pH 7 only at 25 degrees, because the ion product of water moves with temperature.
Nothing here is a measurement of any particular solution. It is the definition of the scale, walked.
What I would tell someone starting this. The concentration of hydrogen ions in ordinary things spans about fourteen powers of ten. Stomach acid to oven cleaner. No linear axis survives that. The log is not there to make it harder, it is there so the number fits on a page and so a change of one unit always means the same thing, which is ten times more.
The moment a curve becomes a line
Rate against temperature is a curve you cannot read. Plot the log of it against one over temperature and it straightens out. This is the whole reason chemists take logs of things.
Raise the temperature by ten degrees. What happens to the rate?
T = 300K1/T = 3.33e-3K-1Ea put in = 50.0 kJ mol-1slope of the line = 0KEa read back off it = 0kJ mol-1k = 1.0relative
k against Tln k against 1/T
FIG · Arrhenius behaviour, plotted raw and plotted logarithmically.
Show the working
WHAT IS COMPUTED
// The Arrhenius equation, shown as a rate relative to the rate at 300 K
// so the constant A cancels and only the shape is left.
k(T) = Math.exp(-Ea / (R * T)) / Math.exp(-Ea / (R * 300));
// Taking logs turns the multiplying into adding:
// ln k = -(Ea/R) * (1/T) + constant
// which is a straight line IF the x axis is 1/T. The right hand
// graph plots exactly that.
// And the slope is read back off the plotted line, not printed
// from the Ea that produced it:
slope = (ln k(280) - ln k(420)) / (1/280 - 1/420);
Ea = -slope * R; // comes back as 50.0 kJ/mol
WHAT THIS ASSUMES
Ea is fixed at 50 kJ per mole and R at 8.314 J per mole per kelvin. 50 is a typical figure for a solution reaction, not a measurement of anything.
The pre exponential factor A is assumed not to vary with temperature. It does, weakly, and a careful treatment says so.
The rate shown is relative to the rate at 300 K, so the y axis on the left is a ratio and not a rate in any unit.
An earlier version of the right hand graph plotted ln k against temperature rather than against one over temperature, which bowed 10 per cent away from straight and still looked linear. It is plotted against 1/T now, and the straightness is checked by fitting a line to the pixels the page actually drew: the worst departure is 0.17 per cent of the plot height, which is antialiasing.
What I would tell someone starting this. I spent a week thinking the second graph was a trick. It is not. The straight line is the same data. What the log does is turn a multiplying relationship into an adding one, and our eyes are much better at judging straight lines than curves. The slope of that line gives you the activation energy directly, which is the whole point.
04
The spectroscopy bench
This part is about light, so the panels go dark. You cannot show an emission line on white paper and you cannot show a band gap without showing which photons make it across.
Band gaps, and which light gets through
Drag the wavelength. A photon can only excite an electron across the gap if it carries enough energy. Too little and the material is transparent to it.
Silicon has a gap of 1.1 eV. Does red light at 700nm have enough energy to cross it?
WAVELENGTH550
PHOTON ENERGY2.25
REGIONVisible
E = hc / λ1239.84 / 550
LONGEST WAVELENGTH SILICON CAN USE1107 nm
THIS PHOTON AGAINST THAT EDGEinside it
Conduction band
Valence band
FIG · Photon energy against band gap for common photovoltaic absorbers.
Show the working
WHAT IS COMPUTED
// A photon's energy from its wavelength. 1239.84 is h times c
// expressed in electron volts times nanometres, which is the only
// form of hc a spectroscopist ever needs.
E = 1239.84 / wavelength; // eV, from nm
// A material can use the photon if the photon can pay the gap.
usable = (E >= bandGap);
WHAT THIS ASSUMES
Absorption is treated as a hard edge at the gap. Real absorption has a tail, and an indirect gap material like silicon absorbs weakly for some way above its gap because a phonon has to help.
The six band gaps listed are room temperature literature values. Gaps shift with temperature and, in alloys, with composition.
Nothing here says how much light is absorbed, only whether a photon has enough energy to be absorbed at all. The next two simulations are where the amount starts to matter.
The arrow in the level diagram is scaled to fit the box and is not to any energy scale.
What I would tell someone starting this. The thing that unlocked this for me was realising a solar cell throws away most of the sunlight that hits it. Photons below the gap pass straight through. Photons well above it get absorbed, then immediately waste the extra as heat. Both losses are unavoidable and they are why the next graph exists.
Where the sunlight actually goes
One photon at a time is the wrong question. Sunlight arrives as all of them at once. This is the real measured spectrum, and a band gap cuts it into pieces.
Silicon's gap is 1.12 eV. Before any electrical loss at all, before voltage or resistance or anything, what share of the sunlight is already gone to those two losses alone?
BAND GAP1.12 eV
PASSES STRAIGHT THROUGH19.2%
LOST AS HEAT31.7%
STILL ON THE TABLE49.0%
PHOTONS CAUGHT43.8 mA cm-2 worth
N(Eg), PHOTONS ABOVE THE GAP0
P(Eg), WATTS ABOVE THE GAP0
Eg × q × N(Eg), THE PART KEPT0
FIG · ASTM G173-03 global tilt, the standard one sun spectrum, integrating to 1000.4 W m-2. The two shaded areas are integrated from that table, not sketched.
Show the working
WHAT IS COMPUTED
// The spectrum is the published ASTM G173-03 table, rebinned to 5 meV.
// P(E) is the power carried by all light above energy E.
// N(E) is the photon count carried by all light above energy E.
below = (Pin - P(Eg)) / Pin // never absorbed at all
harvested = Eg * q * N(Eg) // one gap's worth per photon
thermal = (P(Eg) - harvested) / Pin // the excess, gone as heat
ultimate = harvested / Pin // what is still available
// The three add to exactly one, at every gap, by construction.
WHAT THIS ASSUMES
Every photon above the gap is absorbed and every photon below it is not. Real absorption has a soft edge and real cells are not infinitely thick.
One photon lifts exactly one electron. Carrier multiplication exists in a few materials and would break this.
The excess energy above the gap is lost instantly to heat. That is what thermalisation means and it is fast, but it is not literally instant.
The spectrum is rebinned from 2002 published wavelengths onto a 5 meV energy grid. Running the whole efficiency calculation both ways, the largest disagreement anywhere is 0.0003 percentage points.
What I would tell someone starting this. I had read the sentence "solar cells waste most of the light" a dozen times before I sat down and integrated it. Half of it is gone at silicon before you have built anything. Not to bad engineering, to the fact that a gap is a single fixed size and sunlight is not. That is the whole reason the next graph has a peak in it.
Why a single solar cell cannot beat about 33 percent
This is the most important graph in photovoltaics and it took me three attempts to understand it. Two losses pull in opposite directions, and the peak is where they cross.
Sketch it in your head first. Is the best band gap small, medium, or large?
BAND GAP1.34 eV
BOTTOM GAP0.94 eV
LIMIT33.7%
SHORT CIRCUIT CURRENT35.0 mA cm-2
OPEN CIRCUIT VOLTAGE1.082 V
NEAREST MATERIALPerovskite
FIG · Detailed balance on the ASTM G173-03 spectrum. Every number here is computed on this page, not fitted to a published curve.
Show the working
WHAT IS COMPUTED
// Every photon above the gap gives one electron.
Jsc = q * N(Eg);
// The cell is warm, so it glows, and that glow is the only loss allowed.
// This is the integral of the 300 K blackbody above the gap, in closed form.
x0 = Eg / VT;
J0 = K * sum over k of exp(-k*x0) * (x0*x0/k + 2*x0/(k*k) + 2/(k*k*k));
// An ideal diode, and the best power you can pull out of it.
J(V) = Jsc - J0 * (exp(V / VT) - 1);
eta = max over V of (J * V) / 1000.371;
// Two junctions in series pass the same current, so the pair is solved
// for the one current that gives the most total power, not each on its own.
V(J) = VT * log((Jph_top - J)/J0_top + 1)
+ VT * log((Jph_bot - J)/J0_bot + 1);
WHAT THIS ASSUMES
One sun, no concentration, and the cell held at 300 K. Concentrating the light raises the limit, which is a separate argument.
Radiative recombination only. Every other loss a real cell has is set to zero, which is why this is a ceiling and not a prediction.
Emission into a hemisphere from the front face. A perfect mirror behind the cell is assumed.
No series resistance, no shunt, no reflection off the front, no parasitic absorption.
For the tandem, the two cells are wired in series and current matched, which is how nearly every real tandem is built. Light coupling between the two junctions is ignored, so the tandem number is slightly conservative.
The peak this produces is 33.69 percent at 1.336 eV, and the published Shockley-Queisser figure for this spectrum is 33.7 percent at 1.34 eV. The two junction optimum comes out at 45.71 percent for 1.60 over 0.94 eV, against a literature figure of about 45.7 percent.
What I would tell someone starting this. Make a small gap and you catch nearly every photon, but each one only gives you a tiny voltage. Make a large gap and each photon gives you plenty of voltage, but most of the sunlight sails straight past. The peak is the compromise. Silicon sits at 1.1, a little to the left of ideal, and we use it anyway because it is cheap and we are very good at making it. The way past the peak is not a better single material. It is two of them, one behind the other, so the second gets the light the first could only have wasted.
05
The solar lab
Crystals, structures, and the tool that lets you see them. This is the part that connects back to what I actually want to research.
Bragg's law, and how we see a lattice we cannot see
You cannot photograph an atom. What you can do is bounce X-rays off the planes of atoms and read the pattern that comes back. Drag the angle and watch the two reflected beams fall in and out of step.
When the two beams arrive back in step, what do you see on the detector?
RUN 002 · BRAGG
ANGLE22.0
d SPACING2.00
PATH DIFF1.50
PATH DIFF IN WAVELENGTHS0.97
CONDITIONoff peak
NEAREST EXACT PEAK22.6°
FIG · nλ = 2d sinθ. Wavelength fixed at 1.54 Å, which is copper K-alpha.
Show the working
WHAT IS COMPUTED
// Two rays reflecting off neighbouring planes. The lower one
// travels this much further:
pathDifference = 2 * d * Math.sin(theta);
// They arrive in step when that extra distance is a whole number
// of wavelengths, which is Bragg's law:
// n * lambda = 2 * d * sin(theta)
n = pathDifference / lambda;
// And the angle that would put you exactly on the nth peak:
exactAngle = Math.asin(n * lambda / (2 * d));
WHAT THIS ASSUMES
Copper K-alpha at 1.54 angstroms, and only the alpha-1 line. A real copper tube emits alpha-1 and alpha-2 close together, which splits every peak at high angle.
Two planes and two rays. A real crystal has thousands of planes contributing, which is what makes a real peak sharp rather than merely present.
The picture is a cross section. Nothing here says anything about which reflections are allowed for a given lattice, and some of the ones you can find here would be systematically absent in a real structure. The powder diffraction simulation in the notebook is where absences are handled.
The condition is graded rather than binary. Within 0.01 of a whole number it says in step, within 0.06 it says almost, and the exact angle and how far you are from it are both shown. An earlier version called anything within 0.06 a bright peak, which meant claiming one up to 4.15 degrees off.
What I would tell someone starting this. This is the technique that made materials science possible, and it is one equation. Every peak in a diffraction pattern is one family of planes announcing its spacing. Read enough peaks and you have the structure. When I understood this I finally understood what my ASU crystal structures course had actually been for.
Unit cells you can turn over
A crystal is one small arrangement of atoms, repeated. Learn the small arrangement and you have the whole thing. Drag to rotate, or use the arrow keys.
RUN 003 · UNIT CELL
TYPESimple cubic
ATOMS PER CELL1
PACKING52%
FIG · The three cubic Bravais lattices.
Show the working
WHAT IS COMPUTED
// Corner atoms, shared eight ways between neighbouring cells.
// Face atoms, shared two ways. Body centre atoms, not shared.
atomsPerCell = 8 * (1/8) // simple cubic = 1
+ 8 * (1/8) + 1 // body centred = 2
+ 8 * (1/8) + 6 * (1/2); // face centred = 4
// Packing fraction is the volume the spheres actually occupy,
// with the spheres touching along whichever direction is closest
// packed in that lattice:
// simple cubic pi / 6 = 52% (touch along an edge)
// body centred sqrt(3) pi / 8 = 68% (along the body diagonal)
// face centred sqrt(2) pi / 6 = 74% (along a face diagonal)
WHAT THIS ASSUMES
Hard spheres, all the same size, touching. Real atoms are not hard spheres and an alloy has more than one size of them.
The model draws whole atoms at every site rather than the fractions a single cell actually owns, because eight eighths of a sphere at the corners is unreadable. The counts in the readout are the shared ones.
The three packing fractions are the exact geometric constants for these lattices, not measurements.
These are three of the fourteen Bravais lattices, the cubic ones. Most real materials are not cubic.
06
What I thought, what I learned, what stuck
For each big topic I write down what I think it means before I start. Then again when I finish. Then again six weeks later, from memory, without looking. The third one is the honest one and it is not always better than the second.
07
Papers, four questions each
Reading a paper without writing anything down leaves no trace. Four fields, every time. The fourth one is the only one that is really mine.
Add a paper
This last one is the one that matters. A paper does not count as read until it is answered.
08
Turning notes into something worth publishing
Six boxes. I write each one in my own words, roughly, without tidying. Then this asks me hard questions about what I wrote. It does not rewrite anything. If it wrote it for me the whole thing would sound like nobody.
09
Letters I cannot read yet
At the start of each phase I write myself a letter. It seals straight away and I do not get it back until that phase is finished. The Phase 0 one stays shut until the whole thing is done.
10
Things that happened
CONSECUTIVE DAYS0
ACTIVE IN LAST 300
One day off does not break anything. Neither does two. I built it that way on purpose.
11
Your copy
Nothing on this page is stored anywhere. If you have been ticking things off, download it and keep it. Bring it back whenever you want.