error in lm358 comparator circuit

Thread Starter

Avicreats

Joined Jan 18, 2013
19
Hello everyone,I am designing an signal conditioning unit. Everything is working except the comparator circuit.I have used an lm358 ic to compare the voltage.
The supply voltage is 24 and 0.The inverting input is set as 5 volt as reference and non inverting input is varying from 0 to 10v.
i hav learned that if voltage is less than 5v, the output must be 0 and if it is more than 5v,then op must be 24.
But the output is varying like when input is around 9v then output is 22v,8v then output is 20v,and varying(floating output).can anyone help me in this.
 
Top