In this article I have explained a few simple infrared TV remote controlled fan regulator or dimmer circuits using ordinary parts such as a 4017 IC and a 555 IC.
The first concept uses a standard MOSFET based SSR for controlling the fan load and for easy and clean PWM signal operation from the IC 555 and IC 4017.
Audio/Video Representation
Fan Remote Circuit Using PWM Controlled MOSFET SSR

This fan remote control circuit does not rely on touch or push button, here we are using IR TV remote.
At first glance it looks heavy but actually idea is very simple.
Starting From Left Side… IR Part
So at the left side, we have TSOP1738.
Normally its output stays HIGH. When remote sends IR signal, then suddenly output goes LOW. That is how TSOP works, we all know it.
But problem is, TSOP output is not like one neat pulse. It is like a messy stream, depends on protocol, and how long button is pressed.
So we cannot just push that into CD4017 pin 14. If we do that, then fan might jump like crazy.
Why That BC557 Is Needed There
Now here comes BC557 and this part is important.
When TSOP pulls LOW, BC557 reacts causing output to become a short clean pulse. That is the whole job of the BC557 transistor stage.
Those resistors and capacitors around it, they are just slowing and shaping things.
So even if someone keeps pressing remote button, still only one pulse reaches CD4017 pin#14.
CD4017… The Memory That Moves Step By Step
Now CD4017 is configured to do its usual thing. Pin 14 gets a pulse causing output to move forward.
Q0, Q1, Q2, Q3… like that. Meaning only one output is HIGH at a time, always.
Reset pin is arranged so that after last step, it goes back to start. So the cycle never breaks.
This makes fan speed control predictable. The user always know where he is...
Diode + Resistor Network… Looks Messy But is Crucial
Now this part… many people misunderstand this.
Each CD4017 output goes through 1N4148 diode, then through a resistor. All resistors are different values. Then all of them join with the resistive divider 1k, and the junction goes to pin 5 of 555.
So what is happening?
Only the active output is allowed to push voltage, other outputs are blocked by diodes.
Different resistor divider with 1k means different voltage levels at pin 5.
555 Is Not Acting Like Normal 555
Now IC1 is 555. It is working in PWM mode.
Here Pins 2 and 6 tied, 47k and 4k7 are setting timing, Frequency mostly stays fixed.
But pin 5 is being pushed up and down by that resistor ladder. So threshold levels move causing duty cycle to change.
So when we press the remote button, the 4017 output sequences up/down causing the PWM ooutput from the IC 555 to vary, which in turn causes the MOSFET switching vary accordingly.
The MOSFET varying switching causes the fan speed also to becomes faster or slower depending on which IC 4017 output is selected, and the corresponding 555 PWM duty cycle level applied to the MOSFET gate...
It simply means, Duty cycle change = fan speed change. That is the real trick here.
Gate Drive And MOSFET Side
Now the PWM comes from pin 3 of 555. Before reaching IRF840 gate, it passes through 10R resistor.
We can also see a 100nF capacitor and 10k pull-down.
These things helps to calm the signal. Without these, MOSFET can behave badly, especially with mains AC voltages.
Now as we can visualize IRF840 is not switching AC directly. AC is first rectified using 1N5408 bridge. Then MOSFET chops DC.
That is why fan runs smoother compared to triac dimmers.
Protection Elements
The RC snubber, 0.33uF/400V capacitor, 15V zener, all these are there because fan motor is inductive. Inductive loads kick back voltage. If you ignore that, MOSFET dies slowly or suddenly. So these parts help absorb spikes, reduce noise, and keep things alive.
Concept using Triacs and Opto-Couplers
Now let us look at the next design below, which uses a triac for switching the load or the fan.
Referring to the shown remote controlled fan dimmer circuit, three main stages may be seen incorporated: the infrared signal sensor stage using the IC TSOP1738, the Johnson's decade counter, sequencer using the IC 4017 and a PWM processor stage using the IC 555.

The various operations involved within the circuit can be understood with the help of the following points:
When an infrared beam is focused at the sensor, the sensor produces a low logic in response to this which in turn causes the PNP BC557 to conduct.
WARNING: THE ENTIRE CIRCUIT IS DIRECTLY LINKED WITH THE MAINS AC, OBSERVE EXTREME CAUTION WHILE TESTING THE CIRCUIT IN POWERED POSITION
UPDATE: You may also like this article on a Simple Ceiling Fan Regulator Circuit
Using Sensor TSOP1738
The sensor used here is a TSOP1738, you can learn more about it in this simple IR remote control article
The conduction of the BC557 transistor in response to the IR beam links the positive supply to pin14 of the IC 4017 which is accepted as a clock pulse by the IC.
This clock pulse is translated into a single sequential hop of a high logic from the existing pinout to the next subsequent pinout in the sequence across the shown outputs of the IC 4017.
This sequential transfer or shift of a high logic pulse from one pinout to the next across the entire outputs from pin#3 to pin#10 and back is carried out in response to every momentary beam focused on the IR sensor by the IR remote handset.
Using IC 4017 for Controlling Voltage Divider
We can see that the IC 4017 outputs have a set of precisely calculated resistors whose outer free ends are shorted and connected to ground via a 1K resistor.
The above configuration forms a resistive potential divider which generates a sequential incrementing or dropping potential levels at the node "A" in response to the shifting of the high logics across the outputs as discussed in the above explanation.
This varying potential is terminated at the base of an NPN transistor whose emitter can be seen connected to pin#5 of IC 555 which is configured as a high frequency astable.
Using IC 555 as PWM Generator
The 555 stage basically functions like a PWM generator which varies proportionately as its pin#5 potential is varied. The varying PWMs are created at its pin#3.
By default pin#5 is connected with a 1K resistor to ground which ensures that when there is no voltage or minimum voltage at pin#5 results in an extremely narrow PWMs at its pin#3 and as the potential or voltage at its pin#5 is increased the PWMs also gain width proportionately. The width is maximum when the potential at pin#5 reaches 2/3rd of the Vcc of its pin#4/8.
Now apparently, as the outputs from the IC 4017 shifts creating a varying voltage at the base of the NPN, a corresponding amount of varying voltage is transferred over pin#5 of the IC 555 which in turn is converted into an accordingly changing PWMs across pin#3 of the IC.
Since the pin#3 of the IC is connected to the gate of a triac, the conduction of the triac is proportionately influenced from high to low and vice versa in response to the changing PWMs over its gate.
This is effectively converted into a desired speed control or an appropriate regulation of the connected fan across the triac's MT1 and the AC mains input.
Thus the speed of the fan becomes adjustable from fast to slow and vice versa in response to the infrared IR beams toggled on the associated IR sensor of the circuit.
How to Set up the circuit.
It may be done with the help of the following steps:
Initially keep the emitter of the BC547 transistor disconnected with pin#5 of the IC555.
Now the two stages (IC 4017 and IC 555) can be assumed to be isolated from each other.
First check the IC 555 stage in the following manner:
Disconnecting the 1K resistor across pin#5 and ground should increase the speed of the fan to maximum, and connecting it back should decrease it to minimum.
The above will confirm the correct working of the IC 555 PWM stage.
The 50k preset setting is not crucial and may be set to approximately center of the preset range.
However, the capacitor 1nF could be experimented to get the best possible outcomes. Higher values up to 10uF could be tried and the results monitored to achieve the most favorable fan speed regulation.
Next, we need to check whether the IC 4017 output node at "A" creates a varying voltage from 1V to 10V in response to each pressing of the IR remote beam over the circuit's IR sensor.
If the above condition is met, we can assume the stage to be functioning correctly, and now the emitter of the BC547 can be integrated with pin#5 of the IC555 for the final testing of the fan speed regulation using a IR remote handset.
The remote handset could be any TV remote control which we normally use in our homes.
If the above design does not work smoothly with a connected fan, it may need to go through a slight modification for improving the results as shown below:

The circuit takes the help of a MOC3031 triac driver stage for enforcing a hassle free and clean fan control through the remote handset.
Test Analysis
On testing the above circuit, the results were not quite satisfactory, since the fan could not be controlled upto the lowest limit and it showed some vibration.
Analyzing the design revealed that the application of PWM on triac was causing the issue since triacs do not respond well to DC PWMs, rather show improved reactions to AC phase chopping as used in dimmer switches
Using Phase Control instead of PWM
The circuit discussed in this article eliminates the PWM idea for the fan dimming control, instead employs few low power triacs for sequentially implementing the dimming or speeding effect on the connected fan motor.
The complete design for the proposed remote controlled fan dimmer circuit can be witnessed below:
Circuit Diagram

Note: the 4 SCRs are incorrectly represented as SCR BT169, these must be replaced with triacs, such as BCR1AM-8P triacs, or any other similar triac will also do.
How it Works
Referring to the diagram above we can see two the circuit configured across a couple distinct stages.
The right side of the diagram is configured as a standard light dimmer or fan dimmer circuit, except one change, which can be seen near its usual pot section, where it has been replaced with four triacs having four separate resistor at their MT2, arranged with an incrementing values.
The left side stage comprising the IC 4017 is wired as a 4 step sequential logic generator, triggered by an Infrared sensor unit which forms the IR receiver for receiving the switching triggers from a hand held IR remote control unit.
The alternate remote IR beams from IR transmitter causes the IRS to generate a toggling pulse at pin#14 of the IC 4017, which in turn converts the pulse into a sequentially shifting logic high pulse across its pin#3 to pin#10 after which it's reset back to pin#3 via pin#1/15 interaction.
The above pinouts which are responsible of generating a sequentially traveling logic high pulse are serially connected with the gates A, B, C, D of the indicated triacs.
Since the resistors connected with the anodes of the triacs become the determining components for the fan speed limit, implies that by sequentially switching the triacs to and fro, the speed of the fan can be increased or decreased proportionately, in 4 discrete steps, depending on the values of R4----R8.
Therefore when the remote handset button is pressed, the IC 4017 pinouts trigger the corresponding triac which in turn connects its anode resistor with the dimmer triac/diac configuration, executing the relevant amount of fan speed.
In the proposed remote controlled fan dimmer circuit, 4 triacs are shown for producing a 4-step speed control, however 10 such triacs could be implemented with all the 10 pinouts of the IC 4017 for acquiring a good 10 step discretely controlled fan speed regulation.
Parts List
R1, R3 = 100 ohms,R2 = 100K,R4 = 4K7,R5 = 10K,
C2 = 47uF/25VC1, C4= 22uF/25V,C6 = 4.7uF/25V,
C3 = 0.1, CERAMIC
C5 = 100uF/50V
C10 = 0.22uF/400V
T1 = BC557
IRS = TSOP IR sensor
IC1 = 4017 IC
D1 = 1N4007
D2 = 12V 1watt zener
R9 = 15K
R10 = 330K
R4---R8 = 50K, 100K. 150K, 220K
R11 = 33K
R12 = 100 ohms
Diac = DB-3
TR1 = BT136
L1 = 500 turns of 28SWG over any iron bolt.
C7 = 0.1uF/600V
WARNING: THE ENTIRE CIRCUIT IS DIRECTLY LINKED WITH THE MAINS AC, OBSERVE EXTREME CAUTION WHILE TESTING THE CIRCUIT IN POWERED POSITION




Comments
Its cool, sir is it possible to add rf module in this circut instead of ir?because through ir all remotes will work, plz provide me full diagram with rf module plz
Thanks Ghulam, This circuit has not been tested by me, so i would suggest you to first test the effect of 555 pwm output on a ceiling fan or a table fan (with start capacitor, not BLDC). If the fan responds well to the 555 PWM then the rest of the circuit can be quickly built and attached with the 555 circuit for the remote control working….
You can use an IR module also with this circuit.
sir i tried with 334j 400v, 10k 2watt in parllel with capister, then used 12 volt zenor 1 watt, then with positive supply used in4148, then 1000uf 25 volt capister, but 10k resister goes heat. plz guide me where is the problem? or can we used 12 volt power supply?
Hi Ghulam, 12V 1 watt zener is fine, it will work.

You can also use an external 12V DC power supply but that will be unnecessarily bulky.
If your 10k 2 watt is heating up, please modify the power supply section in the following manner:
sir i tried this circut, i checked with 220volt cooler water pump, speed is not much fast, and also there is no fan off level, fan is continually on in low speed also…..fan should be off nd on from remote also plz
Thanks Ghulam, To ensure the circuit is working correctly as intended, you will have to check every section of the circuit with an oscilloscope because PWM waveform testing and confirmation is very important here. Unless all the stages are verified with an oscilloscope you can’t confirm if the circuit is build correctly or not.
To get a switch off function, you can keep pin#3 open (disconnected). But the problem is that you cannot switch off quickly with one button press, because pin#3 sequence will arrive only when all the 10 pins of the 4017 are switched. One idea is to use only 5 outputs instead of 10, so that the sequences become short and quick, and anyway 10 step speed is actually never required.
Thank you sir, I will modify and update you, sir with capister 10k resister is not draw in diagram, in this logic 10k resister in parallel of capister not required or we have to use?
Sure Ghulam, no problem, yes now 10k resistor is not required, because the capacitor can discharge through its own bridge rectifier.
We can copy the capacitor based commercial regulator ckt . By understanding the capacitor combinations for different speeds, we can make our own speed control by using 3 small Spdt pcb relays……which does not create power line noise and better for fan(no humming noise at low speeds)
Yes, that’s correct! Glad you understood the circuit well.
Sir,
REMOTE CONTROLLED, CEING FAN MODULE: 0.1 uf/600 v capacitor is not available. 1000 v is available. will it be ok? Further, can we add one light connection to this module (with same features)?
Hello Katrtikeshwar, 0.1uF/1000V will work, or 0.1uF/400V will also work. Light can be added, but the light should be incandescent bulb type, LED light will not work.
Hello sir
How are you sir?
Sir can I use any IR receiver in place of TSOP 1738, which I have the remote control unit.
Hello Mekuz, TSOP is reliable since it works with 38 kHz signal only, other IR can be affected with any light source
Dear Swag,
Sorry to bother you again. Can I use any type of TSOP
Receiver Sensor?
Will it work?
yes you can use TSOP, but the transmitter frequency must match its specifications…
Dearest Swag.
May the good Lord bless you richly for your selfless service to all of us.
I may not have what to give to compensate you or your family for your great contributions to humanity
but God will bless you and your generation in Jesus name.
I am indeed grateful.
No problem Mekuz, I am always happy to help!
Dear Swag.
Thank you for everything and your time and efforts to
help me. I am indeed grateful.
Please sir in you said the L1 should be 100 turns of 22swg on a ferrite rod
what is the length and diameter of the ferrite rod?
Or is there no ready made inductor that I can purchase? If there is please what is the value of the inductor?
Thanks in advance
Dear Mekuz, the L1 is not critical, use any number of turns over any ferrire core, and monitor the RF noise on any AM radio, you can put more turns until the noise becomes minimum…
Dear Swag,
I am a bit confused. While I am trying to solve the math that may have led to
the values of the resistors of the Transistor BC557, I had to ask some questions to clear my doubts
and confusion.
Please is the Transistor configuration a Common Emitter connection? Or A common Collector Connection?
I could figure out how the values of its resistor where made R3, R4, and R2
Hoping to hearing from you soon
Thanks you sir.
Dear Swag,
I was trying to calcualte how you got the values of R3, using
the formula Rb or (R3) = 0.2 × RL × hFE
where hFE is 300max, RL is 100K as shown in the circuit
But the answer I got is quiet different from the value you gave to R3
I got 6,000000 ohm but your says 100ohms
pls help me to correct my errors
Thanks
Dear Mekuz, when you walk on the road with a bag, do you calculate how much weight your bag can have? You can have 1 gram load or 2000 gram load in your, you don’t bother about it…similarly it is not always required to calculate electronic circuit unless the parameters are critical.
For a 400 ohm relay, the base resistor needs to be 56k, but I always use 10k, so it is not a critical factor.
Dear Swag,
Please I know am bothering much, I want to know so of the exact functions
of C2, C3, C4 and C6 in the circuit and mode of operation.
Why did you place C6? How did you choose the R4 to be 4K7.
I am curiously waiting for your response.
Thank you in advance
Dear Mekuz, that can be a lengthy tutorial, not possible to explain through comments….you will need to learn the designing process step wise.
Hello Swag,
Please I have a question on the operation of the IC 4017
By connecting pin#1 and pin#15 together for reset, will it make the counter count to 9 then reset?
Please enlighten me here sir.
I am facing my defence soon.
Please explain to me the operation of the triacs and diac in regards to this circuit.
Pls if there are mathematical relations in getting some of the values of the components in this circuit show me too.
Thank you very much sir.
I will forever be grateful.
Hello Mekuz, yes, that is right….. you can also use all the 10 outputs by connecting the pin15 with ground
How to Understand IC 4017 Pinouts
The diac fires once the voltage across it reaches 30 V, this 30 v timing is determine by the RC network connected with the diac….with the RC network delays the diac firing, it delays the triac firing resulting in slow fan speed, if the RC network is adjusted for quick charging discharging, then the diac keep firing at a faster rate, causing the triac to react faster, and this increases the fan speed…
Diac – Working and Application Circuits
Pls sir, I cannot get this BCR1AM-8P in my place.
Is there no alternative that is common.
Are all capacitors polarized?
Mekuz, you can try optocoupler triac:
https://www.onsemi.com/pdf/datasheet/moc3072m-d.pdf
feed the 4017 output triggers to the opto LED, and the opto triac can be used across the indicated positions, in the fan regulator circuit
Hello Sir,
Can you verify these resistors for me.
Which of them is actually meant to be in the circuit.
R1, R3 = 100 ohms,R2 = 100K,R4 = 4K7,R5 = 10K,
R4—R8 = 50K, 100K. 150K, 220K
in the list you highlighted R4, R5 twice and they are of different values
which of them will I use
Hello Mekuz, the values are correct, only R4 is repeated in the diagram, yes they have different values.
I hope you know how to test the circuit stage-wise and step-wise, because if you test it by connecting all the parts together, the circuit will definitely have problems and also something might burn.
Dear Swag,
How are you sir? Hope you are great.
Please sir the pin#3 pin#5 Pin#6 pin# 9 pin#11 and pin#12
are they to be left unconnected?
Thank you for your time, energy and understanding.
Dear Mekuz, all those pins of the IC 4017 are outputs which are not used, so you can keep them all unconnected!
Thank you sir. You are the best
My pleasure Mekuz!
Dear Swag,
I am indeed grateful for the timely response.
May the good Lord bless you.
Thank you sir. My regards to your family.
No problem Mekuz, I hope you are able to make it!
Please sir I am totally confused. I need urgent help. In the circuit diagram, you said we should replace the BT169 with BCR1AM-8P triacs, then if so show me the new circuit diagram when the BT169 are replaced.
You equally included BT136 in the list of the components where does it fit in in corrected circuit diagram.
Thank you.
Mekuz, you just have to replace the BT169 with BCR1AM-8P, with pin#1 going towards C8/R11 and pin#2 towards the upper series resistor
BT136 is the main triac TR1
Moreso, the equivalent of the inductor L1
L1 = 100 turns of 22 swg super enameled copper over any ferrite rod
Good day Swag,
Please what is the value of the capacitors C8, C9
Again what are the equivalent of the triac and diac
C8, and C9 can be 0.033uF/250V
Hello sir,
I got 0.33uf/275v for C8 and C9. instead of the proposed 0.033uF/250v
Please will it work or it must be 0.033uF/250v?
Thanks
No it will not work…
Hello Swagat,
I am sorry to bother you a bit.
In regards to Remote Controlled fan circuit incorporated with 433mhz transmitter and receiver circuit
Please can I have the PCB, along side with the components of the aforementioned project. Or already made and tested by you. It will ease my work and time to submit the project. How much will it cost me sir?
I want to pay for it.
I am looking forward to hearing you soon.
Thanks in advance.
Hello Mekuz, I am sorry, providing a PCB design or a ready made kit will not be possible from me due to lack of time.
By the way this project is not easy, unless the user knows exactly how to test and verify the different stages, completing this project can be hugely difficult, so please proceed with caution!
Thank you sir. You are amazing.
Mekuz
Glad to help Mekuz!
The remote control can be any TV remote handset, …any button