Controlling an Array of 12V Incandescent Bulbs

I've been looking for the easiest way to control an array of 12V miniature incandescent bulbs, like these: https://amzn.to/3GdVhnc. I'll need 22 channels, about half with 1 bulb, the other half with 2 bulbs, so a maximum of .6A on each channel. (It's for an eggcrate display: Text display - Wikipedia)

At first, I was looking at using a TLC5947 board (Adafruit 24-Channel 12-bit PWM LED Driver - SPI Interface [TLC5947] : ID 1429 : $14.95 : Adafruit Industries, Unique & fun DIY electronics and kits) with mosfets, but apparently it's a bit more complicated, according to this post: TLC5947 and Mosfets - adafruit industries.

PWM would be nice, but isn't strictly necessary. If I can find an easier way to switch these bulbs, I can forego dimming. Time is a more important factor with this project. If I could find something like this (https://amzn.to/3zIUqc0) in a multi-channel board, so I didn't have to use 22 separate modules, I could just use a controller board with enough I/O pins and I'd be happy.

Any recommendations?

You need a FET to switch such a high load. There are lots of different ones, this is a link to one type.
https://www.adafruit.com/product/355

By array I am assuming that you do not mean an array in the computing sense which implies a scanning multiplexed matrix but just several bulbs.

Try searching for incandescent matrix display.
HERE
Is there any particular reason you want to use ‘lamps’ rather than LEDs ?

Ok, so 30mA per port will not drive the incandescent bulbs. But you could use PNP BJTs for each bulb (BC327, for instance) driven directly by the TLC5947. Perhaps replacing the preinstalled resistor on the IREF pin of the TLC5947 with a 5.6K resistor to limit the transistor base current to some 8mA

I wouldn’t expect flickering with incandescent bulbs, and you would still have PWM to control intensity.

Am I missing something here?

Thanks, Mike. Correct, I just mean a bunch of bulbs arranged in a grid.

Apparently with the TLC5947, you have to couple MOSFETs with PNP transistors, according to the link in my second paragraph. I can do that, I'm just searching for as simple a solution as possible. I'm afraid the more components, the more troubleshooting I'll have to do. I'm not an expert and I have little time to complete this one.

Yes, because LEDs don't look like indicator bulbs. :wink: It's meant to look vintage.

Yes that is why I suggested just using a single FET to drive each bulb. It can be connected directly to the output pin of an Arduino, the ground, bulb and bulb power supply.
If you want dimming you can use a software PWM to make all outputs into PWM pins.

Oh, sorry, you mean skip the TLC5947 entirely. Yeah, that makes sense.

What about mancera1979's suggestion to use a PNP alone with the TLC, like the one below? I still have a lot to learn, so I don't know what will work and what won't here.

Also, I have to keep in mind I might have no choice to use some kind of board to extend the number of I/O pins. I can't go into all the details, but whichever Arduino board I use will have to come from a specific local supplier and I don't know yet which models they'll have available. (It's a sponsorship arrangement.)

Can't.
The base of a PNP transistor must be pulled up to the lamp supply (12volt) to turn the transistor OFF. But max voltage on the TLC output can only be VCC+0.3volt (about 5volt).

NPN or PNP transistors need a fair amount of base current, that could total more than the Arduino can safely supply. You could use darlingtons (TIP120) or logic level mosfets (more efficient).

Can use port expanders, or 3x 74HC595 to drive the mosfets.
That only uses three Arduino pins.
Use the enable pin for overall brightness control.
Leo..

Yes you can.

I apologize, I don't mean to be dense. Did you mean that I can use TIP120s with the TLC? Or only with the port expanders/shift registers?

The TLC is a constant current sink (switching to ground) LED driver,
so is not really suitable to drive transistors that need a source (supplying base/gate current) driver.

I would go for three 74HC595 shift registers to drive the mosfets.
A TIP120 with 1k base resistor is also ok, but expect to loose a volt or so from your 12volt supply.
But that might be a good thing for the bulb's lifespan.

The transistors must be mounted on strip-board anyway, so adding three chips is not much extra work.

CrossRoads (member and moderator here) had turn-key solutions, but I just read that he recently passed away from Covid. Maybe his wife has still stock.
He was a great contributor to this forum, and will be sadly missed.
Leo..

Yeah, I was trying to avoid as much circuit work as i could, but I guess I'll just bite the bullet. I think I may even order some of these through-hole lamp sockets I discovered and maybe mount everything on one board.

So, I'll order 74HC595N shift registers and some FQP30N06L mosfets. Is there anything else I'm not thinking of? Do I need a resistor between the gate and ground? I'm finding similar circuits online both with and without.

First diagram here.
The gate resistor is there for Arduino or 74HC595 pin safety, and the resistor to ground keeps the fet off during bootup. The diode is not needed for light bulbs.
Leo..

Excellent. Thanks so much for the help! I can usually get my head wrapped around it all after enough searching and trial-and-error, but I appreciate you guys helping me save a lot time.

The TLC output will sink either no current (cutting off the transistor) or the constant current set by resistor at IREF (saturating the transistor).

Usually the base current is limited by a resistor. In this case the TLC will limit the current, no base resistor required. Just remember to change the resistor that connects the IREF to ground to a suitable value. I guess 10mA of base current will keep Vce low enough to limit the transistor power consumption to around 450mW for the double-bulbs

You would then need one TLC and 22 PNP transistors

Given that one TLF has only 16 outputs where do the other 6 go?

Look the TLF5947 is the wrong chip to use. It needs refreshing constantly and if you invert the output then you can never turn the load off. This is because normally you can never turn the load fully on, only to one off the full brightness. You don’t notice this because the LEDs are very bright. When you invert the output this behaviour inverts and you can never turn the load fully off. You do notice this because you see the LEDs on at minimum brightness.

The TLC5947 comes with 24 output channels

Sorry yes, I was thinking of the TLC5940.
But the rest of my comments still apply.
This is not the chip for this project as there is no requirement to adjust the brightness of each individual bulb. It is just the waste of a chip.

Why not use 74HC595 together with ULN2803? Or instead of ULN2803 to use several MOSFET as IRLML2502?