I'm not sure where this would be used, but it sounds like a good idea. Excuse my ignorance if it already exists. If there a way to control a variable resistor device with a microcontroller? Perhaps a small stepper motor connected to a POT. Or a device which could change its resistance with some sort of input?
E