zero crossing signal problem
Mon Nov 12 2012, 12:07 am
nopes sir it didnt helped...i used bc547 npn transistor instead 3904 in zero circuit. this can be reason also..?
Mon Nov 12 2012, 02:44 am
Zero crossing is used for phase shift control not PWM.
[/quote1352667653]
Good evening sir!
I'm having a similar problem with my zero crossing as it doesn't seem to work proper in Proteus. Seems like you are familiar with the program, and I've uploaded the sketch and code. Regards, Tor
Here is the code for the 8bit:
[Digital Dimmer]
[/quote1352667653]
Good evening sir!
I'm having a similar problem with my zero crossing as it doesn't seem to work proper in Proteus. Seems like you are familiar with the program, and I've uploaded the sketch and code. Regards, Tor
Here is the code for the 8bit:
$regfile = "m8def.dat" $crystal = 4000000 Config Pinb.0 = Input Config Pinb.1 = Output ' Gate Triac Config Pind.7 = Input ' Key Up ' Key Dn Config Int0 = Rising On Int0 Int0_int ' Initialise the INT0 Interrupt Enable Interrupts Enable Int0 Dim E As Eram Byte Dim B As Byte Dim D As Byte If E > 9 Then E = 9 B = E D = 0 Set Portb.1 Do If Pind.7 = 0 Then If B > 0 Then Decr B Waitms 10 E = B End If If Pinb.0 = 0 Then If B < 9 Then Incr B Waitms 10 E = B End If Loop End ' end program Int0_int: Set Portb.1 For D = 0 To B Waitus 200 Next D Reset Portb.1 Return
[Digital Dimmer]
Mon Nov 12 2012, 03:36 am
i didnt get the code language...help me abt my code..where m doing mistake.
Mon Nov 12 2012, 03:36 am
@TOR34:i didnt get the code language...help me abt my code..where m doing mistake.
Mon Nov 12 2012, 07:53 pm
@TOR34:i didnt get the code language...help me abt my code..where m doing mistake.lucky6772
Code language isn't the problem, but connections in Proteus for this kind of solution
Tue Nov 13 2012, 02:20 am
I'm having a similar problem with my zero crossing as it doesn't seem to work proper in Proteus. Seems like you are familiar with the program, and I've uploaded the sketch and code. Regards, TorTor84
I think the problem is with Proteus and the shared grounds with live mains.
In the real circuit the mains neutral should not be connected to the circuit ground.
I suggest you use an opto isolator on your output.
I separated out the AC mains parts for testing, and your circuit /code works.
Tue Nov 13 2012, 07:15 pm
Here's a simulation using the Fairchild's H11B1 as suggested by ExperimenterUK
[ Edited Tue Nov 13 2012, 07:16 pm ]
Powered by e107 Forum System