Op amp driving a LED oscillates, how to stabilize?
The standard approach in your case is to modify the circuit slightly:







simulate this circuit &ndash; Schematic created using CircuitLab

Unfortunately, I can't give you component values. They depend on the op amp AND R1. As a start, try 1 to 5k and 100 pF, but be prepared to experiment. Getting a circuit simulator such as a SPICE version (TINA, LTSpice, etc) will let you play around, too.

Be prepared to see quite different turn-on and turn-off behaviors. At turn-on the op amp has to come out of a very unpleasant condition, as opposed to its operation during turn-off.