---
title: Photovoltaic converters and MPPT
heading: The solar cell as a current source with a diode, the maximum power point and fill factor, temperature and string sizing, perturb-and-observe and incremental-conductance tracking, and partial shading
eyebrow: S11 · Lesson 48 · Photovoltaic converters and MPPT
xp: 50
---

::: hook
A solar module isn't a voltage source or a current source but something in between: its current holds nearly constant up to a knee and then collapses toward zero as the voltage approaches open circuit. Somewhere on that knee lies the one operating point where it delivers the most power, and that point moves with sunlight and temperature. Every solar converter's first job is to find it and stay on it, while keeping the panel string's voltage within what its own switches can stand on the coldest morning.
:::

::: play
- The curves are a 60-cell module's current and power against voltage, from the single-diode model with $I_{sc}$ = 9 A, $V_{oc}$ = 37.5 V and ideality factor 1.2, scaled by the irradiance on the slider.
- The power peaks at about 32.1 V and 8.5 A at full sun: 273 W, a fill factor of 0.81.
- Less sunlight scales the current almost proportionally, but the maximum-power voltage barely moves.
:::

```sim plot
view: graph
x: V = 0..38
y: P = 0..300
slider: g = 0.1..1 = 1
plot: V*(9*g - 1.414e-8*(exp(V/1.8499) - 1)) | label: power, W
plot: 30*(9*g - 1.414e-8*(exp(V/1.8499) - 1)) | dashed | label: current × 30
```

::: predict
## A string inverter accepts at most 1000 V. Modules have $V_{oc}$ = 37.5 V at 25 °C, rising 0.3% per kelvin of cooling, and the site's coldest morning is −10 °C. How many modules can a string have?

- [ ] 26, from 1000/37.5
- [x] 24
- [ ] 30
- [ ] 20

::: reveal
At −10 °C, 35 K below the rating, $V_{oc}$ rises 10.5% to 41.4 V, and an open string at sunrise reaches its full open-circuit voltage before the inverter starts drawing current. So the string is limited to ⌊1000/41.4⌋ = 24 modules (994 V). Sizing at 25 °C would allow 26 and overvoltage the inverter on cold, bright mornings.
:::
:::

::: nameit
## The cell model

A cell is a photocurrent source in parallel with a diode: for a module of $N_s$ cells,
$$I = I_{sc} - I_0\left(e^{V/(nN_sV_T)} - 1\right)$$
with $V_T$ = 25.7 mV at 25 °C. The **maximum power point** (MPP) sits on the knee, where $d(VI)/dV = 0$; the **fill factor** $P_{mpp}/(V_{oc}I_{sc})$ measures how square the curve is (0.75 to 0.85 for silicon).

## Temperature and irradiance

The current scales with irradiance. Temperature lowers the voltage, about −0.3%/K for $V_{oc}$ and −0.4%/K for $V_{mpp}$, so power falls about 0.4%/K. Strings are sized so that N modules' cold $V_{oc}$ stays below the inverter's maximum and their hot $V_{mpp}$ stays above its minimum tracking voltage.

## Tracking

- **Perturb and observe**: step the operating voltage; if power rose, keep stepping the same way, otherwise reverse. Simple, but it oscillates around the MPP, and big steps trade speed against steady loss.
- **Incremental conductance**: at the MPP, $dP/dV = I + V\,dI/dV = 0$, so $dI/dV = -I/V$. Comparing the measured incremental conductance with $-I/V$ tells the tracker which way to move, and that it has arrived.

## Partial shading

A shaded cell would be driven into reverse breakdown by its neighbors; **bypass diodes** across groups of cells let current go around it, which creates several local maxima on the string's power curve. Trackers then sweep the curve periodically to find the global peak.

## The converter

A boost stage sets the module or string voltage to the MPP while feeding a higher bus; microinverters, working from a single module's 30 V, use isolated flyback or resonant stages instead of an extreme-duty boost.
:::

::: example
## Find the maximum power point of the 60-cell module ($I_{sc}$ = 9 A, $V_{oc}$ = 37.5 V, n = 1.2) and its fill factor.

::: solution
1. **Thermal voltage for 60 cells.**
   $$\begin{aligned} nN_sV_T &= 1.2 \times 60 \times 25.7\text{ mV} \\ &= 1.85\ \text{V} \end{aligned}$$
2. **Saturation current.** It follows from $V_{oc}$:
   $$\begin{aligned} I_0 &= \frac{I_{sc}}{e^{V_{oc}/nN_sV_T} - 1} \\ &= 1.41 \times 10^{-8}\ \text{A} \end{aligned}$$
3. **Search for the peak.** A search over V finds the power peaking at 32.1 V and 8.51 A:
   $$\begin{aligned} P_\text{mpp} &= 32.1 \times 8.51 \\ &= 273\ \text{W} \end{aligned}$$
4. **Fill factor.**
   $$\begin{aligned} \text{FF} &= \frac{273}{37.5 \times 9} \\ &= 0.81 \end{aligned}$$

**Answer:** the maximum power point is 273 W, at 32.1 V and 8.51 A, and the fill factor is 0.81.
:::
:::

::: example
## The string of 24 modules must also stay above a 600 V minimum tracking voltage on a 70 °C summer afternoon, with $V_{mpp}$ = 32.1 V at 25 °C falling 0.4% per kelvin. Does it?

::: solution
1. **Each module at 70 °C.** That's 45 K above the rating, so $V_{mpp}$ falls 0.4% × 45 = 18%:
   $$\begin{aligned} V_{mpp} &= 32.1 \times 0.82 \\ &= 26.3\ \text{V} \end{aligned}$$
2. **The string.**
   $$\begin{aligned} V &= 24 \times 32.1 \times 0.82 \\ &= 632\ \text{V} \end{aligned}$$
   above 600 V, with 5% to spare.
3. **Both limits on string length.** Hot strings set the lower bound on string length just as cold ones set the upper.

**Answer:** yes: the string sits at 632 V, 5% above the 600 V minimum.
:::
:::

::: example
## A tracker measures I = 8.8 A at V = 30 V and an incremental conductance dI/dV = −0.12 S. Which way should it move?

::: solution
1. **Slope of the power.**
   $$\begin{aligned} \frac{dP}{dV} &= I + V\frac{dI}{dV} \\ &= 8.8 + 30(-0.12) \\ &= 5.2\ \text{W/V} \end{aligned}$$
   positive: power still rises with voltage, so the MPP lies above 30 V.
2. **The same test by conductance.** Equivalently, the measured dI/dV of −0.12 is shallower than
   $$\begin{aligned} -I/V &= -8.8/30 \\ &= -0.293 \end{aligned}$$
3. **The move.** The tracker raises the voltage.

**Answer:** up: dP/dV = +5.2 W/V, so the tracker raises the voltage.
:::
:::

::: check
kind: parts
given: v = 36 | 38 | 45; c = 0.28 | 0.32; t = 10 | 25 | 35; M = 600 | 1000 | 1500

## Modules with $V_{oc}$ = {v} V at 25 °C (rising {c}% per kelvin of cooling) must keep an open string below {M} V at a site that reaches {t} °C below 25 °C.

::: part
answer: v*(1 + c/100*t)
unit: V
tolerance: 0.5%

### What is each module's cold open-circuit voltage?

::: misses
- [any] $V_{oc}(1 + c\Delta T)$.
:::
:::

::: part
answer: floor(M/(v*(1 + c/100*t)) + 1e-9)
unit: modules
tolerance: 0

### How many modules can a string have?

::: misses
- [any] ⌊limit / cold $V_{oc}$⌋.
:::
:::
:::

::: check
kind: parts
given: m = 30 | 32 | 40; c = 0.35 | 0.45; t = 30 | 45; N = 16 | 20 | 24

## A string of {N} modules has $V_{mpp}$ = {m} V each at 25 °C, falling {c}% per kelvin; it runs {t} K above 25 °C.

::: part
answer: N*m*(1 - c/100*t)
unit: V
tolerance: 0.5%

### What is the string's hot MPP voltage?

::: misses
- [N*m] Heat lowers the voltage.
- [any] $NV_{mpp}(1 - c\Delta T)$.
:::
:::
:::

::: check
kind: parts
given: I = 5 | 8 | 10; V = 25 | 30 | 35; g = -0.05 | -0.2 | -0.5

## A tracker measures {I} A at {V} V with incremental conductance {g} S.

::: part
answer: I + V*g
unit: W/V
tolerance: 0.5%

### What is dP/dV?

::: misses
- [any] $I + V\,dI/dV$.
:::
:::

::: part
answer: -I/V
unit: S
tolerance: 0.5%

### What incremental conductance would mark the MPP?

::: misses
- [any] $-I/V$.
:::
:::
:::

::: check
kind: parts
given: P = 250 | 330 | 400; v = 37 | 45; i = 9 | 10.5

## A module delivers {P} W at its MPP, with $V_{oc}$ = {v} V and $I_{sc}$ = {i} A.

::: part
answer: P/(v*i)
tolerance: 0.5%

### What is its fill factor?

::: misses
- [any] $P_{mpp}/(V_{oc}I_{sc})$.
:::
:::
:::

::: check
kind: parts
given: P = 300 | 5000; c = 0.35 | 0.45; t = 20 | 40

## A {P} W (at 25 °C) array runs {t} K hotter, with power falling {c}% per kelvin.

::: part
answer: P*(1 - c/100*t)
unit: W
tolerance: 0.5%

### What does it deliver?

::: misses
- [any] $P(1 - c\Delta T)$.
:::
:::
:::

::: check
kind: parts
given: m = 30 | 35; B = 200 | 400; n = 1 | 12

## A boost stage takes {n} module(s) in series at {m} V each up to a {B} V bus.

::: part
answer: 1 - n*m/B
tolerance: 0.5%

### What duty cycle does it run at?

::: misses
- [any] $1 - V_\text{in}/V_\text{out}$.
:::
:::
:::

::: check
kind: choice

## Why can a perturb-and-observe tracker get stuck on the wrong peak when part of a string is shaded?

- [ ] Shading removes the MPP entirely
- [x] Bypass diodes make the string's power curve have several local maxima; perturb and observe only climbs the hill it's on, so it settles on a local peak unless it periodically sweeps the whole voltage range
- [ ] The tracker can't measure power under shade
- [ ] Shading reverses the current

::: misses
- [1] There's still a global maximum, plus local ones.
- [3] Measurement works fine.
- [4] Bypass diodes prevent reversal.
:::
:::

::: check
kind: derivation
vars: S = 1..12, I = 0.000000000001..0.0000001, a = 0.5..3, V = 1..40

## A module's model has photocurrent S, saturation current I and thermal voltage a (= $nN_sV_T$).

::: step
answer: a*ln(S/I + 1)

### What is its open-circuit voltage?
:::

::: step
answer: S - I*(exp(V/a) - 1)

### What current does it give at voltage V?
:::

::: step
answer: S - I*(exp(V/a) - 1) - V*I/a*exp(V/a)

### What is dP/dV there?
:::

::: right
Right. dP/dV crosses zero at the MPP, which is what incremental conductance tracking looks for.
:::
:::

::: check
kind: python

## Write `mpp(Isc, Voc, a)`: the maximum power point (P, V, I) of the single-diode model with thermal voltage a, by golden-section search on V from 0 to Voc, and `perturb_observe(Isc, Voc, a, V0, step, n)`: run n steps of perturb and observe from V0 and return the final voltage.

```python starter
def mpp(Isc, Voc, a):
    return Isc * Voc, Voc, Isc

def perturb_observe(Isc, Voc, a, V0, step, n):
    return V0
```

```python solution
import math

def current(Isc, Voc, a, V):
    I0 = Isc / (math.exp(Voc / a) - 1)
    return Isc - I0 * (math.exp(V / a) - 1)

def mpp(Isc, Voc, a):
    P = lambda V: V * current(Isc, Voc, a, V)
    lo, hi = 0.0, Voc
    g = (math.sqrt(5) - 1) / 2
    for _ in range(200):
        x1 = hi - g * (hi - lo)
        x2 = lo + g * (hi - lo)
        if P(x1) < P(x2):
            lo = x1
        else:
            hi = x2
    V = (lo + hi) / 2
    return P(V), V, current(Isc, Voc, a, V)

def perturb_observe(Isc, Voc, a, V0, step, n):
    V = V0
    P = V * current(Isc, Voc, a, V)
    d = step
    for _ in range(n):
        Vn = V + d
        Pn = Vn * current(Isc, Voc, a, Vn)
        if Pn < P:
            d = -d
        V, P = Vn, Pn
    return V
```

```python tests
P, V, I = mpp(9, 37.5, 1.85)
assert abs(P - 273.3) < 0.5 and abs(V - 32.1) < 0.1, "The module's MPP: 273 W at 32.1 V."
Vpo = perturb_observe(9, 37.5, 1.85, 20, 0.2, 200)
assert abs(Vpo - V) < 0.5, "Perturb and observe ends up oscillating around the MPP."
```

::: right
Right. The tracker never sits still: it dithers a step either side of the MPP, which is the price of not knowing the curve.
:::
:::

::: explain
## Why is a string's length bounded both above and below, and what sets each bound?

::: model
The modules in a string add their voltages, and module voltage depends strongly on temperature. On the coldest, brightest morning the open-circuit voltage is at its highest, and since an inverter connects to an open string before it starts drawing power, that voltage must stay below the inverter's maximum input, which caps the number of modules. On the hottest afternoon the maximum-power voltage is at its lowest, and it must stay above the inverter's minimum tracking voltage or the inverter can't operate at the MPP, which sets a minimum number of modules. Both bounds come from the same temperature coefficients applied at the site's extreme temperatures.
:::
:::

::: practice
::: check
given: v = 40 | 49; c = 0.3; t = 20 | 40; M = 1000 | 1500
answer: floor(M/(v*(1 + c/100*t)) + 1e-9)
unit: modules
tolerance: 0

## Modules per string: $V_{oc}$ {v} V, {t} K below 25 °C, limit {M} V?

::: misses
- [any] Use the cold $V_{oc}$.
:::
:::

::: check
given: I = 6 | 9; V = 28 | 34; g = -0.1 | -0.4
answer: I + V*g
unit: W/V
tolerance: 0.5%

## dP/dV at {I} A, {V} V, dI/dV = {g} S?

::: misses
- [any] $I + V\,dI/dV$.
:::
:::

::: check
given: P = 280 | 420; v = 38 | 48; i = 9.5 | 11
answer: P/(v*i)
tolerance: 0.5%

## Fill factor: {P} W, {v} V, {i} A?

::: misses
- [any] $P/(V_{oc}I_{sc})$.
:::
:::
:::
