now the problem I m facing with my mouse is that how to keep the mouse in the center of maze's path??? :?: :?: :?:

I am planning to use comparators for the two side sensors, in such a way that the analog output is compared with the previously fixed reference voltage, and then change the algorithm in such a way so as to rotate motor to eliminate the errors.....can this be implemented??? :? :?
Or is there any other way for keeping the mouse in the center so that it travels straight :?: :?:
Please help soon

Rahul Shah