A system and method for controlling an optical light source is provided. A
current source drives the light source, while the voltage across and the
current through the light source is measured. The voltage and current are
converted to digital signals and sent to a neural network, which
generates a modeled optical output power of the light source and a
modeled value of the optical wavelength. A control circuit receives the
modeled optical output power and wavelength and sends a control signal to
the current source to minimize the difference between the desired power
output and the modeled output power. In addition, a control signal is
sent to a Peltier driver to control the temperature of a Peltier cooler
in order to increase or decrease the wavelength emitted by a laser diode.