Author Topic: use Arduino's on chip ADC to measure current?  (Read 1621 times)

0 Members and 1 Guest are viewing this topic.

Offline ice595Topic starter

  • Regular Contributor
  • *
  • Posts: 98
  • Country: ca
use Arduino's on chip ADC to measure current?
« on: May 30, 2014, 02:47:44 pm »
I want to use an Arduino to control 3 high power LED chips. Each LED chip can take 10 watts.
im using a mosfet switching circuit with PWM to drive those LEDs.
From what I have heard, high power LED chips require a current source to driven properly.
Is there a easy way to sense DC current with the ADCs on the Arduino.
I wouldn't think its as easy as using a current sense resistor in series with the LED and use the ADC to measure voltage across the resistor then use ohm's law. Since the LEDs are driven by PWM rather than a smooth analog voltage.

Any ideas on making this happen?
 

Offline idpromnut

  • Supporter
  • ****
  • Posts: 615
  • Country: ca
Re: use Arduino's on chip ADC to measure current?
« Reply #1 on: May 30, 2014, 03:39:52 pm »
I'm a bit of a noob myself, but I would think you would build a CC driver, and then PWM the driver, thus removing the need to sense the current (since it would be guaranteed to be constant anyways). After that, I don't know why you would want to measure the current, except to calculate actual power usage or something of that nature?
 

Offline theatrus

  • Frequent Contributor
  • **
  • Posts: 352
  • Country: us
Re: use Arduino's on chip ADC to measure current?
« Reply #2 on: May 30, 2014, 04:34:37 pm »
Is your current design just a PWM to a FET in order to turn on and off the LED? What, if anything, are you using for current control?

For something in the multi-watt range, you probably want to use a standard buck (or boost) topology, which means you are controlling your PWM circuit based on current through the string and the current in the inductor. While a linear CC driver is possible, your efficiency is pretty terrible unless you can very closely match the input voltage to the needed LED voltage (+offset).

You can save yourself a lot of heartache (and broken LEDs) if you use an existing buck controller, which are quite cheap these days. An NCP3066 is a cheap option, and has a built-in PWM control input. Depending on how the LED chip is made (series, parallel), the LM3404 (HV) can also drive high voltage 1A series strings.

Software by day, hardware by night; blueAcro.com
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf