I've been trying to create a current source, and have finally gotten my hands on some LM8261's which should be an 'unlimited cap drive' op-amp. The problem is, it is still oscillating...
This is the schematic and PCB layout:
I have tried to route the ground inside the loop area, close to the 5V connection for the opamp, so i could place the bypass caps as close as possible. Although the bigger 10uF cap has one of it legs at the groundplane (forgot to include this cap in the schematic picture)
This is what it looks like when i probe the gate of the mosfet:
It's all over the place.
I tried adding a 10uF capacitor across the DUT, so from VDD to ground. This removed a lot of the wierd noise and made it look almost like a sinewave:
I've tried with and without the gate resistor R1, it didn't seem to make any difference.
What is going on? Any clues on why this just doesn't work?
Solved it! With the help from @Andyaka below, i used his solution of inserting a BJT emitter follower in between the op-amp and the MOSFET, together with an integrator and got some great results!
The simulations can be seen here: https://imgur.com/a/tBprTjh
The gain/phase bode plots i made on the PCB:
BW of approximately 350kHz! Very pleased.