Module F: Presentation Understanding Robot Fundamentals Department of Defense Education Activity Robotics Engineering – CTE502 Career and Technical Education Robotics Engineering (CTE502) – DoDEA Career and Technical Education Module F: Presentation – Understanding Robot Fundamentals Revised 17 November 2018
NXT-G Programming
Learning outcomes Write a simple programs that will drive the tri-bot in a square. Add a loop to the program to make a square in as few statements as possible. Wait to start the square when a loud sound is sensed. Switch between a left turn and right turn square based on lighting levels in the room.
NXT Intelligent Brick, Motors, and Sensors
Collection of Training Robot Platforms
NXT Interface Play selected program section NXT window Stop NXT window Download and play entire program Download
NXT programming environment
Motor Block 1 Motor port selection (C & B) 2 Motor direction (Forward) 3 Motor power from 0-100 (about 75) 4 Length of motor turn (Rotations)
Motor Control Panel Port Direction Steering Power Duration (Rotations, Unlimited, Degrees & Seconds) Next action
Sound Allows the programmer to add audible output to the robots program. 1. Action 2. Control 3. Volume 4. Function 5. File 6. Wait
Display Displays an output picture. 1. Display action 2. Display or clear 3. Image file name 4. Image location
Wait Time Touch Light Sound Ultrasonic Wait till the touch sensor is pressed. Wait till the sound sensor in port 2 hears a sound greater than 50.
Loops Forever Sensor Time Count Logic Sensor controlled loops Time controlled loops
Switch controlled by values The switch takes an wire input at 1 If the condition is met the upper path is taken, otherwise the lower path is executed.
Switches controlled by sensors The value of the light sensor in port 3 is read. If it is greater than 50 turn right, less than 50 turn left.