I would just like to know if this will work?!? It is supposed to act like a on-off switch for a relay in a car. I need pin 3 to always hover around .5v -.7v. The non-inverting input(pin2) actually has three different possible values coming from the automobile: 12.8v , 2.5v ,or 0.020v. Are the resistor values sufficient? I'm an electronics beginner, trying to wrap my head around this circuit. I have read up on the LM311 and understand the operation of the IC but I'm not sure what the all the capacitors are for and also if the resistor values are going to give me the correct values for my input signals.