Typical constant circuit for LED

The hardware scheme use supper bright high power LED and 1W of constant circuit which supply constant output current

1W constant circuit

The sensor resistor is externally connected, which realize output current programmable(R1 is sampling resistance)
Peak current = 500mV/R1