
A digital perturb-and-observe (P&O) maximum-power-point-tracking (MPPT) controller for reconfigurable RF energy harvesters, implemented as a pure-digital Tiny Tapeout project.
An RF rectifier is only efficient at one operating point: its optimal load and its input impedance change with the available input power. TinyMPPT continuously adjusts a 4-bit configuration word (rectifier stage count / load trim) so that the harvester stays at its maximum power point while the ambient RF level varies.
Power is sensed without an ADC: the off-chip harvester delivers fixed
charge packets to the storage element and emits one pulse per packet on
ui[0], so the pulse rate is proportional to the harvested power.
Every measurement window (16384 clock cycles, about 1.64 ms at the nominal 10 MHz clock) the controller:
uo[3:0] one more
step in the same direction; if it decreased, reverses direction and steps;uo[4] for one clock cycle.This is the classic perturb-and-observe hill-climbing algorithm: the configuration walks up the power curve and, once at the peak, dithers by one step around it (normal P&O behaviour).
In manual mode (ui[1] = 1) the tracking loop is bypassed and the
configuration is forced to the value present on uio[3:0]. This mode is
intended for characterising a harvester: sweeping all 16 configurations
while recording the pulse rate yields the full power-versus-configuration
curve.
Debug outputs: uo[5] shows the current search direction (1 = up, 0 =
down); uo[6] echoes the manual-mode select.
ui[1] high and place a value on uio[3:0] (RP2040
GPIOs or switches on your interface); check that uo[3:0] equals it.ui[1] low and feed a 10-100 kHz pulse train into
ui[0] (function generator or RP2040 GPIO); monitor uo[3:0] and the
strobe uo[4] with a logic analyser: the configuration steps once per
window (about 1.64 ms).To observe tracking without an RF front-end, emulate the harvester with the RP2040 or any microcontroller:
uo[3:0];ui[0] at that rate.The controller walks from its reset value (8) towards the model's peak
and then dithers between the peak and its neighbours. The same two checks
(manual override and peak tracking) also run automatically in simulation,
including gate-level: see test/test.py (cocotb), executed in CI.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | power pulse input (1 pulse = 1 harvested energy packet) | rectifier config bit 0 (LSB) | manual config bit 0 (input only, used when ui[1] = 1) |
| 1 | manual mode: 1 = force config from uio[3:0], 0 = auto P&O tracking | rectifier config bit 1 | manual config bit 1 (input only, used when ui[1] = 1) |
| 2 | rectifier config bit 2 | manual config bit 2 (input only, used when ui[1] = 1) | |
| 3 | rectifier config bit 3 (MSB); uo[3:0] = stage count / load trim setting | manual config bit 3 (input only, used when ui[1] = 1) | |
| 4 | measurement window strobe (one pulse per ~1.6 ms power window) | ||
| 5 | debug: search direction (1 = climbing up, 0 = climbing down) | ||
| 6 | debug: manual mode echo (copy of ui[1]) | ||
| 7 |