I disassembled an AMD CPU Wraith Cooler, meaning, I took the fan off of the heatsink, because I want to attach the fan on top of a Raspberry Pi that I’m using as a router. The Pi runs quite hot because it transmits several hundred megabytes per second, non stop, and I want to give it some cooling. (It already has its own heatsinks on its various chips inside the chassi and I don’t want to use the little shitty Okdo fan, because it’s loud.)

Is there any smart solution to how I could power this 4-pin fan? It needs 12V DC.

This is the Pi with its chassi.

And I’m considering something barbaric like this.

Are there perhaps conveniently positioned GPIO pins on the Pi that the 4-pin connector could just slide on to and just work? Never mind this. The Pi 4 that I’m using can only output 5V:

Or would I need to cut off the 4-pin connector to expose the individual wires and attach them to a 12V DC adapter?

Or any other genuis solutions? :)

  • fuzzy_tinker@lemmy.world
    link
    fedilink
    arrow-up
    6
    ·
    19 hours ago

    1st, do not power the fan from the pi if possible to avoid any underpower headaches. It should be fine.

    Your best bet is to just power it at 5v using a standard USB wall wart and a sacrificial USB cable (old 2.0 ones work best). Strip the USB cable and expose the positive and negative wires and hook them up to the positive and negative fan pins (identify these using a 4pin fan header diagram). You can either try just shoving the tips of the USB cable into the fan header using electrical tape as a quick bodge, or cut and strip the fan cables and twist them together.

  • fuckwit_mcbumcrumble@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    7
    ·
    21 hours ago

    You can buy usb to 12v fan adapters for like $8 on Amazon.

    But for a pi you don’t need that fan to run at full speed, just the 5V of USB or that header + any sort of a heatsink on the CPU will be plenty.

  • Orygin@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    19 hours ago

    You can use a transistor to pwm the 12v input to the fan. I used IRLZ44n to this effect since they work ok at logic level. There are better transistors but the principle is the same

    • emotional_soup_88@programming.devOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      19 hours ago

      Nice! I was just going to ask if I should add in a potentiometer to regulate the fan speed. But you say it should be a transistor? I’m a complete noob at hardware, so please excuse any inaccurate lingo. 😅

      • Orygin@sh.itjust.works
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        2 hours ago

        The pot is if you want to control the speed manually. The transistor if you want to control it from the pi (from the temperature for example).

        If you want a potentiometer, there are two ways I think :
        Have the potentiometer plugged to the pi ADC input, and in software regulate the pwm output to the transistor based on the signal coming from the pot.
        Another way is to have the potentiometer in series with the fan and only control it from the pot. I’ve never built any circuit like this so there may be consideration to be put into the max current the pot can handle, but I guess for a small fan it could be okay.
        In both cases you’ll need a 12v source. Either a 12v power supply, or a DC step up from 5v (from the 5v power supply (maybe the same as the pi), not from a pin on the raspberry as it can’t draw much current). In both cases, the grounds should be tied together so they all see the same voltage in reference to ground.

        I can help you further if you want, but don’t hesitate to ask a LLM for it as they can be quite good now for such circuits, and can in theory explain concepts you don’t yet understand.

    • emotional_soup_88@programming.devOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      19 hours ago

      Thanks, I thought of that too, and I’ll go with that if this doesn’t work. I just didn’t want this little Wraith lying around unused and the size fits so well on the Pi 😄

  • meathorse@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    21 hours ago

    12v fans will typically run fine, albeit much slower at 5v. This was a favorite trick many moons ago to reduce fan noise in desktops before quiet fans became mainstream. The main watch out is that the fan doesn’t stall at startup and fail to spin completely.

    • Chronographs@lemmy.zip
      link
      fedilink
      English
      arrow-up
      1
      ·
      17 hours ago

      That would obviously work with older dc fans but modern ones use pwm which iirc is a constant voltage just pulsed to varying degrees (thus pulse width modulation)

    • emotional_soup_88@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      19 hours ago

      Right, so less voltage, less speed. Couldn’t I “shove” a potentiometer in between and give it around 7,5V or whatever gives the best noise to temp results?

  • exu@feditown.com
    link
    fedilink
    English
    arrow-up
    3
    ·
    21 hours ago

    I think PWM fans need 12V all the time. Maybe you have a cheap 3-pin fan, then you can just give it 5V. It’ll run slower, but you probably don’t need full power.

    You could get a cheap boost convert to up 5V to 12V if you want the Pi to power it.