Download presentation
Presentation is loading. Please wait.
Published byAgatha Marilyn Doyle Modified over 6 years ago
1
Introduction To Programming with LEGO NXT 0
2
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
3
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!
4
COMMUNICATIONS LINK (BLUETOOTH)
How it all works COMMUNICATIONS LINK (BLUETOOTH) COMPILED RTE CODE PROGRAMS FIRMWARE OS
5
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
6
Introduction to the NXT-G
Environment The NXT Brick Connecting to a Brick Common Blocks Complete Pallete
7
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
8
Sensors & Servos
9
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
10
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.
11
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
12
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
13
Servos Both and input and output device Step Monitor
14
Lab 0
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.