John said:
Probably the best way is to do a web search for
"electronic load". Lots of info and schematics out
there.
It's useful to put some of the story here on s.e.d.
First, we'll make the MOSFET's current follow Ohm's
law for a resistor, I = V/R, using a current-sense
resistor Rs, and a resistive divider, R1/(R1 + R2).
--+--------------+- V
| |
R2 |
| __ ||-'
+-----|+ \__||-,
| ,--|-_/ |
| |___________|
R1 |
| Rs
| |
--+--------------+---
If we select Rs so that R = Rs (1 + R2/R1), and also
R1>>Rs, we'll have made a nice active power resistor.
It's necessary to add an RC to the opamp output, to
prevent oscillation, as we've written about here many
times before, but that's the basic idea. If the R1 R2
voltage divider ratio involves a multiplying DAC, it's
easy to create a digitally-programmable power resistor.