Giter VIP home page Giter VIP logo

Comments (3)

swehner avatar swehner commented on August 24, 2024

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...

from foos.

masseyjeremy avatar masseyjeremy commented on August 24, 2024

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.

from foos.

swehner avatar swehner commented on August 24, 2024

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!

from foos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.