
LEGO ROBOT

Lego Robot in Action
Lego Robot Program Screenshot
For this project, we had to build a Lego robot and program it. We programmed it to pick up a brick of toxic waste, move it, drop it, and run away to hide behind our lego, Dumbo.

The steps to Create our Robot
-
#8: Your Favorite Book
-
​​ LINK TO LEGO-QUEST
-
-
This quest asks you to create a Lego that represents your favorite childhood book. Focus on key features of the main character, an object, or a scene.
-
Our Lego was inspired by the children's book, Dumbo, by RH Disney. We wanted to create a Lego that represented the main character, Dumbo. So, we created an elephant looking Lego, as shown by the long trunk.
-
2 other quests:
-
#10: I also looked at the quest, Spring, which asks you to create a Lego that represents spring to you. If I did this quest, I would try and make a flower looking Lego because when I think of spring, I think of the warm sun and beautiful blooming flowers.
-
#28: I also looked at the quest, Halloween, which asks you to create a Lego that represents Halloween. If I were to do this quest, I would try and create a spider lego because when I think of Halloween, I think of pumpkins and spiders/webs.
-
Dumbo
The Steps of Our Lego Program:
*WE USED PORT 3 FOR THIS PROGRAM!*
​
-
First, our Lego rolls forward at a power of 13.
-
In the next step, we set our program to sense that when the robot is less than or equal to 5cm away from something, it stops. Here, we set our threshold as 3.
-
Then we told our robot to stop and shut off because, without this step, our robot would not go forward and continue the programmed steps.
-
Next, our robot was programmed to repeat step 3, stop, for 1 second.
- After our robot stopped, we programmed the motor that was hooked to the arms, to come down at a power of 50 and -.4 rotations (negative made the arm go down), and then stop. Here is where our robot captured the toxic waste.
- Next, we wanted the robot to turn the waste so we made the left-hand power turn -50 and the right-hand power turn 50, with one revolution of the wheel. This movement was very quick.
- Then we programmed our robot to go forward at a power of 19 with 3 rotations, pushing the toxic waste.
- Once our robot moved the waste, we wanted him to lift his arm back up, so we told the low power motor to raise the arm .4 rotations at a power of 10.
- We needed our program to continue running so we had to wire step 8 and 9 to make our robot follow the program continuously.
- Next, we had our robot back away from the waste at a power of -17 (negative made it back up) for 2 seconds.
- After our robot backed away from the toxic waste, we steered it left at a power of -15 and right 15. We tried to add in an angle for the gyroscope to tell our bot to stop steering, however, it wouldn't work so we instead added in another steering program.
- We had our bot steer left at a power of -51 and right 50 for 1 rotation.
- Next, we wanted our robot to turn left so it could run and hide. So, we turned it left -52 at a power of 60, using the gyroscope to make it turn in a complete circle (took a couple tries but we finally got it to work with the gyroscope).
- For step 13, we had our robot go forward at a power of 62 and we continued this for 9 seconds to end it.
Lenny & Dumbo Save the Day!
One day, Tony, the toxic waste arrived in the small town of Recycleville. Tony was going around tormenting the town and dripping toxins as he went. So, the mayor called Lenny, the Lego robot, and his sidekick, Dumbo. When Lenny and Dumbo arrived in Recycleville, they realized the terror Tony was causing and thought of the best plan yet to defeat Tony. Dumbo distracted Tony with his huge ears while Lenny snuck up behind Tony, used his long arms and carried Tony out of Recycleville. Tony, became so angry at what Lenny was doing that he exploded from anger, however, not before Lenny could run behind Dumbo. Dumbo used his long trunk filled with water as a shield to protect him and Lenny from the firey explosion. In the end, Tony was burned up and defeated while Lenny and Dumbo became the heroes of Recycleville.





