0

I'm going to switch on/off 64 LEDs with a frequency of 100Hz to give the impression that they are all on at the same time. In order to optimize power consumption I want to make sure only one LED is on at any point in time. To achieve this I would need a duty cyle of $$Duty = \frac{1}{64} = 1.5625\%$$

This is obviously on the lower level of the LED brightness, so to combat the brightness I would have to increase the instantanious current, which I have decided would fit well in the range of 100mA to 300mA after testing, research and consulting the datasheet. This will give me an average current of 1.56mA to 4.69mA and the maximum I can get out of the LEDs without possibly harming them. The brightness at ~4.5mA is a good brightness.

The problem I have, is that when I apply 5V and set the duty cycle of a square wave to 1.5%, I can never achieve more than ~0.5 to 1mA. So I tried lowering the resistance until the point where I have just shorted out the resistor, and I never get more current than this. Would increasing the supply voltage work? Because I tried this (with a mosfet + resistor) and it did not work. Is there something I'm missing here? How can I get more current out of this LED?

My circuit is in the schematic below. I'm using a 2N7000 NMOS but I have also tried the circuit without the NMOS and the square wave directly to the LED-resistor circuit, and the result is about the same. The LEDs are blue ones (3.2-3.4V).

schematic

simulate this circuit – Schematic created using CircuitLab

My calculations was 5ohm resistor, and as the LED and NMOS both have internal resistance (rds = 6ohm), a short isn't much of a difference anwyay was my thoughts. $$R_{LED} = \frac{5V - 3.4V} {300mA} = 5\Omega$$

C. K.
  • 500
  • 5
  • 17
  • Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackexchange.com/rooms/102233/discussion-on-question-by-c-k-brightness-of-pwm-controlled-led). Any conclusions reached should be edited back into the question and/or any answer(s). – Dave Tweed Dec 15 '19 at 21:24
  • We discourage broad, open-ended design review questions here on EE.SE, because the answer(s) tend to become long strings of unrelated edits and/or comments. While this might help you with your immediate problems, it is of no value to the site overall. We DO allow design review questions in which you explain your choices and then focus on a few points about which you still have doubts. To get a better feel of what is or is not acceptable, search for "design review" on the meta site. – Dave Tweed Dec 15 '19 at 21:24

2 Answers2

5

It doesn't work that way.

In one of the comments, you wrote:

To achieve low power consumption, I want to make 64 LEDs look like they are all shining with the persistence of vision effect (high enough frequency). Because then, effectively only one LED is on at any point in time, which means the power consumption of 64 LEDs shining, is just the power of one. But I want the LEDs to have sufficient brightness, so they need to be at 4.5mA. Which means, 64 LEDs lighting up (perceived by humans) is actually only drawing 4.5mA. If all 64 was on at the same time, it would draw 4.5 * 64 = 288mA.

You want all 64 LEDs to light with the equivalent brightness of 4.5mA. You want to do this by pulsing every LED with 288mA at 1/64 duty cycle. So one LED at a time is on, 1/64th of the time, at 288mA, resulting in 4.5mA average current through each LED.

However, this means you have to supply 288mA at all times. 1/64th of the time for the first LED, then another 1/64th for the second LED, then the third, etc... You will be supplying 288mA continuously, you'll just be alternating which LED you send it to.

Meanwhile, if you just supply 4.5mA DC to every LED, you're consuming... Also 288mA, but in a simpler way. Possibly also more efficient, as LEDs tend to get less efficient at higher power.

I'm sorry, but there is no free lunch.

Getting more efficiency

There are some things you can do though:

  • Get better LEDs; efficiency varies wildly by model. Look for high-efficiency LEDs for lighting applications, not signal LEDs.
  • Put LEDs in series if your supply voltage allows it (judging by the supply in your schematic and blue LEDs, probably not).
  • Consider a current-regulated buck or boost converter instead of a current limiting resistor.
  • PWM, with the correct LED and at the right frequency can increase perceived brightness due to the way the human eye works. See this answer.

Other random comments

The 2N7000 is a poor choice for high-power PWM; it's an old signal MOSFET that is not well-suited for high currents. Its \$R_{DS(on)}\$ worse than 1Ω, maybe upwards of 10Ω in your situation. Use a power MOSFET.

100mA to 300mA after testing, research and consulting the datasheet. This will give me an average current of 1.56mA to 4.69mA and the maximum I can get out of the LEDs without possibly harming them.

I'm not entirely sure how you mean this, but be sure to check if 288mA pulse current is OK for your LEDs. If the datasheet just says "4.5mA max", then 288mA pulsed at 1/64 is likely not OK.

marcelm
  • 2,431
  • 1
  • 16
  • 27
  • 288mA to a single LED is also likely to destroy it in short order. – Hearth Dec 15 '19 at 21:48
  • @Hearth that is already addressed in the last paragraph of my answer ;) – marcelm Dec 15 '19 at 21:49
  • Now I understand, thank you! @Hearth The datasheet says 100mA peak current @10% duty for my LEDs and over that it simply hasn't been tested. Cree.com has LEDs that are tested up to 300mA with a low duty cycle @1<10%, so I think it's reasonable to be within the range of 100-300mA. – C. K. Dec 16 '19 at 00:35
  • @C.K. Sure, but this is still unnecessary. As marcel says, you're not saving any power by doing this. – Hearth Dec 16 '19 at 00:42
  • @Hearth I agree. – C. K. Dec 16 '19 at 00:51
2

I'm going to switch on/off 64 LEDs with a frequency of 100Hz to give the impression that they are all on at the same time. In order to optimize power consumption I want to make sure only one LED is on at any point in time.

This is a poor way to optimize power consumption because it uses the LEDs very inefficiently. From your comments in chat, you are assuming that LED efficiency is constant and independent of how you drive it. But consider this example LED here:

enter image description here

If you had this specific LED, you could drive it at 500mA at obtain 120lm/w, or you could use PWM at 50% duty cycle, use 1000mA, and obtain 16% less light for the same power. Or you could go for the extremes pulse it at 8000mA for 6.25% of the time and obtain only 40 l/w, or about 30% of the original efficiency! That is a huge difference for a battery powered device! The reverse is also true, you can move to the left on the curve if you don't need a lot of brightness and get higher and higher efficiency, at least until the LED becomes too dim to use. This is an extreme case, but it shows that you might get 3-4x better battery life with this diode by minimizing peak current.

Rather than drive off the end of that curve and see how low you can get the efficiency at 1.56% duty cycle, since you have a lot of lights, want to save power and apparently don't need a lot of brightness (given the low duty cycle), you can drive your diodes at 1-2% of their nominal current and have very high efficiency. Either a constant current driver, or a constant voltage driver and a resistor will likely give you better battery life.

Of course, you should check the datasheet for the LEDs you're using (and high efficiency LEDs will come with a datasheet, so if you don't have one, consider using better LEDs). The shape of that curve varies between devices, with some flatter, other steeper. The cost of PWM will also depend on the nominal operating point you have chosen. The cost could thus be larger or smaller, but in general minimizing the variation in current (and thus using the highest possible duty cycle, ideally 100%) will reduce how much power your diodes waste as heat.

user1850479
  • 14,842
  • 1
  • 21
  • 43