r/arduino•
fishet

Can I use tip31 npn transistors in place of 5v relays?

I have an rgb LED strip(which is shit and not at all optimal for this project but it's what would ship in time) that needs a 24v power source and I want to control the lights from an arduino uno which, to my understanding can only input and output 5v.

My initial thought was to use the transistors as gates that the arduino could open and close. However, having read up on exactly how transistors work I'm worried that the 5v arduino output will not open and close the gate since it is transferring 24v. Which would mean I need to buy 5v relays to act as the gate and since I've already spent ~50$ on shipping and components I'm not too eager to buy more components.

This is all based on the fact that I have a limited knowledge of electronics and programming w/ the arduino. I can't see any other ways than these to accomplish the same effect but if there are any or if all my assumptions are wrong (which is entirely possible) it would be great to know.

I'm on mobile but I will post a shitty sketch of my circuit concept, the links to the specific components I have, and other info when I get home.

Posted Dec 3, 2018, 9:43 PM UTC

315
Loading comments…