Laser driver controled by microcontroller over PWM signal