i used lm339 comparator with the attached circuit .i want to drive Mosfet but the output in simulation is 2.2 v on the pin1 of the comparator .however it should be Vsat. when i decreased R1 to 10 ohm the output on led increased to 5.1 v .what is the problem . i want to get 11 v from this circuit at least and that will only happened if i put R1 = 0.
what is your Vref voltage ? and why use comparator for driving the mosfet? I mean comparator output would be zero when Vin reached to Vref or greater then Vref.for less then Vref it should be output 14 or 15 v if your supply is 15v.
the problem was the led . the output was the voltage drop 2.2 i didn't know that this voltage was the voltage drop . when i replaced it with mosfet the output was 15 v .Is there any problem to use comparator to drive mosfet ? vin is 0-10 v it is also a ramp . Vref will be ramp also but with different frequency .
thanks