Monday, 28 May 2018

Arduino PWM controlling high-power LED


I'm wanting to use one of the Arduino's PWM output to control a high-powered LED. I can't remember the exact specifications, but it was considerably more current than the ATMega328 can provide.


I realise that this would usually be achieved with the use of a transistor, and a resistor to current-control the LED. However, I'm not wanting the LED to become less bright as the battery voltage sags, and therefore I'm wanting to use a constant current source instead of the resistor.


My first thought was to use an LM317. What I'm wanting to know, though, is if it can respond at the 64KHz it would need to?



Alternatively, could I use a simple MOSFET to achieve the same thing cheaper and simpler? (Then I wouldn't need a transistor nor constant current source, as the MOSFET would do both of these)


Thanks, Rob.




No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...