• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Motor Controller / How to Make a PWM Controlled Fan Regulator Circuit

DIY Circuits | Learn Basics | Arduino Coding




How to Make a PWM Controlled Fan Regulator Circuit

Last Updated on January 3, 2025 by Swagatam 71 Comments

In this article we look into a simple 220V mains PWM controlled fan or light regulator circuit which does not require a microcontroller or costly triac drivers for the intended operations.

Capacitive Phase Chopping

All Ordinary types fan regulator and dimmers which rely on capacitive phase chopping technology have one drawback in common, these generate a lot of RF noise and require bulky inductors for controlling them partially.

Furthermore, the switching or the phase chopping being done using ordinary capacitor diac technology lack accuracy and sharpness.

The proposed mains transformerless PWM controlled fan regulator circuit designed by me is free from all such possible issues normally accompanied with traditional fan or light dimmers since it uses an advanced CMOS IC based circuit and an accurate zero crossing detector stage.

No MCUs Used

The best thing about this circuit is that it does not require microcontrollers and programming, and also a triac driver has been eliminated making the circuit extremely easy to build even for the new hobbyists.

I have explained the configuration in detail, which is rather too straightforward:

Referring to the circuit, IC1 which is a 4060 timer chip is configured to produce a delayed positive pulse for the triac each time the phase crosses the zero line of its phase angle.

The entire circuit is powered from an ordinary capacitive power supply using C1, D5, Z1 and C3.

IC1 is configured in its standard form for generating a delayed switch ON or a high every time its pin12 goes through a reset action.

Zero Crossing Switching for the Triac

The dimming action or the phase control action is achieved by making the triac to conduct after a predetermined delay each time a zero crossing is detected.

If this delay is short, it means the triac gets an opportunity to conduct for a greater amount of time for the phase angles, causing the connected fan to spin faster or the light to shine to brighter.

As this delay is increased, the triac is forced to conduct for proportionately shorter durations across the phase angles producing a proportionate amount of reduction over the speed or the brightness of the connected fan or the light respectively.

The zero crossing operation is simply enforced by using an ordinary opto coupler, as can be witnessed in the given diagram.

The bridge D1---D4 transforms the alternating phase angle into equivalent 100 Hz positive pulses.

The LEd and the transistor inside the opto coupler responds to these positive 100Hz pulses and stays switched ON only for so long as the pulses are 0.8V above the zero mark and switches OFF instantly as the pulses reach the zero crossing point.

While the opto transistor is in the conducting phase, the IC pin12 is held at ground level allowing a delay or a predetermined negativestarting pulse for the triac gate.

However at the zero crossing levels the opto switches OFF, resetting the pin12 of the IC such that the IC pin3 restarts a fresh or a new delay for the triac to respond for that particular phase angle.

PWM Phase Control

The length or the pulse width of this delay pulse can be varied by suitably adjusting VR1 which also becomes the speed control knob for the discussed PWM controlled fan regulator circuit.

VR1 and C2 must be selected such that the maximum delay produced by these should not exceed the 1/100 = 0.01 second timing in order to ensure a linearly incrementing 0 to full calibration over the given control knob.

The above could be implemented by some trial error or by using the standard formula for IC 4060.

For the above you may also experiment the other outputs of the IC.

 Circuit Diagram

Construction and Connection

Power Supply Section

C1 (Capacitor):

Connect one terminal of the high-voltage capacitor (e.g., 0.33uF, 400V) to one of the AC mains input wires.

Connect the other terminal to one of the input terminals of the bridge rectifier (D1–D4).

D1–D4 (Bridge Rectifier):

Arrange the diodes to form a bridge rectifier.

Connect one AC terminal of the bridge rectifier to C1, and the other AC terminal to the other AC mains input wire.

The positive output of the bridge rectifier goes to the zener diode (Z1) and the circuit's DC supply.

The negative output serves as the ground, for the circuit.

Z1 (Zener Diode):

Connect the cathode of the zener diode (marked end), to the positive output of the bridge rectifier.

Connect the anode to ground.

This zener regulates the DC voltage for the control circuit, (typically 12V).

R1 and R2 (Resistors):

R1 connects in series with C1 to limit the current from the AC mains.

R2 connects between the positive DC supply, and the optocouplers input LED (inside OPTO1) to limit the current through the LED.

Oscillator Setup with the 4060 IC

The 4060 IC is used to generate a timing signal. Follow these steps to configure the oscillator:

Pin Connections:

Pin 16 (Vcc): Connect to the positive DC supply (regulated by Z1).

Pin 8 (GND): Connect to the ground.

Pin 12 (Oscillator Output): This pin outputs the oscillating frequency and is used as the input to the TRIAC/MOSFET gate.

Resistors (R3 and R6) and Capacitor (C2):

Connect R3 between Pin 10 and Pin 11 (oscillator timing pins).

Connect R6 between Pin 11 and Pin 9 (oscillator input pin).

Connect C2 between Pin 9 and ground.

These components set the frequency of the oscillator.

Formula for frequency (f):

f = 1 / (2.2 * R3 * C2)

R3 = Timing resistor between Pins 10 and 11.

C2 = Timing capacitor between Pin 9 and ground.

Adjust R6 (or replace it with a variable resistor/VR1) to fine-tune the frequency.

Reset Pin (Pin 12):

Leave this unconnected if not needed, or connect to ground via a small resistor to avoid floating.

Oscillator Output (Pin 3 or another Q Output):

Choose an appropriate Q output pin (e.g., Pin 3 or others like Q4, Q5) to deliver the timing signal to the gate/base of the TRIAC/MOSFET (TR1).

The selected Q pin depends on the desired frequency division factor.

Output Switching Section

TR1 (Switching Device - TRIAC/MOSFET):

Connect the gate/base of TR1 to the oscillator output pin (e.g., Pin 3 of IC 4060) through R3.

Connect one terminal (MT1/source) to the AC mains neutral and the other terminal (MT2/drain) to one end of the fan.

D5 (Freewheeling Diode):

Place D5 across the fan terminals as a protection mechanism.

Fan Load

    Connect the fan in series with the TRIAC/MOSFET.

    • One terminal of the fan connects to the AC live wire.
    • The other terminal connects to MT2 (or drain) of TR1.

    Ensure that the fans current and voltage ratings match the circuit's capacity.

    Adjusting the Fan Speed

      Frequency Tuning:

      The fan speed is indirectly proportional to the frequency of the oscillator.

      Adjust R6 or replace it with a potentiometer (VR1) to control the oscillator frequency, which alters the effective power delivered to the fan.

      A lower frequency allows the TRIAC/MOSFET to remain "on" for a longer time, increasing the fan speed.

      Zener Diode Protection:

      Use a zener diode across the fan terminals to clamp voltage spikes.

      Formulas and Calculations

      Oscillator Frequency:

      f = 1 / (2.2 * R3 * C2)

      R3 and C2 define the base frequency.

      Effective Power Delivered to the Fan:

      P = V * I * Duty Cycle

      Adjusting the oscillator frequency indirectly controls the duty cycle and, consequently, the power.

      Capacitor Selection for Timing (C2):

      C2 = 1 / (2.2 * f * R3)

      Assembly Notes

      4060 IC Socket:

      Use an IC socket for mounting the IC, because as this makes it easier to replace in case of failure.

      PCB Layout:

      Place the timing components (R3, R6, C2) close to the 4060 IC to reduce the noise.

      Testing:

      Before connecting the fan use an oscilloscope to verify the frequency at the oscillator output pin.

      Adjust R6/VR1 and, observe the changes in frequency.

      Parts List

      R1, R5 = 1M
      R2, R3, R4 R6 = 10K
      VR1, C2 = SEE TEXT
      OPTO = 4N35 OR ANY STANDARD
      C1 = 0.22uF/400v
      C3 = 100uF/25V
      D1---D5 = 1N4007
      Z1 = 12V
      IC1 = 4060
      TRIAC = BT136

      Waveform Simulation

      The delay waveform image below shows how the phase for the fan may be delayed at every zero crossing, for the various settings of VR1 and C2.

      Smart PWM Fan Regulator Using IC 555

      Almost all light/fan regulator circuits make use of a silicon-controlled rectifier (triac or SCR).

      These devices are switched with a predetermined phase angle which subsequently stays in the conduction mode until the following zero crossing of the mains AC cycle.

      This process looks easy, however simultaneously it presents difficulties while controlling smaller loads or which are inductive in nature causing hysteresis and flickering.

      The reason of these issues depend on the truth that due to smaller load wattage the current delivered to the devices is inadequate to sustain their conduction.

      Therefore a region of the control characteristic is not thoroughly implemented. The outcome further deteriorates for the loads that are inductive.

      How the Circuit Works

      The proposed AC 220V PWM regulator circuit using IC 555 gives you a simple solution by supplying the triac with a constant gate current, to ensure that loads as nominal as 1 watt is also controlled smoothly.

      To have the circuit as compact and straightforward as it can be, we utilize the popular timer IC 555.

      The output of the IC 555, which can be typically triggered high, is activated low through a negative potential input.

      This negative supply is made available from the stage comprising C1-R3, rectifier D1 -D2, along with stabilizer section D3-C2. BJTs T1 to T3 deliver a initializing pulse on the trigger input pin#2 of the 555 for each of the zero crossings of the mains AC input.

      During a PWM period, as decided by the adjustment of P1 and P2, the output of the IC 555 is usually high, and we, therefore, have practically zero voltage difference across pins 3 and pin 8, i.e. the triac remains switched off.

      As soon as the set interval is elapsed, pin 3 becomes low and the triac is activated.

      For the rest of the half AC cycle, a gate current keeps running, which allows the the triac to continue to conduct.

      The lowest point where, let's say, a light bulb need not just illuminate, is determined by carefully adjusting the pot P1. Filter R7 C5 L1 supplies the necessary decoupling for the triac.

      As a final point, remember that the absolute maximum power that could be governed by this IC 555 based smart regulator switch should not exceed 600 watts.

      You'll also like:

      • refrigerator soft start circuitRefrigerator Motor Soft Start Circuit
      • motor control using a variac compressedDC Shunt Motor Controller Circuit using Variac
      • ceiling fan regulator circuitSimple Ceiling Fan Regulator Circuit
      • 3 Phase Brushless (BLDC) Motor Driver Circuit

      Filed Under: Motor Controller Tagged With: Controlled, PWM, Regulator

      About Swagatam

      I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

      And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

      If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!

      Previous Post: « Simple Walkie Talkie Circuit
      Next Post: Refrigerator Motor Soft Start Circuit »

      Reader Interactions

      Comments

      Rakesh Maurya says:
      June 26, 2016 at 2:47 am

      Dear sir

      what is voltage value of 0.05uf and 0.01uf in your circuit diagram

      2.bp.blogspot.com/-sRFuO1CGSzI/U4wtybAo_YI/AAAAAAAAHFA/nE9Uo6Qhdho/s1600/triac+controlled+PWM+inverter+circuit.png

      Reply
      Rakesh Maurya says:
      June 24, 2016 at 3:28 am

      Thank you sir

      Reply
      Rakesh Maurya says:
      June 23, 2016 at 2:59 pm

      Dear sir can i use MOC3021 with BTA41 600V for light dimmer or motor speed controller

      Reply
      Swagatam says:
      June 24, 2016 at 2:59 am

      Dear Rakesh, yes you can use them together

      Reply
      AlFa says:
      February 4, 2015 at 8:57 pm

      Dear Sir Swagatam

      The ground plane PWM regulator circuit is the negative you get the rectifier bridge D1-D4, I mean where is the negative of Z1, C3 and IC1.

      Thank you very much for your reply

      Best regards

      Reply
      AlFa says:
      February 6, 2015 at 4:38 am

      Thank you very much dear Swagatam.

      Reply
      Swagatam says:
      February 5, 2015 at 8:16 am

      Dear AIFa,

      the bridge is only for the opto and for implementing the zero crossing detection….the actual ground of the circuit the line which connects with pin8 of the iC 4060

      Reply
      oliver oliveros says:
      September 30, 2014 at 5:55 pm

      Hi Swagatam,

      what is the best value of Rt and Ct?

      Thanks

      Reply
      Swagatam says:
      October 2, 2014 at 5:19 am

      VR1 is a pot or a variable resistor, R4 is for making sure that even at minimum pot value the IC does not stall.

      It would be difficult to identify the exact values of the pot and the capacitor…

      pin 16 is the supply pin of the IC which joins with D5, C3, R3, mistakenly not shown in the diagram.

      Reply
      oliver oliveros says:
      October 1, 2014 at 2:13 pm

      do i have to add the R4 to VR1 for the computation?

      R4=10k, VR1=5k = Rt=15k
      Ct=0.01

      f = 1/(2.3*15*0.01) = 2.89
      t = 1/2.89*16 = 5.5sec

      16 is pin7 or Q4

      correct me if i'm wrong…

      Thanks

      Reply
      Swagatam says:
      October 1, 2014 at 5:29 am

      Hi Oliver, if you are referring to the above 4060 circuit, it can be identified best through some trial and error….ideally the range should be within 1/100 = 0.01 second….. meaning within 0 to 0.01 second

      Reply
      Arpan ASR says:
      June 20, 2014 at 11:43 pm

      Hi..swagatam,

      please help me to make a circuit…
      i want to make a micro-controller less,MOC3041 opto base heater dimmer…

      Reply
      Arpan ASR says:
      June 21, 2014 at 2:53 pm

      Thank you swagatam sir..thank you..

      Reply
      Swagatam says:
      June 21, 2014 at 12:52 pm

      …or you can try the following circuit:

      2.bp.blogspot.com/-sRFuO1CGSzI/U4wtybAo_YI/AAAAAAAAHFA/nE9Uo6Qhdho/s1600/triac+controlled+PWM+inverter+circuit.png

      MOC3021 has a built-in zero crossing detector so you won't need to worry about that…the pWM input could any square wave signal having pulse timing of 0.01 seconds

      the inverter output may be replaced with 220v AC mains input at extreme right of the circuit

      Reply
      Swagatam says:
      June 21, 2014 at 12:46 pm

      Arpan, why don't you try the above circuit, I have eliminated the use of MOC3041 and made the design even simpler.

      Reply
      Arpan ASR says:
      June 21, 2014 at 10:27 am

      Sir,
      I google about this circuits in web…but it result aurdino or any microcontroller base dimmer..i can't find any MOC3041 opto and op-amp ic base dimmer..

      Reply
      Swagatam says:
      June 21, 2014 at 9:53 am

      Hi Arpan, you can find plenty of such circuits on the web, please type the keywords and you will come across many.

      Reply
      oliver oliveros says:
      June 16, 2014 at 4:03 am

      Hi Swagatam,

      i want to ask on how can i reduce a line AC voltage from 230V to 200V? is ithere a circuit for this? i have a contactor witch the coil is 200V and my grid is 230V. i hope you can help me for this to use of my contactor.

      Thanks in advance,
      Oliver

      Reply
      Swagatam says:
      June 17, 2014 at 11:29 am

      you are welcome dear!!

      Reply
      oliver oliveros says:
      June 16, 2014 at 3:02 pm

      thank you swagatam… your an angel

      Reply
      Swagatam says:
      June 16, 2014 at 8:02 am

      Hi Oliver,

      you will need a 25-0-25V /5amp/230V step down transformer which you can wire up to get a reduced voltage upto 205 or 200V as per your requirement.

      the wiring instructions can be found in the following article:

      https://www.homemade-circuits.com/2011/12/how-to-build-2-stage-mains-power.html

      Reply
      Back to Newest

      Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

      Your email address will not be published. Required fields are marked *

      Primary Sidebar

      circuit simulator image



      Subscribe to get New Circuits in your Email



      Categories

      • Arduino Projects (93)
      • Audio and Amplifier Projects (133)
      • Automation Projects (17)
      • Automobile Electronics (101)
      • Battery Charger Circuits (85)
      • Datasheets and Components (109)
      • Electronics Theory (149)
      • Energy from Magnets (27)
      • Games and Sports Projects (11)
      • Grid and 3-Phase (20)
      • Health related Projects (27)
      • Home Electrical Circuits (13)
      • Indicator Circuits (16)
      • Inverter Circuits (95)
      • Lamps and Lights (159)
      • Meters and Testers (71)
      • Mini Projects (28)
      • Motor Controller (68)
      • Oscillator Circuits (28)
      • Pets and Pests (15)
      • Power Supply Circuits (91)
      • Remote Control Circuits (50)
      • Renewable Energy (12)
      • Security and Alarm (64)
      • Sensors and Detectors (106)
      • SMPS and Converters (34)
      • Solar Controller Circuits (60)
      • Temperature Controllers (43)
      • Timer and Delay Relay (49)
      • Voltage Control and Protection (42)
      • Water Controller (36)
      • Wireless Circuits (30)





      Other Links

      • Privacy Policy
      • Cookie Policy
      • Disclaimer
      • Copyright
      • Videos
      • Sitemap



      People also Search

      555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

      Social Profiles

      • Twitter
      • YouTube
      • Instagram
      • Pinterest
      • My Facebook-Page
      • Stack Exchange
      • Linkedin



      Recent Comments

      • Swagatam on 9 Simple Solar Battery Charger Circuits
      • Gagana on 9 Simple Solar Battery Charger Circuits
      • Swagatam on Arduino 2-Step Programmable Timer Circuit
      • Swagatam on Simple Buck-Boost Converter Circuits Explained
      • Swagatam on IC IR2111 H-Bridge MOSFET, IGBT Driver IC: Full Datasheet, Circuit Diagram

      © 2026 · Swagatam Innovations