comparator with Transistor NAND Gate

Thread Starter

devalvyas

Joined Nov 11, 2008
80
i am using the following schematics for a NAND Gate. The two inputs of NAND Gate comes from output of two voltage comparators working in monoshot mode. on being triggered both the comparators give monoshot output for 10 seconds.

What i want is that only when both the comparators are on, the output of the NAND gate should be low and the led will not glow, otherwise the output will be high and LED will glow.

the gate is working fine, but with one problem. The ON time is getting Added...

What i mean is that if i trigger both the comparator at time t=0 seconds the output of both the comparators should be high for 10 seconds, hence the output of NAND Gate should be low for 10 seconds (LED IS OFF) and then go high again (LED glows),

the sequence is woking fine, except that the output of NAND Gate changes after t=20 seconds...can you please help?
 

Attachments

hgmjr

Joined Jan 28, 2005
9,027
The most likely explanation for the discrepancy between your predicted timeout and the actual time out is the due to two issue. One is the leakage in the timing capacitor and the other is the comparator's very small input current draw.

hgmjr
 

Thread Starter

devalvyas

Joined Nov 11, 2008
80
I can't clearly read the values on all of the components.

hgmjr
attaching another file...

the time out is happening correctly if i test it using only the comparators...i mean both the comparators are giving right timeout independantly...but when i connect them to NAND gate as above...the output of NAND gate is not giving correct timeout...

the output of NAND gate should change as soon as any output of any one of the comparators change...somehow the nand gate is not allowing both the comparators to go low....
 

Attachments

Thread Starter

devalvyas

Joined Nov 11, 2008
80
i also changed the values of timing RC for the comparators...

i changed C1=C3=100 micro farad and R4=R8=100K..

Still i have the same problem.
 

hgmjr

Joined Jan 28, 2005
9,027
If you have a DVM, I would be interested in the voltage at the junction of the two 1M resistors in each comparator circuit. It sounds like the voltage is not exactly half the supply as you are intending it to be.

hgmjr
 

Thread Starter

devalvyas

Joined Nov 11, 2008
80
i changed the values C1=C3=1000 micro farad and R4=R8=4.7K

I removed the 10 k resistance from base of the transistors...and its working fine now...i guess the current from output of comparator was not good enough to drive the transistors...

but there is some flickring in the LED's..so i am thinking of using 7401 NAND gate ic inplace of transistors...will that be better than this?


i will do it and post the responce..
 
Top