NXT Robots and #HourofCode

This Tutorial was originally published on The Hausner Robotics Team Blog

 The Lego NXT robots use a visual programming interface that is object based.  If you need to download it, start here.

As part of a school wide Hour of Code event, we put together a workshop to get students experimenting with Code on the NXT robots.

We built the rovers ahead of time and set up a simple challenge, can your robot go around the corner and greet an alien?  The original challenge is HERE.  Thank you Dr. Graeme, we took your idea and ran with it, developing our own tutorial videos.

Here is the whole project in 2 videos of 3 minutes each




When you open a new program you really want to name it because otherwise you end up with a bunch of untitled programs on your robot with no way to tell them apart.

The first good choice you need to make is a program name
If you are in a class setting, include your initials as every student might name their program "greeting."
Once you open your new program you will need to pull a block into the active programming field.  In this case we are going to start with a motion block.  Once you drop the block in place, check out the controls on the bottom of the screen.


Programming field after adding one motion block

The motion block controls
Each block has its own menu of settings to tune in the performance of the component.  The best way to learn about these is to make one change at a time and run the program on the robot and observe how it changes what the robot does.

Resources:

5 note sequence: http://answers.yahoo.com/question/index?qid=20081007082728AAvJjTE

More NXT Projects\

Need more help?

Stem Center NXT Tutorial

Comments