Electrical – programmable variable resistor

amplifiergainmicrocontroller

I have a current signal that can vary in amplitude. I currently have a transresistance amplifier
which uses 330 Ohm resistors.

However the amplitude of this signal can vary and I would like to be able to
change the gain, when required from a micro controller.

Is there anything like an SPI part that alters resistance on command ?

Best Answer

The term you are looking for is digital potentiometer.

Search for parts to find one that fits your needs. You can get them with up to 10 Bits of resolution. Be aware that on power-up the value might be at min or max until you send the needed value via the digital interface.