I am trying to build a Schmitt trigger that would allow adjusting High and Low threshold values with a microcontroller.
simulate this circuit – Schematic created using CircuitLab
I could replace R1-R2 with a DAC, but how do I adjust the feedback resistor R3? Is the trigger going to work properly if I replace R3 with a digital potentiometer?