. . . and then what happens? The output current is now below the threshold, so it turns back on again.I was thinking along these lines, a small resistor value in series with the LM317 output before the feedback resistor which would need an increase in the necessary buck output voltage. Difference the voltage across the resistor with gain, then use a comparator to compare this to a pot wiper connected between +ve and ground. When this swings to the rail it would pull the transistor base high to turn it off….






