So all the sensors have been added and voila:-
Hmmm - it seems to hunt (washing) machines rather than walls! What a waste of money on all those sensors. But wait ... perhaps I have to write some code for the sensors. Can't hurt.
My first attempt just resulted in AgrophobicBot. It just saw all that stuff out there and didn't want to move. Feel like I'm going in circles...
So I ended up with this...which seems to want to avoid things like walls, chair legs etc. So it just keeps going till the batteries run out (is that good?).
So, now that it works'ish, I just need to come up with a smaller version than my big-breadboard circuit. So looking at the $50 robot layout you will see that the servo pins are at the top left of the chip, and the analogue inputs are the top right few pins. The middle pins are +ve and ground. The bottom half of the pins are just used to programme it - and then are unused! Bonus - there is a +ve and ground on each side so, in theory, you could chop that sucka in half and use the bottom set of pins on the next project. Two Mega8s for the cost of one!! Perhaps a quad packaged 168 could be chopped in 4 ?!
This is where I made the cut (ed - for GODs SAKE DON'T DO THIS!).