Is there an electronic part that will act as a resistor, supplying an amount of resistance across two terminals that vary with respect to a changing amount of electricity passing though another two terminals? Or, does what I am trying to describe have to be made as a circuit of more than one electronic part? Where can I learn about the easiest way to obtain or build a device that will perform this function?