Robot Simulation

Here is our robot simulation. In this simulation, a robot bumps off of walls and obstacles around a maze. It starts and makes its way around various parts of the maze until it runs into the end space.


To the left is the beginning stages of the building stage of the maze/obstacles and in the background is the code.

To the right is the code we used to program the robot. In the beginning, the robot is coded with basic movements, such as moving forwards, backwards, and turning. Then, the more difficult part of the code came from designing the reaction of the robot when it encounters obstacles (such as a ball or a wall). To do this, we had to go it so that it could autonomously finish our maze, which require specific turning radii within the code. We also coded the speed of the robot.

To the left is the final screen of the maze once the robot reaches the end square. Below is a video of our robot going through the maze and reaching the end space.

IMG_5436.MOV

Reflection: This robot simulation was very fun to make! Working with code led to some troubleshooting, but at the end of the day the bot made it to the end. In general, this was the least complicated bot to make.

Code for the robot simulation:


Simulation Code