A readily available IC from Dallas semiconductor, DS1669 is used here.
FEATURES:
* Replaces mechanical variable resistors
* Electronic interface provided for digital as well as manual control
* Wide differential input voltage range between 4.5 and 8 volts
* Wiper position is maintained in the absence of power
* Low-cost alternative to mechanical controls
* Applications include volume, tone, contrast,brightness, and dimmer control
The circuit is extremely simple and compact requiring very few external components.
The power supply can vary from 4.5V to 8V.