Hi folks-
I'm working on a comparator circuit that switches in and out a FET based on supply/battery level. I didn't originally add any hysteresis because (basically) I thought that circuit loading (due to what the FET was switching) would only help my cause and I could get by without.
Of course immediately I saw oscillations beginning at, and until I get well away from, my reference threshold. I added some quick and dirty hysteresis and while this got me out of the woods I didn't end up with the right hsyteresis levels.
Sat down and hand calculated the circuit and my calculations match what I'm seeing. Problem is they seem pretty arduous, especially now to back calculate for targeted thresholds. Not to mention I'll need to add hysteresis to the second comparator, serving to further complicate things. Just curious if there's a better design approach to this? I'm sure I could brute force the calculations and throw them into an excel sheet to guess/check/revise, but mix in standard resistor values and it quickly seems light a nightmare. Any general suggestions on approach here?
FYI without hysteresis:Capturing the oscillation when increasing Vin to >7.8V:
(oscillations remain until Vin>~8.18V)
CH2 (GRN) = "Trak" (1/10th of Vin)
CH3 (BLU) = "Thr2" (fixed 0.78V)
MATH (PNK) = CH3-CH2
CH4 (RED) = "SW2" (comparator output)
Closer exam: not necc. the same capture (I later reduced the comp pullup to 4.7k to decrease output risetime)

Anyway onto the addition of some feedback(R1/R2): problem was I initially failed to account for R14/R15 in my R1/R2 calcs
Lastly the calcs to confirm what I was seeing: the upper threhold was raised nearly half a volt, far too high.(excuse the poor cell phone shot)
