Discussion in "Project Doubts" started by    lucky6772    Sep 17, 2012.
Mon Nov 12 2012, 12:07 am
#31
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
#32
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:
$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
#33
i didnt get the code language...help me abt my code..where m doing mistake.
Mon Nov 12 2012, 03:36 am
#34
@TOR34:i didnt get the code language...help me abt my code..where m doing mistake.
Mon Nov 12 2012, 07:53 pm
#35


@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
#36


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

Tor84


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, 02:28 am
#37
@expermentuk: sirr plz helpp mee withh myy codee nn circuitt also
Tue Nov 13 2012, 01:36 pm
#38
ExperimenterUK,majoka: help me with my code and circuit also plz..!
Tue Nov 13 2012, 07:15 pm
#39
Here's a simulation using the Fairchild's H11B1 as suggested by ExperimenterUK



[ Edited Tue Nov 13 2012, 07:16 pm ]
Thu Nov 15 2012, 12:16 am
#40
can anybody tell me is my code approach is right or wrong.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

PedroDug
Sun May 19 2024, 05:39 pm
JewelAmuck
Sun May 19 2024, 03:06 pm
Minniemus
Sun May 19 2024, 07:39 am
Andyhet
Sat May 18 2024, 07:28 am
BrettTibre
Fri May 17 2024, 06:14 pm
Gordonfax
Fri May 17 2024, 10:28 am
Davidspils
Fri May 17 2024, 10:19 am
Patricknoind
Fri May 17 2024, 09:53 am