+ All Categories
Home > Education > Lego NXT: An Introduction

Lego NXT: An Introduction

Date post: 01-Nov-2014
Category:
Upload: david-fernandez
View: 3,852 times
Download: 2 times
Share this document with a friend
Description:
Presentation for the IT-Seminar 2011 @KNORD (Copenhagen - Denmark) CC: By-Noncomercial-SA David Fernández Carlota Martel José Manuel Gómez
Popular Tags:
60
Lego-NXT An Introduction Presented by: David Fernández Carlota Martel José Manuel Gómez
Transcript
Page 1: Lego NXT: An Introduction

Lego-NXTAn Introduction

Presented by:

David FernándezCarlota MartelJosé Manuel Gómez

Page 2: Lego NXT: An Introduction

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

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

-Introduction toLego Mindstorms-

Page 5: Lego NXT: An Introduction

Programmable robotics toys

Page 6: Lego NXT: An Introduction

Evolution

http://www.flickr.com/photos/55524309@N05/5377715421

Page 7: Lego NXT: An Introduction

First steps

• MIT & Lego

• Investigations on how children learn

• MIT Programmable Brick

• Symour Papert

Page 8: Lego NXT: An Introduction

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

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

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

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

Hardware

Page 14: Lego NXT: An Introduction

Sensors

Touch

Light

Ultrasound

Sound

Page 15: Lego NXT: An Introduction

Education

http://www.flickr.com/photos/ianus/279779053/

Page 16: Lego NXT: An Introduction

• Robotics

• Programming

• Concurrency

• AI

Page 17: Lego NXT: An Introduction

VISUAL

http://www.flickr.com/photos/tambako/2473970479/

Page 18: Lego NXT: An Introduction

Projects

http://www.flickr.com/photos/sk8geek/4636413499

Page 19: Lego NXT: An Introduction

Electric Guitar

http://www.nxtprograms.com/guitar/index.html

Page 20: Lego NXT: An Introduction
Page 21: Lego NXT: An Introduction

Ball Hunter

http://www.nxtprograms.com/guitar/index.html

Page 22: Lego NXT: An Introduction
Page 23: Lego NXT: An Introduction
Page 24: Lego NXT: An Introduction
Page 25: Lego NXT: An Introduction
Page 26: Lego NXT: An Introduction

Competitions

Page 27: Lego NXT: An Introduction
Page 28: Lego NXT: An Introduction

• Robot Game

• Acomplish missions

• Project

• Explore a real problem

• Develope an inovative solution

Page 29: Lego NXT: An Introduction

Programming environments

Page 30: Lego NXT: An Introduction

Some of them

• Ada

• NXT-G

• RobotC

• leJOS NXJ

• MATLAB

• BricxCC

• NXTGCC

• ruby-nxt

• Robotics.NXT

• ...

Page 31: Lego NXT: An Introduction

Some of them

• Ada

• NXT-G

• RobotC

• leJOS NXJ

• MATLAB

• BricxCC

• NXTGCC

• ruby-nxt

• Robotics.NXT

• ...

Page 32: Lego NXT: An Introduction

Some of them

• Ada

• NXT-G

• RobotC

• leJOS NXJ

• MATLAB

• BricxCC

• NXTGCC

• ruby-nxt

• Robotics.NXT

• ...

Page 33: Lego NXT: An Introduction

-Programming in a Graphical Environment-

Page 34: Lego NXT: An Introduction

Workspace

6

7

8

9

1

23

4

5

Page 35: Lego NXT: An Introduction

Common Blocks

Page 36: Lego NXT: An Introduction

DEMO

Page 37: Lego NXT: An Introduction

-Programming in a Textual Environment-

NXC

Page 38: Lego NXT: An Introduction

Bricx Command Center

Page 39: Lego NXT: An Introduction
Page 40: Lego NXT: An Introduction

Bricx Command Center

Page 41: Lego NXT: An Introduction

Bricx Command Center

Page 42: Lego NXT: An Introduction

Bricx Command Center

NBC

Page 43: Lego NXT: An Introduction
Page 44: Lego NXT: An Introduction

Variables

Page 45: Lego NXT: An Introduction

Control Elements

Page 46: Lego NXT: An Introduction

Tasks, subroutines and macros

Page 47: Lego NXT: An Introduction

Subroutines (ii)

Page 48: Lego NXT: An Introduction

Accessing to the sensors

Page 49: Lego NXT: An Introduction

Controlling the Servo motors (i)

Page 50: Lego NXT: An Introduction

Controlling the Servo motors (ii)

Page 51: Lego NXT: An Introduction

Parallelism (i)

Page 52: Lego NXT: An Introduction

Parallelism (ii)

Page 53: Lego NXT: An Introduction

Communication (i)

Page 54: Lego NXT: An Introduction

Communication (ii)

Page 55: Lego NXT: An Introduction

Making some music (i)

Page 56: Lego NXT: An Introduction

Making some music (ii)

Page 57: Lego NXT: An Introduction

Bricx Command Center

Page 58: Lego NXT: An Introduction

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

Questions?


Recommended