{"id":7623,"date":"2016-02-02T14:54:46","date_gmt":"2016-02-02T03:54:46","guid":{"rendered":"http:\/\/legoeng.local\/?p=7623"},"modified":"2016-02-02T14:54:46","modified_gmt":"2016-02-02T03:54:46","slug":"nxt-exercises-one-approach","status":"publish","type":"post","link":"http:\/\/legoeng.local\/nxt-exercises-one-approach\/","title":{"rendered":"NXT exercises – One approach"},"content":{"rendered":"
\"domabot\"<\/a>
Domabot<\/figcaption><\/figure>\n

Another mentor and I developed the approach described below after we hit several roadblocks trying to show concepts, show programming examples, and then have the students replicate the demonstrated work.<\/p>\n

Instead of setting examples and showing the programming in detail, this approach provided\u00a0the students with\u00a0only\u00a0an NXT Domabot<\/a> with light and ultrasonic sensors, a computer with the NXT Software, a USB cable, and a mission assignment. The adults only helped when asked. We tried to pair more experienced programmers with less experienced ones and that seemed to work well with the middle-school kids.<\/p>\n

Although written with NXT in mind, these exercises are platform agnostic for the most part.<\/p>\n

I’m sure there could be better exercises, but these seemed to get more enthusiasm than our other efforts and resulted in the students getting more comfortable using sensors. A Microsoft Word version of these is available<\/a>.<\/p>\n

Robot Exercises<\/h2>\n

After building the Domabot, direct the students to work through the following sets of missions. Install the color sensor (or light sensor) and ultrasonic sensor. You may need to adjust the height of the light sensor so it is about the width of 2 pennies above the table.<\/p>\n

Mission #1. Driving in a Shape<\/strong>
\nSet up: A smooth horizontal surface.<\/p>\n

1a. Make the robot drive in a Square clockwise.<\/p>\n

1b. Make the robot drive in a Square counterclockwise.<\/p>\n

1c. Make the robot drive in a Square of side length 12 inches (300 mm).<\/p>\n

1d. Make the robot drive in various shapes (pentagon, hexagon, octagon, etc.), side lengths, and directions (cw\/ccw) as directed by the teacher.<\/p>\n

The intent is to have the students understand that each shape can be created with two key actions and as few as three program blocks: drive the length of the side, and make a turn, and repeat. This brings out the following relationships:
\n– between the robot wheel circumference, motor rotations, and distance
\n– connecting robot wheel movement with the change in robot heading
\n– using a loop to simplify repetitive tasks.<\/em><\/p>\n

Mission #2. Control with Light Sensor<\/strong>
\nSet up:<\/p>\n