lego nxt: an introduction
DESCRIPTION
Presentation for the IT-Seminar 2011 @KNORD (Copenhagen - Denmark) CC: By-Noncomercial-SA David Fernández Carlota Martel José Manuel GómezTRANSCRIPT
![Page 1: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/1.jpg)
Lego-NXTAn Introduction
Presented by:
David FernándezCarlota MartelJosé Manuel Gómez
![Page 2: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/2.jpg)
License
All registered trademarks, logos, and images belong to their respective owners.
But the rest is under a Creative Commons LicenseA"ribu'on — You must a*ribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).
http://creativecommons.org/licenses/by-nc-sa/3.0/
Noncommercial — You may not use this work for commercial purposes.
Share Alike — If you alter, transform, or build upon this work, you may distribute the resul@ng work only under the same or similar license to this one.
![Page 3: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/3.jpg)
Table of Contents
• Introduction to Lego Mindstorms
• Programming in a Graphical Environment:
• NXT-G
• Programming in a Textual Environment:
• NXC
![Page 4: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/4.jpg)
-Introduction toLego Mindstorms-
![Page 5: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/5.jpg)
Programmable robotics toys
![Page 6: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/6.jpg)
Evolution
http://www.flickr.com/photos/55524309@N05/5377715421
![Page 7: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/7.jpg)
First steps
• MIT & Lego
• Investigations on how children learn
• MIT Programmable Brick
• Symour Papert
![Page 8: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/8.jpg)
First steps• Design
• Easy for new users and powerful for the “experts”
• Many diferent shapes
• Simplicity
• Black box
• Learn how to program
• Observe the children in the lab
![Page 9: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/9.jpg)
RCX (1998)
• 8-bit microcontroller
• 32K of RAM
• IR communication
• 3 sensor input ports
• 3 motor output ports
• Display
• RCXCode / Robolab
Image: Wikimedia Commons
![Page 10: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/10.jpg)
NXT (2006)
Image: Wikimedia Commons
• Replaces RCX
• Firmware (OSS)
• SDK, HDK, BDK
• 4 sensors
• 3 motors
• LCD display
• NXT-G
![Page 11: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/11.jpg)
NXT 2.0 (2009)
• Same brick as 1.0
• Sound editor
• Image editor
• 1 Color Sensor RGB
• 2 Touch sensors
• 1 Ultrasonic sensor
• 3 servo motors
• Bluetooth communication
![Page 12: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/12.jpg)
Hardware
![Page 13: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/13.jpg)
The brick
Lego Mindstorms NXT Hardware Developer Kit
![Page 14: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/14.jpg)
Sensors
Touch
Light
Ultrasound
Sound
![Page 15: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/15.jpg)
Education
http://www.flickr.com/photos/ianus/279779053/
![Page 16: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/16.jpg)
• Robotics
• Programming
• Concurrency
• AI
![Page 17: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/17.jpg)
VISUAL
http://www.flickr.com/photos/tambako/2473970479/
![Page 18: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/18.jpg)
Projects
http://www.flickr.com/photos/sk8geek/4636413499
![Page 19: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/19.jpg)
Electric Guitar
http://www.nxtprograms.com/guitar/index.html
![Page 20: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/20.jpg)
![Page 21: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/21.jpg)
Ball Hunter
http://www.nxtprograms.com/guitar/index.html
![Page 22: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/22.jpg)
![Page 23: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/23.jpg)
![Page 24: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/24.jpg)
![Page 25: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/25.jpg)
![Page 26: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/26.jpg)
Competitions
![Page 27: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/27.jpg)
![Page 28: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/28.jpg)
• Robot Game
• Acomplish missions
• Project
• Explore a real problem
• Develope an inovative solution
![Page 29: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/29.jpg)
Programming environments
![Page 30: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/30.jpg)
Some of them
• Ada
• NXT-G
• RobotC
• leJOS NXJ
• MATLAB
• BricxCC
• NXTGCC
• ruby-nxt
• Robotics.NXT
• ...
![Page 31: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/31.jpg)
Some of them
• Ada
• NXT-G
• RobotC
• leJOS NXJ
• MATLAB
• BricxCC
• NXTGCC
• ruby-nxt
• Robotics.NXT
• ...
![Page 32: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/32.jpg)
Some of them
• Ada
• NXT-G
• RobotC
• leJOS NXJ
• MATLAB
• BricxCC
• NXTGCC
• ruby-nxt
• Robotics.NXT
• ...
![Page 33: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/33.jpg)
-Programming in a Graphical Environment-
![Page 34: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/34.jpg)
Workspace
6
7
8
9
1
23
4
5
![Page 35: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/35.jpg)
Common Blocks
![Page 36: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/36.jpg)
DEMO
![Page 37: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/37.jpg)
-Programming in a Textual Environment-
NXC
![Page 38: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/38.jpg)
Bricx Command Center
![Page 39: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/39.jpg)
![Page 40: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/40.jpg)
Bricx Command Center
![Page 41: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/41.jpg)
Bricx Command Center
![Page 42: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/42.jpg)
Bricx Command Center
NBC
![Page 43: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/43.jpg)
![Page 44: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/44.jpg)
Variables
![Page 45: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/45.jpg)
Control Elements
![Page 46: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/46.jpg)
Tasks, subroutines and macros
![Page 47: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/47.jpg)
Subroutines (ii)
![Page 48: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/48.jpg)
Accessing to the sensors
![Page 49: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/49.jpg)
Controlling the Servo motors (i)
![Page 50: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/50.jpg)
Controlling the Servo motors (ii)
![Page 51: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/51.jpg)
Parallelism (i)
![Page 52: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/52.jpg)
Parallelism (ii)
![Page 53: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/53.jpg)
Communication (i)
![Page 54: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/54.jpg)
Communication (ii)
![Page 55: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/55.jpg)
Making some music (i)
![Page 56: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/56.jpg)
Making some music (ii)
![Page 57: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/57.jpg)
Bricx Command Center
![Page 58: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/58.jpg)
NXT-G vs. NXC
Features NXT-G NXC
Language
Advantage
Speed (loops/min)
Memory (bytes)
Graphic Not eXactly C
Write programs fast
Write fast programs
762 4285
10704 1428
![Page 59: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/59.jpg)
Questions?
![Page 60: Lego NXT: An Introduction](https://reader033.vdocuments.us/reader033/viewer/2022050919/54557022b1af9fcf338b4893/html5/thumbnails/60.jpg)
http://www.flickr.com/photos/wwworks/4759535950/
http://campusvirtual.uem.es IT-Seminar
http://www.slideshare.net/davidfm