Weston Middle School |
Technology/EngineeringCourse Materials |
Weston, Massachusetts |
| Home | Lego Robotics | Grade 7 Design-Construction | Grade 8 Design-Construction | Links | | ||
Lego NxT Roboticst-Using
NxT-G Record BlockditRegion3 |
||
NOTES ON RECORD BLOCK: The Record block lets you record an action that you act out with your robot. It does this by remembering how many times the motors turn on your robot and then replaying the correct number of turns when you select “run” on your Record/Play block and run your program. For example, you can have the Record/Play block record the motion as you roll a wheeled robot forward and then turn it sharply to the left. Or you might build a robotic arm and record the motion as it shakes hands with you. When you run these recorded motions using a Record/Play block, the wheeled robot will go forward and turn, and the robotic arm will shake hands, in both cases without your help. To record an action, first choose a name for the action and an estimated time for how long it will take to complete. In the first example above of the wheeled robot, you might call the file “forward and turn” and set the time to 10 seconds. You would then download the block. When you’re ready, run the program and act out the motion you want to record. When the time is up (10 seconds in this case), the motion you acted out will be saved. Finally, change the block’s action property from “record” to “play,” type the name you gave to the recorded sequence, download the Record/Play block again and run the program. It will repeat (as closely as possible) the acted out motion without your help. |
Links
|
|
EditRegion5
|
||
Revised
January 2011 by Jonathan Dietz,
dietzj@mail.weston.org |