Things You'll Need
Instructions
Connect a current to the input of the op-amp. The op-amp needs a bipolar power supply. Use a capacitor on the board or a biased 9-volt battery.
Place your resistors. For a non-inverting op-amp, the power is connected to the "+" input, and the two resistors loop between the "-" input and the output. For an inverting op-amp, ground the "+" input, and connect the power to the "-" input through the two resistors.
Connect the output of the op-amp to the MOSFET gate. The gate-to-source voltage will equal -(resistor 1 divided by resistor 2) divided by the drain-to-source voltage.