21
PROGRAMMING CAN BE FUN How to control LEGO® Mindstorms devices Thomas Mueller thomas@tmspecial.com

How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Embed Size (px)

Citation preview

Page 1: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

PROGRAMMING CAN BE FUN

How to control LEGO® Mindstorms devices

Thomas Muellerthomas _ @ _ tmspecial.com

Page 2: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Outline

timeline hardware software programming advantages/disadvantages resources questions

Page 3: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Timeline

2006

NXT

Code PilotRCX

Scout

1995

Dacta

1998/991990

Control Center

Page 4: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Hardware

RCX 3 inputs/3 outputs 8-bit Renesas H8/300 microcontroller 32K RAM IR communication

Page 5: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Hardware

NXT 4 inputs/3 outputs 32-bit AT91SAM7S256 processor 8-bit ATmega48 microcontroller 256 KB flash memory, 64 KB RAM 4 KB flash memory, 512 Bytes RAM USB communication

Page 6: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Inputs (sensors)

touch light sound ultrasonic infrared color compass acceleration gyroscopic

Page 7: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Inputs

buttons Bluetooth 3rd party devices

game controller

Page 8: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Outputs

electric motors sound display Bluetooth

Page 9: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Software

Graphical NXT-G RoboLab Microsoft Robotics Studio

Assembly Next Byte Codes (NBC)

C Not Quite C (NQC) Not eXactly C (NXC) RobotC

Page 10: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Software

Java leJOS

.NET NXT#

IDE Bricx Command Center Microsoft Visual Studio Eclipse

Page 11: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

NXT-G demo

Page 12: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Bricx/NXC demo

Page 13: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Fat Boy

Page 14: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Pinball machine

Page 15: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Slot machine

Page 16: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Advantages

very affordable for a robotics set can be combined with 99% of all

other Lego parts huge community

FIRST LEGO League had over 10,000 teams with over 100,000 participants in 2007

Page 17: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Disadvantages

price ($250 MSRP) not backwards compatible

different sensors/motors

Page 18: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Resources

General LEGO

http://mindstorms.lego.com/eng/Black_Destination/Default.aspx Wikipedia

http://en.wikipedia.org/wiki/Lego_Mindstorms http://en.wikipedia.org/wiki/Lego_NXT

Software Bricx

http://bricxcc.sourceforge.net/nbc/ http://bricxcc.sourceforge.net/

Microsoft Robotics Studio http://msdn.microsoft.com/en-us/robotics/default.aspx http://en.wikipedia.org/wiki/Microsoft_Robotics_Studio

Page 19: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Resources

3rd party hardware http://www.hitechnic.com/ http://www.mindsensors.com/

Community FIRST LEGO League

http://www.usfirst.org/community/fll/default.aspx?id=970 http://en.wikipedia.org/wiki/FIRST_Lego_League

LEGO user group of Los Angeles http://groups.yahoo.com/group/LUGOLA/

BrickShelf http://www.brickshelf.com/cgi-bin/search.cgi?q=nxt&stype=dfic http://www.brickshelf.com/cgi-bin/search.cgi?q=mindstorms&sty

pe=fi

Page 20: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Questions

Page 21: How to control LEGO® Mindstorms devices Thomas Mueller thomas _ @ _ tmspecial.com

Contact

Thomas Mueller thomas _ @ _ tmspecial.com http://www.tmspecial.com/downloads/Lego Mindstorms NXT.pptx