Hi all, a driver circuit needed for lighting a 30W LED* (one color) -
I had a look at the XL6005 datasheet and wanted to make sure I understand it properly based on the following diagram**:

1. To drive the LED with 300mA I should make RS = 0.73 ohm (ILed=0.22/0.73=0.3A)
2. To limit the max voltage of the output I can put a Zener diode (optional)
3. dimming the voltage output can be achieved by a PWM signal through the EN pin.
Please correct me if I'm wrong!
Reference:
Led - https://www.ebay.com/itm/4w-10w-20w...hash=item3d412b38c8:m:maXqAHUMQRoDbZROCkkkJMQ
XL6005 - http://www.xlsemi.com/datasheet/XL6005 datasheet.pdf
*Ebay choices - Wattage:30W Qty:1
**Figure 11 taken from datasheet page 9.
I had a look at the XL6005 datasheet and wanted to make sure I understand it properly based on the following diagram**:

1. To drive the LED with 300mA I should make RS = 0.73 ohm (ILed=0.22/0.73=0.3A)
2. To limit the max voltage of the output I can put a Zener diode (optional)
3. dimming the voltage output can be achieved by a PWM signal through the EN pin.
Please correct me if I'm wrong!
Reference:
Led - https://www.ebay.com/itm/4w-10w-20w...hash=item3d412b38c8:m:maXqAHUMQRoDbZROCkkkJMQ
XL6005 - http://www.xlsemi.com/datasheet/XL6005 datasheet.pdf
*Ebay choices - Wattage:30W Qty:1
**Figure 11 taken from datasheet page 9.