I'm trying to design a system that compares two DC voltages and if they're "close" one to the other, enables an output that controls a relay. Essentialy, given 2 voltages \$V_a\$ and \$V_b\$, I want: relay coil excited if \$|V_a - V_b| < 0.1V\$, coil not excited otherwise.
The circuit should be pretty easy and this is how I thought: the 1st stadium amplifies the difference between the voltages by means of a differential amplifier
\$V_{out}' = 10*(V_b - V_a)\$ ---note: I can change the amplification factor if needed
The second stadium is a window comparator (something pretty much like this), set up in order to enable its output (\$V_{out}''\$) only if \$-1V < V_{out}' < +1V\$
The problems arise once the supply is taken into account. \$V_a\$ and \$V_b\$ are in the range of \$10\div14V\$, and as a supply I only have a \$12\pm1V\$ rail. Since \$V_a\$ and \$V_b\$ might be higher in voltage then the main supply, I thought of a boost converter in order to create a \$+15V\$ rail (or \$+24V\$ or whatever it's needed) for the \$+V_{cc}\$ OpAmps pins. The question I wanted to ask is: do I really need to have the supply voltage for the OpAmps higher then the "signal" voltages \$V_a\$ and \$V_b\$? I think that \$12V\$ supply should be enough given that I'm working with the difference of signals which is never higher then 4volts. In case I need such a thing, I though about a solution with an LM2577 if I can't find anything that suits me for less then 15€.
The second problem is: how do I create the negative voltage rail (be it the \$-12V\$ in case I don't need the boost or the \$-15V\$ in case I need it)?
This is pretty much it, if you see some flaws in what I've written, please let me know. Thanks all in advice!