I currently have a circuit where I use UART to communicate over fiber. This is done by the UART data packet toggling the Base of an NPN transistor which pulls the LED low and flashes it in sync with the UART bits. I would like to be able to electronically control the drive strength of the LED. This would likely mean implementing some kind of op amp-based Voltage controlled current source or Laser driver IC. Given the max baud rate is 115200, and I would like to control the current 0-40mA this should be very doable. However, I am struggling on how to implement the current limiter while maintaining the ability to transmit data packets. I am working on an EHCS(Enhansed Howland Current Source) circuit currently to attempt this.
Does anyone have any thoughts? Maybe I am overlooking a simple solution.
LED forward voltage is 3.1V, digital Pots are out of the question due to their large step size and low power rating.

Does anyone have any thoughts? Maybe I am overlooking a simple solution.
LED forward voltage is 3.1V, digital Pots are out of the question due to their large step size and low power rating.


