Hi, I have 5V relay that receives very short burst of power, to eliminate false positives I would like that my relay would be on longer. What size electrolytic capacitor I need to use? Do I need to use diode to protect my circuit from the capacitor current backflow?
When does the relay receive the "short burst of power"? On power up? When the "beam" is broken? Don't know exactly which kit this is.
EDIT: Ahh. This is it; **broken link removed**
What you probably need to do is shield the phototransistor from ambient light. A black tube placed over it and facing the sender would help reduce false triggering.
charging a capacitor from the output of a (?CMOS) device is proably not sufficient.
Better charge the capacitor after rectification of the output signal of the buzzer circuit and use a transistor to switch the relay.
I simulated the buzzer circuit using an astable built with a timer IC. With a cap of 47µF and a parallel resistor of 1MΩ the relay stays activated for about 1 second after the buzzer signal returns off.
To modify your circuit just use the parts connected to and after pin3 of the timer IC:
D2..D4, C1, R1, R5 and Q1. R4 and D1 are optional.
See the attachments, also showing the voltage incraese after rectification.
Thanks, could you draw onto this schematic **broken link removed**
How exactly I need to change it? How do I connect D2..D4, C1, R1, R5 and Q1 ?
Do I leave R12, T2 or not?
Either diode will work.
Without the diode, the capacitor discharges through the OpAmp when the output (pin8) goes low. The sink current is limited to apx 20-50ma which explains why you get about a second with a 2200uF cap. It's just not good practice even though it works.
If it's working OK for you, then yes, you can leave it as is. Adding a diode, as I mentioned, would allow you to use a smaller cap if size was an issue.
Can someone explain why these circled components created a small hysteresis window for the relay?
It appears that adding the 1 mega ohm resistor and 2200mFarad capacitor, as well as the diodes across the pins 85/86 of the relay created a 1 second hysteresis?
Is there a short explanation as to why each of the 3 components were needed, and what they offer to the circuit?