Update:
schematic
Provided I set up the PIC and program it correctly (planning on using this guide to interface it as a USB HID device), would this be a suitable configuration? I'm not entirely certain how I should be deriving values for the passive components outside of the manufacturers given buck configuration application example.
I also can't find any examples using this driver with digital PWM (as opposed to converting the digital to analog), and I can't find enough explanation on how the DCTRL and ACTRL pins work. In this schematic, I assumed it would work as I intend by just applying the PWM signal directly to the DCTRL pin and leaving ACTRL untouched. In any case, if I wanted to use the digital-to-analog conversion, I'd just need to add a capacitor from ACTRL to GND (Richtek suggests a .47uF).
Thanks again
edit 4: From my last comment -- ...I think I'm leaning towards using the RT8482 and the NTD4960 to drive the LED, and integrate it on a PCB along with a PIC18F2550 and its associated USB interface. If I were to do this, how should I be calculating resistor/capacitor/inductor values for the driver-side of the circuit (assuming 0-1.5A or 0-2A current range for the LED)? The worst part about this project, at the moment, is that a programmer for the PIC will cost more than parts =_=
edit3: Given the answers I currently have, I should be able to deal with the analog part of the circuit, however, I still am at a loss as to how I should generate the PWM signal. What sorts of MCUs should I be considering, given the restrictions of it needing to do nothing more than generate a PWM signal, and be able to be interfaced via USB (be it native USB, or a conversion to USB from another standard)?
I'm currently looking to design a driver for a single high-power LED that can be brightness controlled and turned on/off via a PC. I am using a Kynix HLMP-EG24-PS000 LED (datasheet here:
http://www.kynix.com/uploadfiles/pdf0125/HLMP-EG24-PS000.pdf ), it's the 240lm neutral white model. I already have a GUI written in C# to control the other parts of the project (camera and 3-axis motors), and I'd like to integrate light control into my program. Currently we are using a basic analog circuit to drive the LED (nothing more than a current-limiting resistor and a rheostat).
I figure the best approach would be to build a small constant-current, PWM controlled driver circuit. I stumbled upon this circuit on Instructables and think it would suit my needs fine (however, I have no commitment to any design, so any ideas would be appreciated).
Pertaining to the circuit above, I'm not sure what kind of parts I'd want to get (for the transistors, the zener, if necessary), and likewise, I have no idea what kind of microcontroller I'd need. I have next to no experience with microcontrollers, so I'm not sure what I'd need to get started. I shouldn't have a problem programming the controller, I just don't know what type of controller I'd use for this application. Likewise, I'm not sure how I'd interface the controller with a PC after programming it, though I'd assume RS-232 would be feasible, in which case I shouldn't have an issue; I can use a RS-232 --> USB converter and deal with serial communication within the scope of C#.
I've also stumbled upon ICs like this Maxim-IC MAX16834, but feel like these are a) overkill and b) less efficient, given I'd still need a microcontroller to generate the PWM signal and supply power transistors, so I could just use the basic circuit above and use the PWM and NPN transistor instead.
As far as my background goes, I'm entering my third-year in the EE program at UMass Amherst. I'm familiar with basic circuit analysis and programming, but I haven't learned anything about electronics yet, hence why I'm posting this question. I get the gist of most of the circuit designs, I just don't know how to design them from scratch since I don't know how to calculate values when non-elementary items are added to the mix (transistors, mainly). I feel that with a simple list of parts and schematic for this project, I'd be able to figure out the rest (all that's really left is programming the microcontroller).
If I left anything important out, please let me know. Thanks in advance!
edit: I forgot to mention, at the moment, the LED isn't normally driven past 400mA. It is rated at 700mA nominal (but is rated to run all the way up to 3A). I'm not sure what levels of light we will need at the end, but I'd like to have the ability to supply up to 2A.
edit2: To answer RusselMcMahon's question, I would prefer to run the LED off of 5V (I already have a Cincon CFM20 5V, 20W DC supply), but if a potential circuit design would require a different supply, it wouldn't be a problem to buy a new supply.