The hardware scheme use supper bright high power LED and 1W of constant circuit which supply constant output current
The sensor resistor is externally connected, which realize output current programmable(R1 is sampling resistance)
Peak current = 500mV/R1