Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Then please suggest me the modification needed in the ckt for proper operatin.. thanks in advance..That 741 is to be configured as a Comparator and NOT as a Linear amplifier.
Obviously, the transistor is operating in a Linear mode and not as a Switch.
It will heat up and fail.
The 100k resistor should be connected between the non-inverting input and the output of the op-amp, instead of between the inverting input and the output.Then please suggest me the modification for proper working of the ckt..
Missing information is, what is the current draw of the relay? Is it well within the transistor Ic current limit?
That's highly unlikely for typical 12V coil relays if the 2N2222 if fully turned on (saturated).The relay coil current might be too high for the 2N2222 transistor to handle.
Rce on the PN2222A is 1 ohm depending on Vbe, and the 0.36W SPDT relay @ 12 V is 400 Ohms , so 400:1 is a good switch ratio.The relay coil current might be too high for the 2N2222 transistor to handle.
With all its limitations, the 741 can be used with a Single supply ( min 12 Volts). Just have to keep in mind that the output voltages cannot reach the Bus voltages - 0 or Vcc.The 741 is a poor choice, this is a 741 Data Sheet. I suggest you read it. The 741 is also a dual supply operational amplifier, not a single supply. Since you want a comparator verse op amp I suggest using a comparator circuit design. However if you insist on the ancient 741 operational amplifier I suggest a Google of 741 Op Amp Comparator Circuit and again the 741 requires a dual supply not a single supply.
Ron
At that rate, I'd rather grab an old LM386 audio amplifier, wire it as a comparitor and drive the relay coil directly from the output.Below is the LTspice sim of a 741 circuit to drive a transistor from a single supply:
It has two diodes in series with the transistor base to insure the transistor is off when the 741 output is at it's minimum low voltage.
R4 is connected from the 741 output to the (+) input (not the minus input as shown in the original schematic) to give a small amount of hysteresis so the relay doesn't chatter around the trip point.
The relay turns on (red trace) when the LDR resistance (green trace) drops below 100kΩ for the 50% setting of the pot.
View attachment 146778