Hi,
I have build a small 'robot', based on two motors and a L293 Motor IC and two bumper switches at the front, left and right.
It's a really simple program.
When starting it will go forward until one bumper PIN get's down.
Then it should go backward for 2 seconds, make a little turn and go...