{"id":18,"date":"2013-04-12T13:19:37","date_gmt":"2013-04-12T03:19:37","guid":{"rendered":"http:\/\/legoeng.local\/?p=18"},"modified":"2017-12-21T17:48:03","modified_gmt":"2017-12-21T06:48:03","slug":"nxt-g-quick-guide","status":"publish","type":"post","link":"http:\/\/legoeng.local\/nxt-g-quick-guide\/","title":{"rendered":"NXT-G quick programming guide"},"content":{"rendered":"
The following are examples of programming challenges for LEGO MINDSTORMS NXT Software (NXT-G).<\/p>\n
<\/a><\/p>\n You will need an NXT car with two motors. Attach one motor to Port A and the other motor to Port C.<\/p>\n Draw an NXT brick and label the following parts:<\/p>\n <\/a><\/p>\n You will need an NXT car with two motors and a touch sensor. Attach one motor to Port A and the other motor to Port C. Attach the touch sensor to Port 1.<\/p>\n Add a second Wait block just after the first Wait block and before the Move block. Set one Wait block to wait until the touch sensor is pressed, and set the second Wait block to wait until the touch sensor is released. When you run this program, how does the NXT car’s behavior compare to the behavior of the car in step 4, above? Compare the efficiency of the code – which do you find easier to make in NXT-G?<\/p>\n <\/a><\/p>\n You will need an NXT car with two motors and a touch sensor. Attach one motor to Port A and the other motor to Port C. Attach the touch sensor to Port 1.<\/p>\n Make the car continue to drive forward each time the touch sensor is pressed until the touch sensor has been pressed four times in total. Hint: Change the settings of the Loop block. Set the Control to Count, and change the count number.<\/p>\n <\/a><\/p>\n You will need an NXT car with two motors and a touch sensor. Attach one motor to Port A and the other motor to Port C. Attach the touch sensor to Port 1.<\/p>\n Change the direction of each Move block so that at least one Move block causes the car to turn. Now you can control which way the motors turn by pressing a single touch sensor! What are the limitations of this program? What would you like to change about the program?<\/p>\n <\/a><\/p>\n You will need an NXT car with two motors, a light sensor, and black electrical tape. Attach one motor to Port A and the other motor to Port C. Attach the light sensor to Port 3.<\/p>\n Change the direction of each Move block so that at least one Move block causes the car to turn. Now you can control which way the motors turn by pressing a single touch sensor! What are the limitations of this program? What would you like to change about the program?<\/p>\n\n
Extra challenge<\/h3>\n
\n
Wait for Touch<\/h2>\n
\n
Extra challenge<\/h3>\n
Loop<\/h2>\n
\n
Extra challenge<\/h3>\n
Change direction with Touch Sensor<\/h2>\n
\n
Extra challenge<\/h3>\n
Light Sensor: Stop a black line<\/h2>\n
\n
Extra challenge<\/h3>\n
Switch<\/h2>\n