Linear resistance through optocoupler

have you tried using PWM modulation, might give you more control, especially if the LED is enthusiatic!