I need feed back from the solenoids (24V, 300mA) whether they are switched ON/OFF, I am switching the solenoids using micro controller & BDX33 TransistorI kept shunt resister 1ohm across the emitter and giving the voltage drop to the comparator (non inverting terminal of the LM324) and comparing with ground Point (inverting terminal of the LM324 connected to the ground)Whenever solenoid is switched ON there will be voltage drop and LM324 switching ON the LED butWhenever solenoid is switched off there is no voltage drop, both terminals of the LM324 at ground potential, at this point LM324 is comparing the ground potentials and giving the un proper outputsPlease give me the some suggestions how to compare the volatge with ground pointRegardschandu

The comparator becomes unstable due to internal offset errors and because the LM324 is not designed as a comparator. You don't really need a comparator, just a connect the op-amp as a voltage follower.

You are using a BDX33 which is NPN transistor, which means you will always have a voltage in the coil when the transistor is open. I think you should use a BDX34 (PNP transitor) so that the coil will be connected from ground to the transitor and when the PNP transistor is open then coil will be at ground level and any OP will respond correctly, specially if connected as voltage follower, as suggested in post # 2

In the voltage follower mode for which pin I have to use for input signal & reference signal (ground).In the circuit (LM324 as the comparator mode) when ever I connect inverting pin to the ground with large resister(56K) the circuit is working.What happened whenever I connect inverting pin to the ground with large resister.

In the voltage follower mode for which pin I have to use for input signal & reference signal (ground).In the circuit (LM324 as the comparator mode) when ever I connect inverting pin to the ground with large resister(56K) the circuit is working.What happened whenever I connect inverting pin to the ground with large resister.

In the voltage follower mode for which pin I have to use for input signal & reference signal (ground).In the circuit (LM324 as the comparator mode) when ever I connect inverting pin to the ground with large resister(56K) the circuit is working.What happened whenever I connect inverting pin to the ground with large resister.

Thank you

Regardschandu

Click to expand...

Connect the output of the op amp directly to the inverting input via a wire and apply your input signal to the non-inverting input.