Powering multiple LEDs from external power

Put relatively simply as it's a simple project i'd like to control around 20ish LEDs from one Arduino. I'm going to make a lamp (with my 3d printer making the frame and stuff). After researching i've found a little bit of conflicting information for doing this. All point to using a shift register ( 74HC595) I have a multiple "power modules" (5v) like the one from the elegoo bundle and a few dc power bricks within the input voltage range. I'm just looking for a visual of wiring ideas for specifically how to wire the arduino, shift register, and external power. I've also seen I should use TPIC6B595 instead how and why? Many thanks just looking for general guidance. Clarification I wish to have multiple different colored LEDs on the lamp sorry for that lack of needed information. Imagine a slowly spinning lamp ( I already have the stepper motor attached to a platform working just need the lighting. As im using a stepper motor im quickly getting pin limited and was looking for a register to assist.

edit typo
edit clarification

NO shift regulator, YES: shift register :sweat_smile:

TPIC6B595 https://www.ti.com/lit/ds/symlink/tpic6b595.pdf

  • Outputs of 150-mA
  • Output Clamp Voltage, 50 V

The TPIC6B595 can directly operate devices that a 74HC595 could not due to low output current (and voltage).

The 74HC595 needs a power driver to operate larger loads:

What do you mean by control? If this is simply a lamp, why do you need shift registers? Why do you need an Arduino at all?

@PaulRB Sorry for not including that I will be using different color LEDs with this "lamp". As such ill probably use a couple shift registers and many LEDs. I'd like to change the color as I wish.

edit end project isn't what im currently looking at. Im mostly looking at the simple step of powering multiple leds from a external power source.

You don't need or want shift registers for that, but an Arduino is useful.

I think you need only 3 PWM outputs from the arduino plus some transistors and resistors.

Let's say you use 7 red + 7 green + 7 blue. With 5V supply, you will need to wire them in parallel, each with its own series resistor (maybe pairs in series for the red LEDs). Each led can draw up to 20mA so 140mA for each colour channel. An ordinary npn transistor like bc337 will be fine. Use 220R resistors to connect the transistor bases to the PWM pins.

OK, here's the problem. :roll_eyes:

To answer this, we need actual information. You need to start making some sense.

What LEDs? What current do they require? You say 20 LEDs. How do you wish to control them? Specifically, do they need to be controlled individually, or in groups. Do they need to be dimmed, or just switched on and off?

What is the purpose of the lamp with 20 LEDs?

This is what I started to learn about. Literally started watching transistor videos before seeing this but you're correct and that will be what im going with. Many thanks!

Wanted to show what I ended up doing just for anyone who visits this post with a similar goal.

I eventually ended up on this post https://create.arduino.cc/projecthub/SBR/switching-using-transistor-c9114a
He went over exactly what I needed. Another thanks to PaulRB for pointing me correctly! learned a lot already about how transistors work.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.