Bump+Bot



Bump Bot implements one of the two firmware modes of a stock CEENBoT.

The robot first waits for Switch 4 to be pressed before moving.

Once the switch has been pressed, the robot will travel forward in a straight line until either the left or the right bump an object in the way.

Then the bot will back up 2 full revolutions of the wheels and make a 90 degree turn away from the blockage.

Note that the robot LCD display will show what the robot thinks is going on at the moment, from waiting for a switch press, to running to avoiding something.

Also note that the pause button only works once, at the start of the program.

This program makes use of modules to separate out the various features of the program. You could combine all of the features into a single workspace rather than breaking them out, but the program would take more space on the screen, or possibly require scrolling. It would probably be more cluttered and less easy to follow.

Have fun with this.