1The potentiometer in the image below is just a simplification; I don’t think this would be a good idea in practice, too much temperature variation—I used a DAC.