Educational Robots for Absolute Beginners - NXT
Week 4 - Repetition, Using Sensors, and More
4.1 More Information about the Software
4.2 Dance and Dance and Dance Again (Intro to Loops)
4.3 Introduction to Sensor Based Looping
4.4 Robot Project 3
4.5 Midpoint Feedback
4.6 Advanced Move Blocks
4.7 Using the Ultrasonic Sensor
4.8 Wait Blocks
4.9 More on Using Sensor Based Loops
4.10 Switch Blocks
4.11 Robot Project 4
When you add a new wait block that uses an ultrasonic sensor, the software specifies that you will plug that sensor into port 4. Will your program still work if you plug the sensor into a different port?
No. LEGO has assigned each sensor a specific port - these are clearly shown in the building instructions and in the software. In order for an ultrasonic sensor to function properly, it must be plugged into port 4.
Yes, but only if the ultrasonic sensor is the
sensor plugged in to the NXT.
Yes, as long as you modify the wait block to specify the port number that the ultrasonic sensor is actually connected to.
Yes. While the ultrasonic sensor needs to be plugged into port 4 while your code is downloaded, you may move it to another port as soon as downloading is complete.
Send Private Feedback
Laboratory for Educational Robots