Introduction To Programming with LEGO NXT 0
Introduction Why NXT and NXT-G? How it all works What are programs? Introduction to the NXT-G Connecting to the NXT Brick USB Bluetooth
Why NXT and NXT-G? Programming the NXT robot uses the same ideas any programming language Sequence Selection Iteration NXT-G is a graphical method of programming No complicated syntax Focus on the principles GREAT FUN!
COMMUNICATIONS LINK (BLUETOOTH) How it all works COMMUNICATIONS LINK (BLUETOOTH) COMPILED RTE CODE PROGRAMS FIRMWARE OS
What are programs? Something that: Lego NXT Models a process Has an entry point Generally has inputs and outputs Lego NXT Line follower Initialise sensors/servos - START Sensors, Servos and Screen
Introduction to the NXT-G Environment The NXT Brick Connecting to a Brick Common Blocks Complete Pallete
The NXT Brick USB Port 3 Motor Outputs (A, B, C) Navigation Buttons LCD display On/Select 4 Sensor Inputs (1, 2, 3, 4) Back
Sensors & Servos
Light Sensor This sensor detects ambient (surrounding) light. It sends out current light value logic signal (true/false) based on current light value falling above or below a trigger point
Sound Sensor Sound detector detects Audible vibrations It sends out current sound value A logic signal (true/false) based on whether the current sound value falls above or below a trigger point.
Ultrasonic Sensor The Ultrasonic sensor detects objects at a maximum range of about 100 inches (250 cm). It sends out the current ultrasonic reading a logic signal (true/false) based on whether the current ultrasonic reading falls above or below a trigger point
Touch Sensor The touch sensor detects contact It sends out its finding as a logic signal (true or false) If the sensor has been triggered, the block will send out a “true” signal; if it has not been triggered, the block will send a “false” signal Can detect three conditions Press Release Bump
Servos Both and input and output device Step Monitor
Lab 0