Ok before my exams i made a simple photovore. It wasn't that impressive... I decided to make it avoid all the objects in its way instead. But I had to start revising.
Now ive finished my exams, i decided to clean up the code and put it in a more permanent chassis. Sure, its not the most sophisticated thing in the world. But it didnt cost much, and i learnt a load making it.
It uses two homemade IR detector/emitter pairs to detect objects. It has two hitec servos for drive. Powered by a Ni-Cd battery from my brothers R/C car. The microcontroller is a PIC16F876A using a bootloader. The chassis is salvaged froma floppy drive.
I would post the code, but its not well commented. I will clean it up and post it.
It works by creating distance thresholds when powered on. It samples the sensors, and then will turn accordingly if there is a big change in one of the sensors.
Here is a video -
The attached pictures are-
1) With the old cardboard chassis.
2) During rebuild with the floppy drive case.
3) Finished rebuild.