If you change your supply to 5v, the IRF510 MOSFET will not be able to turn on.
Keep it at 12v. If you are going to use the MOSFET, then use ~2.4k for R4. No point in loading the output of the comparator unnecessarily.
If you go to Radio Shack, you might want to pick up an LM339. That is a quad comparator; it also needs pull-ups on the outputs. I don't like to sink more than 5mA from their outputs. However, I'm not really certain how a real LM319 will perform; the simulation shows a very long transition time for the difference in input voltages. A '339 would switch much more quickly.
You might also pick up a 50k to 200k pot to replace R1/R2 with, making your circuit easily adjustable.
Keep it at 12v. If you are going to use the MOSFET, then use ~2.4k for R4. No point in loading the output of the comparator unnecessarily.
If you go to Radio Shack, you might want to pick up an LM339. That is a quad comparator; it also needs pull-ups on the outputs. I don't like to sink more than 5mA from their outputs. However, I'm not really certain how a real LM319 will perform; the simulation shows a very long transition time for the difference in input voltages. A '339 would switch much more quickly.
You might also pick up a 50k to 200k pot to replace R1/R2 with, making your circuit easily adjustable.
Last edited: