This is my first robot. The microprocessor is a QIC board and micrrocontroller is the Microchip PIC 16F877. The code is written in PIC C, a C compiler.
The robot is to solve a maze which is black and white. The robot is to stay on the black line and I use two sensors in the front of rover called resistor1 and resistor 2. There are two sensors for turning: resistor3 and resistor4.
The problem is that my code works but it shouldn't! I will only post a sample of my code below: