this post was submitted on 04 Jan 2025
114 points (95.2% liked)

nocontextpics

106 readers
35 users here now

no context pics;

only your own photos;

title has to be "PIC";

context may be provided in the comments;

just post whatever you want, maybe someone finds it interesting

(you probably remember the rules from reddit)

founded 1 month ago
MODERATORS
114
PIC (feddit.org)
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
 
you are viewing a single comment's thread
view the rest of the comments
[–] Treczoks 2 points 1 week ago (1 children)

That is another way. Having a shift register allows you to have quite a lot of strips connected to your chip, for the "cost" of three pins in total, more or less regardless of how many different strips you want to drive.

If you only want to drive one strip, though, a suitable transistor/MOSFET is a better choice, as you can adapt the schematics to your power requirements.

[–] glimse 3 points 1 week ago (1 children)

And make sure you connect the mosfet the right way so it doesn't "kinda" work and make you think your code is bad. Not that anyone has ever done that ever.

[–] Treczoks 1 points 1 week ago (1 children)

With a 30A mosfet under load, you'll soon notice, I'm sure.

[–] glimse 1 points 1 week ago

Thankfully it was during my "let's see if my code works so far" phase as I learned LESs so I only had a dozen connected. I spent a looonnnggg time trying to figure out why my button was turning the LEDs on full brightness instead of fading on. No idea if I fried it, once I figured it out I replaced it with one of the other 50 I ordered (and haven't touched since)