| Author |
Message |
rushi53
Joined: 19 Aug 2009 Posts: 36 Helped: 1 Location: India
|
03 Nov 2009 13:03 Problem in Zero Crossing Detector(ZCD) Circuit |
|
|
|
|
Hi,
I am working on "Temperature controlled Fan using 89s51". Requirement is: Fan speed should vary depending upon temperature variations.
I am using Triac BT136 for controlling fan speed, I am varying the firing angle for triac.
Zero crossing detector (ZCD) is used here.
I am working on 230vAC/50Hz power supply, which means ZCD should give 50pulses per second.
My problem is that ZCD is not giving 50 pulses. (It gives approx 35,000 pulses per second)
I am uploading the circuit diagram of ZCD. Output terminal A goes to interrupt0 of microcontroller (89s51)
Please help me to correct the ZCD diagram. Or please suggest me any replacement for this.
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
03 Nov 2009 13:21 Problem in Zero Crossing Detector(ZCD) Circuit |
|
|
|
|
I have personally tried the said circuit and from www.8051projects.info works perfectly well without any problems. You may also try single transistor circuit given in the blogs and Forums in the same website. On the other hand, you may also have a look at completely assembled and tested a similar project of a complete switch board with fan regulator at www. united77.com/projects.htm. Cheers
Last edited by pranam77 on 03 Nov 2009 13:36; edited 2 times in total |
|
| Back to top |
|
 |
rushi53
Joined: 19 Aug 2009 Posts: 36 Helped: 1 Location: India
|
03 Nov 2009 13:31 Re: Problem in Zero Crossing Detector(ZCD) Circuit |
|
|
|
|
I have prepared a PCB from this circuit diagram and tested with a frequency counter program.
It was not giving 50 pulses per second.
I am really confused on this. I need to complete this project by 10th Nov.
Should I prepare the PCB again ?
|
|
| Back to top |
|
 |
pranam77
Joined: 22 Apr 2008 Posts: 1071 Helped: 94 Location: Mangalore(India)
|
03 Nov 2009 13:36 Problem in Zero Crossing Detector(ZCD) Circuit |
|
|
|
|
| As there will be two zero crossings per cycle, the zerocross detector output shud show 100Hz on a multimeter. Check out for the same. There may be some hardware /assembling problems. Cheers
|
|
| Back to top |
|
 |
Google AdSense

|
03 Nov 2009 13:36 Ads |
|
|
|
|
|
|
| Back to top |
|
 |
FvM
Joined: 22 Jan 2008 Posts: 5160 Helped: 767 Location: Bochum, Germany
|
04 Nov 2009 8:03 Re: Problem in Zero Crossing Detector(ZCD) Circuit |
|
|
|
|
| Quote: |
| It gives approx 35,000 pulses per second |
Sounds unlikely. You may get multiple pulses at zero crossings, because the comparator misses a hysteresis, but not that amount.
I also don't completely understand your circuit dimensioning. R3 is so low, that the first OP mainly works as a buffer
rather than an amplifier. I guess, you messed up the original circuit in this point. But it should work somehow anyway.
To check the circuit operation, an oscilloscope would be the appropriate instrument.
|
|
| Back to top |
|
 |
rushi53
Joined: 19 Aug 2009 Posts: 36 Helped: 1 Location: India
|
04 Nov 2009 12:58 Re: Problem in Zero Crossing Detector(ZCD) Circuit |
|
|
|
|
Hi Guys,
Problem is solved now...
Actual defect was in microcontroller program.
Previously I have cleared IT0 bit of TCON register.
But then I set that bit to 1 and now circuit is giving 100 pulses per second.
I must say thanks to "pranam77"
He gave me confidence that hardware is correct, so I started looking into programming and found the defect. Thank you very much...
|
|
| Back to top |
|
 |