
Hannah's Build-It
Lego-Bot!
For this project we experimented with coding a Lego robot through the LEGO Mindstorm app for the iPad. The task was for the robot to move a small lego cube of "toxic waste" with the arm of the robot and then escape behind a creation of our choice from the LEGO quest webpage!



A side view of the robot, notice the arm that will move the block.
The robot from the rear, approaching the block.
The robot next to my creation, the goal was to make a structure as high up as possible-here is the link to the LEGO Quest!
See the legobot in action!

The legobot doesn't always do exactly what you want on the first try when coding! Here is a specific example from class where the arm didn't catch the cube as well.
Above is the programming for the robot in the video above (on the left).I will list a number for each box below and the specific function that action has on the robots movements below:
-
The robot will move forward for 10 rotations or until it is...
-
Within 4 cm of an object it will stop
-
The robot will halt completely
-
The arm will lower
-
The robot will turn quickly
-
The robot will travel forward
-
The arm will raise, leaving the block of "toxic waste"
-
The robot backs up
-
The robot will turn quickly
-
The robot travels forward
-
The robot turns sharply behind the wall
-
The robot moves slightly forward to safety!