Test circuit for curiosity : 2 x NE555 (astable + PWM) + n-mosfet + var 10k + pc fan

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bendeg
    Member
    • Apr 2023
    • 24
    • Belgium

    #1

    Test circuit for curiosity : 2 x NE555 (astable + PWM) + n-mosfet + var 10k + pc fan

    Hi reader,

    I'm trying to control a pc fan speed by giving PWM to the gate of a n-mosfet.

    1) generation of a clock with a 555 timer (~ 1,5 kHz, as seen in the datasheet, fig.12) (Vcc = 6V).
    Output to TRIG of second timer (pin 2) + red led

    2) generation of a PWM with a second 555 timer (as seen in the datasheet, fig.18), CONT (pin 5) modulated by a variable 10k resistor (Vcc)

    3) Using output of second timer to "pulse" n-mosfet gate (MDP13N50) + yellow led

    4) pc fan (12V, 0.18A) in series in drain-source of mosfet (with another 12V power supply)

    (see circuit diagram attached, circuit made on a breadboard)

    Looks like it works at least partially : I can see the second led (yellow) becoming brighter/dimmer when I change potentiometer value but the fan isn't doing anything...

    BUT : fan spins only if I touch the ground of first power supply (Vcc=6V, suppplying both timers) and the drain (= the case) of the mosfet, then and only then, speed change if I change potentiometer.
    Sometimes, when I remove my hand from ground, it spins even faster (not much though), sometimes not...

    Nothing burns, nothing is hot...

    What am I doing wrong ?
    Attached Files
  • eccerr0r
    Solder Sloth
    • Nov 2012
    • 8661
    • USA

    #2
    Re: Test circuit for curiosity : 2 x NE555 (astable + PWM) + n-mosfet + var 10k + pc

    more mosfet abuse:

    mosfets are not relays. And you still need a common ground.

    mosfets will short drain to source if the voltage from gate to source exceeds its threshold.

    So if PS1 and PS2 are galvanically isolated from each other, what you should do is hook up PS1's GND to the source of your mosfet, and it should work.

    If PS1 and PS2 are NOT galvanically isolated from each other and share a same ground, you cannot use the circuit as is. The easy solution is to use the mosfet to "switch" the GND of the fan - connect the fan v+ directly to PS2, fan's V- to drain of the mosfet, and mosfet's source to GND.

    of course a dim LED does not necessarily mean the fan will behave the same way so likely you'll still need to change the time constants of the second 555.

    Comment

    • bendeg
      Member
      • Apr 2023
      • 24
      • Belgium

      #3
      Re: Test circuit for curiosity : 2 x NE555 (astable + PWM) + n-mosfet + var 10k + pc

      I tried your "easy solution and, indeed, it works.
      GNDs of PS1 and PS2 are connected (I tried that as well before posting, without success...).

      But now I can hear what I think is most probably the frequency of the PWM : the sound, which is not loud, definitely comes from the fan circuit.
      The tone gets higher if I make it faster (10k-pot of 1st timer AND 10k-pot to modulate second timer).
      Funny but a bit scary though, I don't like that much, looks like it will break or something if I let it turn too much time...But again, no magic smoke or magic smell...

      For the time constant of second 555, I read in the datasheet that it should be close to 1/4 of the first timer constant (clock), (period ~ 14.5 ms).
      By using a 220R with a 22nF capacitor, I think I'm not that far from that ratio (~4.8 ms, a bit too long though), maybe i should chose a lower resistor.

      Anyway, thank you very much for your advices ! Undoubtely , I've more to learn...

      Comment

      • momaka
        master hoarder
        • May 2008
        • 12160
        • Bulgaria

        #4
        Re: Test circuit for curiosity : 2 x NE555 (astable + PWM) + n-mosfet + var 10k + pc

        If all the O/P is trying to do is to control the fan speed with a PWM signal, this can easily be done with only ONE 555 timer and N-ch MOSFET...

        If tachometer output from the fan (assuming a 3-wire PC fan) is to be preserved and accurate, then replace the N-ch MOSFET with a PNP BJT (and switch its position to modulate Vcc to the fan rather than modulate its ground). If driving a bigger PNP, might have to use an NPN driver circuit with a collector pull-up resistor for the NPN (base "pull-down" resistor for the PNP.)

        Comment

        • bendeg
          Member
          • Apr 2023
          • 24
          • Belgium

          #5
          Re: Test circuit for curiosity : 2 x NE555 (astable + PWM) + n-mosfet + var 10k + pc

          @momaka,

          Indeed, it's possible to modulate duty cycle with only one 555. I'll try that.

          I'll try with BJTs once I've got a bigger transistor than a tiny BC547, max 100mA for collector current if I'm not mistaken (fan demands twice as much). Or use 2 of them in parallel, is that possible to do ?

          But, as I can see on the net, those 3 pins fans aren't very well suited for PWM driving, better use 4 pins fans which are designed to be controlled with PWM...

          Anyway, thank you very much for your advices !

          Comment

          • bendeg
            Member
            • Apr 2023
            • 24
            • Belgium

            #6
            Re: Test circuit for curiosity : 2 x NE555 (astable + PWM) + n-mosfet + var 10k + pc

            Little update for those who might be interested.

            Different tests :

            1) Same config as original but n-mosfet changed : IRF520 (2V < Vgs < 4V), instead of a MDP13N50 (3V < Vgs < 5V)
            => works better.

            2) Without second 555 and Ra = 10k-pot instead of 1k-fixed to modulate duty cycle) : output of 555 direct to base of IRF520.
            Working.

            3) Same config as point 2) but replacing n-mosfet IRF520 with 3 npn BC547 in parallel (fan demands ~200mA, BC547 collector-emitter supports only 100mA current) and a base 10k limiting resistor. No limiting resistor in collector-emitter circuit. Fan on collector side.
            Working.


            There's no annoying audible noise if frequency if high enough : tested from ~48kHz => ~230kHz (measured by my DMM, I wish I had an oscilloscope...).

            It would probably better to use other pot values for Ra and Rb : speed variation is not linear (in all cases), I think max fan speed isn't reached.
            It is rather difficult to tune the speed smoothly in a linear way.

            Comment

            Related Topics

            Collapse

            • DeanWy
              WD Sentinel DS5100 (NAS) boot issues
              by DeanWy
              Hi all,

              I have a Western Digital Sentinel DS5100 NAS system which has stopped working. It has dual BIOS. I bought the system second hand with an already broken primary BIOS (it rebooted multiple times until second BIOS was used).

              It worked until recently. The system was idle in Windows Server 2012 and a BSOD occurred, I think it was 'critical process died'. Thereafter it didn't boot, it just sat there with no video output and fan speed at 100% (there's a proprietary Windows driver by WD which controls the fan, outside of that it always runs at 100%).

              There...
              07-30-2024, 04:13 AM
            • vieuxchoub
              Psu repair: UC3845 not starting up because of NE555 defect
              by vieuxchoub
              Dear friends from Badcaps
              I have been searching for a long time to repair sucessfully a battery charger taking in 230V AC and outputting normally 14V DC. Its power mosfet has been shorted ( Infineon 06N80C3), probably because the bulk storage rectifier capacitor had swollen and had no capacitance anymore and a very high resistance.. The mosfet short has naturaly blown its 0.15 ohms resistor then its driver, the UC3845 IC which was shorted between pins 5 (ground) and 7 (vcc) plus 8 (Vref). Another small resistor surrounding was also dead. So, I have replaced the bulk storage capacitor, the...
              12-02-2023, 12:56 PM
            • Storyteller12
              Need help picking 12v timer!!
              by Storyteller12
              I need a 12v timer that cuts on when 12v applied (when door is opened) and cuts off after 2 minutes even if he door stays open with the 12v trigger. And resets when door is closed.

              The ones I see tend to start the timer when powered down. (Momentary switch)

              Thanks in advance
              09-05-2022, 07:24 AM
            • repair-it
              TOSHIBA DLP 52HM95 How to reset timer module on bulb
              by repair-it
              I replaced the bulb only on my Toshiba DLP The bulb is a TB-25. This is the first time I've done a bulb only replacement. Supposedly there is a timer module that needs to be re-calibrated or reset. I don't know where the module is located. I see some vendors selling the bulb with the housing stating module included which leads me to think the module is located inside the enclosure the bulb mounts in, but I didn't see it. Maybe it's inside the plug attached to the bulb?

              Anyway - I am seeking information on how to reset this so called module so that the lamp will operate. Apparently...
              10-11-2023, 07:18 PM
            • modd1uk
              Dell 5420 - First timer, messed it up, need help please.
              by modd1uk
              Hi guys

              Its my own fault, I'm just hoping somebody can help and the laptop isn't bricked.

              The BIOS chip is a 25rh256cxiq, I read it using neoprogrammer 2.2.0.10 but like a complete idiot didn't search the chip, it was set to the wrong chip, I read the BIOS, unlocked it, flashed the unlocked file and now the laptop is dead, won't even try to power on, only after I'd flashed it I realised the wrong chip was selected.

              How stuffed am I? Is there a way to flash a generic Dell Latitude 5420 BIOS so I'm not stuck with a dead paper weight?

              I have another...
              03-22-2025, 03:24 PM
            • Loading...
            • No more items.
            Working...