Dimming an LED from a 5V source using a pot?

Hi all,

I have an acquaintance that is working on a project and he needs to be able dim an XPE2 using a pot from a 5V source.

I thought of the buckpuck but I'm afraid the Vin is too close to the red line.
http://www.ledsupply.com/led-drivers/buckpuck-dc-led-drivers


So here was my next thought. Could I use this in combination with a resistor to drop the extra voltage?
http://www.ebay.com/itm/Mini-DC-5A-Motor-PWM-Speed-Controller-3V-35V-Speed-Control-Switch-LED-Dimmer-/401036351921?_trksid=p2141725.m3641.l6368


Will that work?

Does anyone have a better idea?

Thanks

If you just put a variable resistor in series with the emitter, couldn’t you just use that as the dimmer? You’d basically just be direct driving the emitter, but the resistor would serve to limit current….

the higher the resistor value (more ohms) the less current, the dimmer the emitter.

Conversely, the lower the resistor value (less ohms), the more the current, the brighter the emitter.

You’d need to make sure that the variable resistor was able to withstand the maximum current/power.