Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what PNP transistor to use #71

Closed
masseyjeremy opened this issue Nov 6, 2019 · 3 comments
Closed

what PNP transistor to use #71

masseyjeremy opened this issue Nov 6, 2019 · 3 comments

Comments

@masseyjeremy
Copy link

I plan to try this project out. I'm new to PNP transistors. Can you help me know which one I should buy for this?

@swehner
Copy link
Owner

swehner commented Nov 7, 2019

Hey, basically any transistor is fine to use for these low power applications. It's basically just to not drive the LEDs directly from the Arduino (even though you could porbably power them directly).
You can find sample schemas on other sites - eg. here is a NPN config with a popular and cheap transistor: https://www.petervis.com/Raspberry_PI/Driving_LEDs_with_CMOS_and_TTL_Outputs/Driving_an_LED_Using_Transistors.html
Here are some other recommendations: https://www.baldengineer.com/the-best-4-transistors-to-keep-in-your-parts-kit.html
I guess it depends a bit on where you're going to buy them...

@masseyjeremy
Copy link
Author

masseyjeremy commented Nov 9, 2019

Thanks for the response. Your BOM list mentioned a PNP resistor. So it can be PNP or NPN? I googled the difference and found this: "The main difference between the NPN and PNP transistor is, an NPN transistor turns on when the current flows through the base of the transistor. A PNP transistor turns ON, when there is no current at the base of the transistor." So I just want to make sure I get the right type and dont break something. :) EDIT: Looking into this more, I think i understand it better. It looks like if I follow your wiring diagram, I'll need a PNP transistor, since it looks like the LED load is on the collector side between the transistor and ground.

@swehner
Copy link
Owner

swehner commented Nov 10, 2019

So, as the NPN for a LED driver is the more common setup, I've updated the schematics to use an NPN transistor and I've updated the parts list.
I think the most common one you'll find is the BC548, although there are several other cheap alternatives!
You can see some here: https://en.wikipedia.org/wiki/BC548
I'm gonna resolve the Issue, but feel free to reopen in case you have any more questions!
Thanks!

@swehner swehner closed this as completed Nov 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants