Digital potentiometer

A digital potentiometer (also called a resistive digital-to-analog converter, or informally a digipot) is a digitally-controlled electronic component that mimics the analog functions of a potentiometer. It is often used for trimming and scaling analog signals by microcontrollers.