Discussion in "Project Doubts" started by    lucky6772    Sep 17, 2012.
Mon Oct 15 2012, 12:06 pm
#11
@ExperimenterUK,

In your circuit what is the opto-coupler IC number ? In other words, can you tell me the calculation how you have arrived at 15K 2W value ?
Mon Oct 15 2012, 12:36 pm
#12
i have used moc3041...wat calculation u talkin abt sowie i dnt get u..?
Mon Oct 15 2012, 01:10 pm
#13
i have made the exact circuit which is given in date datedheet of moc3041..chck it out...n i jst used 1/2w resistance for value 360ohm n 330ohms
Mon Oct 15 2012, 04:46 pm
#14
My dear lucky6772, I am talking about ExperimenterUK's circuit which he had posted.Just see his circuit and tell me something about the 15k, 2w resistor.
Mon Oct 15 2012, 08:24 pm
#15
sir i hvnt used that, i hv use which i hv posted..
Mon Oct 15 2012, 11:09 pm
#16


@ExperimenterUK,
In your circuit what is the opto-coupler IC number ?

Amit Kumar Das


Well I'd use an H11B1, because they are very sensitive,
......and I have several
You could use many types as long as you supply enough current to turn them on at the right time.


can you tell me the calculation how you have arrived at 15K 2W value ?

Amit Kumar Das



15k is just a reasonable value.
It passes enough current to turn on many onto-couplers early in the cycle,
but not so much as to dissipate too much power.
A 15k resistor across 220 volts dissipates 3.22 watts.
This is only half wave so it dissipates 1.6 watts.

Some experimentation might be needed.

Tue Oct 16 2012, 01:22 am
#17
void isr(void) interrupt 0
{
delay(8);
moc=0; // bulb on
delay_100us():
moc=1; // triac is on now, switch off control
}

not working at all....the bulb stop glowin and remain off.///
Tue Oct 16 2012, 03:35 am
#18
Try ...
void isr(void) interrupt 0
{
delay(2); //also  try values of 1 to 8
moc=0; // bulb on
delay_100us():
moc=1; // triac is on now, switch off control
}


Can you post your circuit diagram.



Tue Oct 16 2012, 03:38 am
#19
#include <REG2051.H>
int i,j,a;
sbit up=P3^4;
sbit down=P3^5;
sbit moc=P3^7;
void delay();
/*void delay(int x)
{
for(i=0;i<100;i++)
for(j=0;j<x;j++)
;
} */
void delay1(int d)
{
int k;
TL0=0x17;
TH0=0xFC;
TR0=1;
for(k=0;k<d;k++) //will produce dx1ms of delay
{
while(TF0==0)
TF0=0;
TL0=0x17;
TH0=0xfc;
}
TR0=0;

}

void isr(void) interrupt 0
{
delay1(8);
moc=0; // bulb on
delay1(2);
moc=1; // triac is on now, switch off control
}
void main()
{
TMOD=0x01;
//P3=0xff;
//IT0 = 1; // Configure interrupt 0 for falling edge on /INT0 (P3.2)
EX0 = 1; // Enable EX0 Interrupt
EA = 1; // Enable Global Interrupt Flag
while(1)
{
P1=0xA5;
}

}


[ Edited Tue Oct 16 2012, 03:39 am ]
Tue Oct 16 2012, 03:42 am
#20
void delay1(int d) 
	{
		int k;
		TL0=0x17;
	    TH0=0xFC;
		TR0=1;
		for(k=0;k<d;k++)			  //will produce dx1ms of delay
		  {
			while(TF0==0)
			TF0=0;
			TL0=0x17;
			TH0=0xfc;
		  }
		  TR0=0;
		  
	}



s per my calculation the value "fc17" should produce 1milisecond of delay but it is not generting while i cheked on keil debugger its producing around 66ms. now tell me where i am wrong.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

MnoioCoove
Tue May 21 2024, 02:06 am
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