Voltage regulation vs relative voltage tresholds?

There is a part of my circuit that uses resistance to output a voltage, in which is compared to a voltage threshold to output a digital signal.

However +Vcc can vary and any voltages too far from 5V will cause this comparator to function wrongly and toggle at the wrong resistances, since the output voltage is a percentage of +Vcc while the voltage threshold is determined by a zener diode, which won't change even if +Vcc is changed. Which makes calibrating the comparator useless since any change in +Vcc throws the entire module off.

I'm not sure which of the two solutions are the best to implement, or to do both?

1. Use a linear regulator to maintain a 5V +Vcc signal, so that the output voltage will always be calibrated since +Vcc won't change at all.
2. Make it such that instead of using an absolute-value threshold like a zener diode, use a voltage divider so, like the output voltage, is relative to +Vcc, therefore it will remain calibrated (the comparator will still toggle at the same resistance).

I'm kind of in for #2 because it feels like "good practice" to work relative to +Vcc, but it also introduces some problems like it is difficult to compare two voltages directly. #1 also seems nice because it allows us to work with numbers directly.

If I do both one of them may feel unnecessary. #2 may make it such that a wide range of voltages may be used (up to a certain power limit), but may be harder.

#1 may make it such that everything will be more accurate, especially when there are some unavoidable constants that won't vary with +Vcc such as the diode forward voltage.

So, #1 or #2, or both? Or something else entirely? :/

• To answer the "something else entirely" part we probably should resolve this seeming XY Problem by knowing more about what you need that voltage exactly for, then maybe someone can suggest an alternative. Jan 28, 2015 at 13:38
• @PlasmaHH That output voltage is compared to a voltage threshold, which then outputs a digital signal which will turn on a darlington pair which turns on an electric fan. The digital signal part is not important in here; what I am worried about is that changes in +Vcc may throw the threshold calibration off. What this module does is that a thermistor varies in resistance, which changes the output voltage and the digital signal. The threshold is calibrated manually such that it will flip at right about exactly 22 degrees Celcius. Jan 28, 2015 at 13:51
• For accuracy the voltage reference will be better. A voltage regulator is good to ~1-5% (depending) and also the power supply rail can droop some if there is some other part of your circuit drawing power. Jan 28, 2015 at 14:26
• Show us the circuit. Jan 28, 2015 at 14:27
• @GeorgeHerold Thanks for your answer (comment). I agree, if I take special care in my design I can get a relative voltage reference that is accurate enough, while we should not depend on absolute values with a regulator since it isn't accurate enough, especially with the other parts of the circuit. Jan 28, 2015 at 14:43