I've tried to build this opamp/mosfet current source, and been struggling to make it stable. When simulating the open-loop gain in PSpice. I've set it up like this, which should give Vout = -AB at the output of the opamp.
But unfortunately it is very unstable on the prototype PCB that I made. The first picture is when the input voltage is 0, or below 10mV. The second picture is when I increase the voltage to around 70mV at the input:
Here is a picture of the PCB:
I could not route the 5V for the opamp on the single sided pcb, so I made a small jumper. At the input of the 5V there is a 10uF electrolytic and a 100nF ceramic as a bypass.
The green wire at the bottom is the input to the opamp. The other green wire is measurement at the gate of the opamp.
How can I simulate this circuit correctly?
How can I stop the oscillations in my circuit?
EDIT: I forgot to mention that i added C2 because the mosfet im using (ST p36ne06) has more input capacitance than this buz11 FET has.