
Programming is the writing or planning of a program. For the Lego Mindstorms ev3 robot, you would program it using the machine above. For the Mindstorms ev3 robot puppy, we built the puppy and then had to program it. We programmed it to make the puppy show emotion, eat using the bone we built, pee by lifting its hind legs, and pet it and have it show happiness. The robot consisted of a color sensor and the bone. Once we finished building our robot, we programmed it by pressed several buttons on the machine to make it so that when it sensed that the bone was by the robot's mouth, it would make eating noises.
When programming it to do these actions, we had to use the machine above. On the screen, it showed various colored blocks that had certain purposes in order to program it. The colors were green, orange, yellow, red, dark blue, and light blue. The green block was the action block which controlled the medium motor, large motor, move steering, move tank, display, sound, and the brick status light. The orange block was called the flow block consisted of simple actions such as start, loop, and wait. The yellow block controlled the sensor attachments to the machine and controlled how they worked. The red block was called the actions block and it controlled the movements the robot would do. The dark blue block was in control of advanced programs such as messaging, Bluetooth, and data logging. Lastly, the light blue block had previously used and saved programs. These colored blocks helped us to program our robot.
All in all, our group used the colored blocks on the machine. This enabled us to truly bring our robot puppy to life and enabled us to make the robot do certain actions. Without the programming, our robot wouldn't have been able to do the actions that it could.
No comments:
Post a Comment