Let's Make Robots!

Clean navigation using IR sensor

Anyone willing to give me a hand with this code please feel free to jump right in.

I have spent any hours trying to get this to work. I sure have gotten closer but the bot seems to get stuck n reverse for whatever reason. He will stay in reverse untill i bring my hand close to the sensor and then move it away very quickly.

He then continues forward. Sometimes it seems like he wants to turn toward the object he sees

Picaxe 28x1 with sharp GP2D12

I have made many changes to Fritsl's code, Some changes I understood and others I did not.