If your comparator is the kind with an open collector output it's even easier - just connect the pull up between the output and the controllers Vdd (that's what open collector outputs are specifically made for.

Logged

Regards,Søren

A rather fast and fairly heavy robot with quite large wheels needs what? A lot of power?Please remember...Engineering is based on numbers - not adjectives