0

I have a project that requires a fan to keep the Pi cool due to the terrible ventilation. It's a 5v 0.6w fan. So I thought I could use this wiring here: enter image description here

Instead of 12v it would be 5 from a UBEC, and that same UBEC would also be powering the raspberry pi through the GPIO. Would this work? If so, for the transistor do I use an NPN or PNP? I have a PN2222A. Lastly, how do I find which resistor to use for the base of the transistor.

9
  • 1
    Isn't this covered somewhere in the many similar if not identical questions?
    – joan
    May 13 '16 at 14:43
  • @joan I looked at those. I believe my application is different because of the UBEC. Also, I don't want to risk frying something :-).
    – NULL
    May 13 '16 at 15:05
  • 1
    "that same UBEC would also be powering the raspberry pi through the GPIO" wow wait, what do you actually mean by that?
    – DimP
    May 13 '16 at 15:31
  • @DimP I mean the UBEC 5v output is wired to the 5v and ground GPIO pins to power the Pi. It is also wired to the fan where 12v is shown in the diagram.
    – NULL
    May 13 '16 at 15:57
  • @DimP This is what I am using: amazon.com/Ship-Hobbywing-Switch-mode-UBEC-Lowest/dp/B008ZNWOYY/…
    – NULL
    May 13 '16 at 15:58

Browse other questions tagged or ask your own question.