Upload
david-fernandez
View
3.895
Download
2
Embed Size (px)
DESCRIPTION
Presentation for the IT-Seminar 2011 @KNORD (Copenhagen - Denmark) CC: By-Noncomercial-SA David Fernández Carlota Martel José Manuel Gómez
Citation preview
Lego-NXTAn Introduction
Presented by:
David FernándezCarlota MartelJosé Manuel Gómez
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.
Table of Contents
• Introduction to Lego Mindstorms
• Programming in a Graphical Environment:
• NXT-G
• Programming in a Textual Environment:
• NXC
-Introduction toLego Mindstorms-
Programmable robotics toys
Evolution
http://www.flickr.com/photos/55524309@N05/5377715421
First steps
• MIT & Lego
• Investigations on how children learn
• MIT Programmable Brick
• Symour Papert
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
RCX (1998)
• 8-bit microcontroller
• 32K of RAM
• IR communication
• 3 sensor input ports
• 3 motor output ports
• Display
• RCXCode / Robolab
Image: Wikimedia Commons
NXT (2006)
Image: Wikimedia Commons
• Replaces RCX
• Firmware (OSS)
• SDK, HDK, BDK
• 4 sensors
• 3 motors
• LCD display
• NXT-G
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
Hardware
The brick
Lego Mindstorms NXT Hardware Developer Kit
Sensors
Touch
Light
Ultrasound
Sound
Education
http://www.flickr.com/photos/ianus/279779053/
• Robotics
• Programming
• Concurrency
• AI
VISUAL
http://www.flickr.com/photos/tambako/2473970479/
Projects
http://www.flickr.com/photos/sk8geek/4636413499
Electric Guitar
http://www.nxtprograms.com/guitar/index.html
Ball Hunter
http://www.nxtprograms.com/guitar/index.html
Competitions
• Robot Game
• Acomplish missions
• Project
• Explore a real problem
• Develope an inovative solution
Programming environments
Some of them
• Ada
• NXT-G
• RobotC
• leJOS NXJ
• MATLAB
• BricxCC
• NXTGCC
• ruby-nxt
• Robotics.NXT
• ...
Some of them
• Ada
• NXT-G
• RobotC
• leJOS NXJ
• MATLAB
• BricxCC
• NXTGCC
• ruby-nxt
• Robotics.NXT
• ...
Some of them
• Ada
• NXT-G
• RobotC
• leJOS NXJ
• MATLAB
• BricxCC
• NXTGCC
• ruby-nxt
• Robotics.NXT
• ...
-Programming in a Graphical Environment-
Workspace
6
7
8
9
1
23
4
5
Common Blocks
DEMO
-Programming in a Textual Environment-
NXC
Bricx Command Center
Bricx Command Center
Bricx Command Center
Bricx Command Center
NBC
Variables
Control Elements
Tasks, subroutines and macros
Subroutines (ii)
Accessing to the sensors
Controlling the Servo motors (i)
Controlling the Servo motors (ii)
Parallelism (i)
Parallelism (ii)
Communication (i)
Communication (ii)
Making some music (i)
Making some music (ii)
Bricx Command Center
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
Questions?
http://www.flickr.com/photos/wwworks/4759535950/
http://campusvirtual.uem.es IT-Seminar
http://www.slideshare.net/davidfm