✔ 最佳答案
I think you are looking for a digital potentiometer.
u can do this with IC, X9015US
when u send a positive pulse at the input, it increase the resistance
whereas when u send a negative pulse, it decrease the resistance.
The total resistance can be adjusted. Sorry it is hard to explain in here. Please find the detail in the datasheet below, or simply type X9015 in yahoo search.
http://www.datasheetcatalog.com/datasheets_pdf/X/9/0/1/X9015US.shtml