Skip to main content
Arduino

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Required fields*

How can I best control various high power LEDs without using PWM

I want to be able to dim various high powered (20mA) LEDs in an array (8X12 LEDs). I do not need individual control, but would like to be able to dim each row (or two rows together) so that I can create gradients.

An important caveat is that I can't use pulse width modulation (PWM) as there should be no flashing whatsoever, even if it is invisible to humans.

How can I best achieve this? (I do not care about energy efficiency)

The fist thing I found which seemed to be the right solution in the beginning is using digital potentiometers as explained in this tutorial. However they only support low currents so I can't use one channel for 8 or 16 LEDs. Maybe I could use various digipots in parallel with one Arduino, each powering 1 LED per channel? But that sounds overcomplicated and a nightmare to wire up. Is there a more elegant solution?

Answer*

Draft saved
Draft discarded
Cancel
2
  • Thank you very much for your response! Please bear with me, I am far from an electrical engineer. If I understood you correctly, the basic idea is to use transistors (Q) to create the dynamic resistance for the LEDs. The resistance of the transistors in turn is controlled through the digipot (V1). How many LEDs could I wire to a single transistor without burning it? Ideally I would like to wire 8 LEDS (one row) per transistor. Is there a specific transistor you would recommend? I guess I need high max resistance to be able to dim the LEDs to almost off. Commented Apr 26, 2015 at 15:41
  • 1
    (1) Re "How many LEDs", see example power calcs, added at end. (2) Re "high max resistance" for dimming, see added note: "When V1 is set to less than VBE, no current will flow through the LEDs". Ie, low V1 voltage turns LEDs off, rather than a large resistor doing so. Commented Apr 26, 2015 at 21:18

AltStyle によって変換されたページ (->オリジナル) /