top of page
Recent Posts

Bumperbot

Pseudocode:

1. Start loop

1. Start motors

2. Sense for touch with touch sensors

3. Stop moving when touched

4. Move back for 1 motor rotation

5. Turn for n rotations

6. End loop after infinite iterations or until stopped

In this challenge we had to make a robot that could move a round the room until it hit an object and then it turns and repeats until we stop it. It was a relatively easy challenge as we have dealt with touch sensors before so it was quite easy. We only had one hiccup and that was that the robot was built with two touch sensors and it was hard to program it to sense both. We worked it out by using two loops that played ant the same time. You can see it here.

Here is a video of it running the program.

I learned how to use two sensors in challenge and that's about it the rest was basic programming that we have already done. In the next challenge I want to get better at doing the psuedocode first because I always make the actual code first.


bottom of page