The digital potentiometer can be adjusted by a digital signal, it acts as a linear potentiometer, the circuit is controlled by adjusting the resistance in the circuit, but this is controlled by a digital signal.
The module is composed of input control, counter and decoder, non-volatile memory and resistor array. The input control part is similar to a reversible counter. After the output of the counter is decoded, a single-contact electronic switch is turned on, thus putting A point on the resistance array is connected to the sliding output terminal, the code value of the counter decoding output is different, and the point of the resistance array after the decoding output is also different in the position of the array so that the resistance of potentiometer can be controlled by a digital signal.
Try to adjust the brightness of the lamp with a digital potentiometer!