getting started! lego mindstorms program nxt 2.0

Post on 29-Dec-2015

220 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Getting Started!Getting Started!

Lego Mindstorms ProgramLego Mindstorms Program

NXT 2.0NXT 2.0

GETTING TO KNOW YOUR ROBOTGETTING TO KNOW YOUR ROBOT

Robot moved forward for 3 seconds. Both motors running.Robot moved forward for 3 seconds. Both motors running.

Robot moved forward for 3 second then moved backwards for 3 second.Robot moved forward for 3 second then moved backwards for 3 second.

Robot moved forward for 3 second then moved backwards for 3 secondRobot moved forward for 3 second then moved backwards for 3 secondand then turned around for 3 rotationsand then turned around for 3 rotations

Robot turns around for 8 rotations and then turns the other way for 8 rotationsRobot turns around for 8 rotations and then turns the other way for 8 rotationsthen the Robot shouts "Hooray" then the Robot shouts "Hooray"

Robot turns around for 8 rotationsRobot turns around for 8 rotations and then turns the other wayand then turns the other way

for 8 rotationsfor 8 rotationsthen the Robot shouts "Hooray" then the Robot shouts "Hooray"

and then a stop signand then a stop sign appears on the screen. appears on the screen.

Robot waits until you clap ormake a sound then moves

forward and backwardsthen shouts "Hooray"

Robot waits for 5 second (time)and then moves forward for3 seconds and then moves

backward for 3 seconds andshouts "Hooray"

Robot program is "looped" for 5 counts.

Mexican Wave.Mexican Wave. As a class you are going to do a Mexican Wave.As a class you are going to do a Mexican Wave.

Your Robot is to start only on a sound.Your Robot is to start only on a sound. Your Robot will then go forward for 2 seconds.Your Robot will then go forward for 2 seconds. Your Robot will then reverse for 2 seconds.Your Robot will then reverse for 2 seconds. Your Robot will then shout "Hooray"Your Robot will then shout "Hooray" Your Robot will then wait for 2 seconds.Your Robot will then wait for 2 seconds. Your Robot will then go forward again for 2 seconds.Your Robot will then go forward again for 2 seconds. Your Robot will then reverse for 2 seconds.Your Robot will then reverse for 2 seconds. Your Robot will then turn around 360 degrees.Your Robot will then turn around 360 degrees.

D:\tpowt1\My Documents\Days of Excellence\Mexican Wave D:\tpowt1\My Documents\Days of Excellence\Mexican Wave

Figure 8Figure 8

Make your Robot turn in a figure 8.Make your Robot turn in a figure 8. Hint: The figure 8 should look like the Hint: The figure 8 should look like the

drawing below.drawing below.

Let's DanceLet's Dance

Make your Robot sway from side to side.Make your Robot sway from side to side.

Then make your Robot rock backward and Then make your Robot rock backward and forward.forward.

top related