I want to control 4 (or more) LEDs using the PWM output pins of my Arduino.

Here is how I have it on a breadboard, and it's working for me.

Is this schematic inefficient? Are there any issues with this design?

  • 1
    How powerful are your LEDs? – Majenko Aug 6 '18 at 13:52
  • 1
    It'll be more efficient if you'd just connect anode to the PWM output and cathode to the ground through resistor. Now there will be more current through the base to the ground than through LED – KIIV Aug 6 '18 at 14:05
  • I will be using pink, blue, green, and yellow LED's. I need to control each LED independently, and change voltage dynamically (fade on / off or blink etc.. ) Hopefully that helps some. – user3228313 Aug 6 '18 at 14:16
  • @ThomasWeller sorry, do you mean using the PWM output pins to supply power to each LED? If I turn on multiple LED's at the same time, would they receive enough power? I guess I'm not sure if there is a voltage difference when using analogWrite(n, 255) across multiple pins at the same time. – user3228313 Aug 6 '18 at 14:38
  • @KIIV oh wow, I think you're referring to something like the schematic in the answer for this question: arduino.stackexchange.com/questions/34989/… That is really neat and may be a much simpler circuit design. Thanks – user3228313 Aug 6 '18 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.