Circuit is for controlling the fan on a Raspberry Pi, just on/off according to temp, no PWM. Not sure about the diode as it has a .7V drop and it’s a tiny brushless DC motor. No markings on the fan so I measured the current with a multimeter when hooking it up to a USB charger. Circuit was adapted from here using what I have on hand.

Suggestions? Any advice is greatly appreciated!

*EDIT: Confirmed, this circuit works on a Raspberry Pi 4. Base was wired to GPIO 17 and manually tested using commands:

raspi-gpio set 17 op dh

raspi-gpio set 17 op dl

I didn’t use a breadboard, just hack-n-slash with the wires coming out of the fan, the leads on the thru hole components, a jumper connected to gpio 17 as a socket for the base/resistor lead, and heat shrink tubing for insulation. Folded it up as I closed the housing. Case combo including heatsinks and fan here.

  • @[email protected]
    link
    fedilink
    English
    21 year ago

    I’m no expert by any means and correct me if I’m wrong, but don’t you need a control board to drive brushless DC motors?

    • @MachinistOP
      link
      English
      31 year ago

      The board is built into the motor and should also add flyback protection, that’s why I’m not sure if I need the diode. Give it juice and it spins.

      • @[email protected]
        link
        fedilink
        English
        21 year ago

        The point of the diode is to prevent reverse current that gets induced when a (brushed) motor is turned off. It essentially turns into a small generator while spinning down, and the diode essentially short circuits that. It prevents damage to the rest of the circuit. If that motor is brushless (with an integrated control board), you likely won’t need it but it doesn’t do any harm either.

        • @MachinistOP
          link
          English
          21 year ago

          That’s what I figured as well, there’s some sort of board under the top of the housing. I’m going to leave the diode in.

          I appreciate the advice!

        • glibg10b
          link
          fedilink
          English
          21 year ago

          It essentially turns into a small generator while spinning down

          Kind of like an inductor?