you know standard program? well this is literally just that, but with the touch sensor instead.
in this challenge we had to make a robot that, when the touch sensor is pressed, goes backward, then turns, then continues forward. which is literally just standard program but with the button, instead of the ultrasonic sensor.
requirements:
this robot needs to be able to move normally, and have a touch sensor capable of detecting walls before the main robot part hits them.
pseudo code:
1. enter loop
2.move at half maximum speed
3. wait until the touch sensor is pressed
4. back up for 1 rotation at half speed
5.turn at an angle that isn't normal, I.E not 90 degrees or 180 degrees or a degree that forms a regular shape.
6. go to start of loop
reflection:
in the process of completing this challenge i learned about the functionality of the touch sensor.
one thing that went well was that, since i basically already knew what to do, it was really easy to just put the code in place, and then, it worked on my first try.
the only thing i can thing of as having gone wrong, was that i couldn't get it so that it was a bumper like i wanted, right now its just a button. i wanted it to be more of a bar, but unfortunately, no.
the thing with the lack of a proper bumper is the only thing i can really say i want to improve upon.
I hereby dub this robot: Bumper bot, here are some pictures and a video:
Comments