I have the following circuit. U26 is a simple unity buffer and U15 is just a dual comparator.
I want the top comparator to compare the battery voltage (VBAT/2) on the inverting input with 2.0V reference on the non-inverting input. I also want 50mV of hysteresis. For some reason, pin 3 is sitting at 2.8V and pin6 at 2.4V. I figure it has to do with the Req of R13, R14, and R16 but I can't seem to figure out how to get the equations to work to make pin three of U15 2.0V and have hysteresis.
Likewise, I want the bottom comparator to compare VBAT/2 with 1.70V on the inverting pin and have 50mV of hysteresis made with R22 and R23.
The equations and how to derive them to get pin 3 at 2.0V, pin 6 at 1.7V and 50mV of hysteresis for each comparator will be accepted.
The output is just 3 LEDs where only 1 can be on at once, being on when the output of the comparator is low.
EDIT:
So what I got working was to multiply R21, R22, and R23 by 10. This gives me the desired effect. I see no downsides to this method? I still can't derive the equation that figures out the voltages at pins 3 and 6 though.