PWM pin getting fail in pic18f45k50 when iam trying control the Ceiling Fan .

DickCappels

Joined Aug 21, 2008
10,180
What is "microcontroller PWM"? Is it synchronized with the zero crossings
of the mains per the application note?

While at it, can you expand on wht you mean by "fail"? Do you mean the fan does not even turn on?
 

bertus

Joined Apr 5, 2008
22,277
Hello,

Also what is the output voltage of the MCU?
If it is 3.3 Volts, the led will get to less current.
It is recommended to use a drive current of 15 mA for the led in the MOC.
Also you may try to add a snubber circuit as in the application circuit:

MOC_application_circuit.png

Bertus
 

Thread Starter

Nanda Kumar 1

Joined Aug 25, 2016
42
What is "microcontroller PWM"? Is it synchronized with the zero crossings
of the mains per the application note?

While at it, can you expand on wht you mean by "fail"? Do you mean the fan does not even turn on?
Thank you for u r reply DickCappels .
1) "Microcontroller pwm" is the signal coming from the micro controller to the MOC3021.
2) No iam not using the zero crossing.
3)fan is running with respect to the pwm duty cycle but after some time that particuler pwm pin coming from the microcontroller pin going fail .That pin is not doing any functionality.
 
Last edited:

Thread Starter

Nanda Kumar 1

Joined Aug 25, 2016
42
m
Hello,

Also what is the output voltage of the MCU?
If it is 3.3 Volts, the led will get to less current.
It is recommended to use a drive current of 15 mA for the led in the MOC.
Also you may try to add a snubber circuit as in the application circuit:

View attachment 111130

Bertus
Thank you for u r reply.
1) My micro controller output is 4.9v .
2) Iam using the snubber RC as 2.2kohms and 0.1 uf.( I uploaded my schematic in above).
 

Thread Starter

Nanda Kumar 1

Joined Aug 25, 2016
42
Hello,

In the schematic I posted, the 39 Ohm and 10 nF are for snubbing the triac.
It will reduce the dV/dt.
See the attached application note for more info.

Bertus
Thank you Bertus.
I will try today and what about the traic .can i use any type traic or is there any particuler traic ?.And what about my schematic ? is there any wrong in that because i did as per NXP AN3471 application note.
 

MaxHeadRoom

Joined Jul 18, 2013
28,688
The PWM circuit is only going to fire the triac once per AC cycle, and will also vary the point it fires on the AC supply.
IOW it is not sync'ed to the incoming frequency.
Max.
 
Top