Swept R-load circuit to calibrate a thermoelectric generator model (TEG)