Adjust the potentiometer to vary the analog input signal. The hexadecimal output displayed (when the counter stops) represents the digital (binary) value of the analog input.
Update: now incorporating revisions from user Hurz to simplify the reset pulse generator and more!