Lego NXT: An Introduction

5,208 views

Published on

Presentation for the IT-Seminar 2011 @KNORD (Copenhagen - Denmark)

CC: By-Noncomercial-SA
David Fernández
Carlota Martel
José Manuel Gómez

Published in: Education, Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,208
On SlideShare
0
From Embeds
0
Number of Embeds
540
Actions
Shares
0
Downloads
250
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Lego NXT: An Introduction

  1. 1. Lego-NXT An IntroductionPresented by:David FernándezCarlota MartelJosé Manuel Gómez
  2. 2. License All registered trademarks, logos, and images belong to their respective owners. But the rest is under a Creative Commons License A"ribuon  —  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). 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. http://creativecommons.org/licenses/by-nc-sa/3.0/
  3. 3. Table of Contents • Introduction to Lego Mindstorms • Programming in a Graphical Environment: • NXT-G • Programming in a Textual Environment: • NXC
  4. 4. -Introduction toLego Mindstorms-
  5. 5. Programmable robotics toys
  6. 6. Evolution http://www.flickr.com/photos/55524309@N05/5377715421
  7. 7. First steps• MIT & Lego• Investigations on how children learn • MIT Programmable Brick • Symour Papert
  8. 8. 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
  9. 9. RCX (1998) • 8-bit microcontroller • 32K of RAM • IR communication • 3 sensor input ports • 3 motor output ports • Display • RCXCode / Robolab Image: Wikimedia Commons
  10. 10. NXT (2006) • Replaces RCX • Firmware (OSS) • SDK, HDK, BDK • 4 sensors • 3 motors • LCD display • NXT-G Image: Wikimedia Commons
  11. 11. 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
  12. 12. Hardware
  13. 13. The brick Lego Mindstorms NXT Hardware Developer Kit
  14. 14. Sensors Touch Ultrasound Light Sound
  15. 15. Educationhttp://www.flickr.com/photos/ianus/279779053/
  16. 16. • Robotics• Programming• Concurrency• AI
  17. 17. http://www.flickr.com/photos/tambako/2473970479/ VISUAL
  18. 18. Proyects http://www.flickr.com/photos/sk8geek/4636413499
  19. 19. Electric Guitarhttp://www.nxtprograms.com/guitar/index.html
  20. 20. Ball Hunterhttp://www.nxtprograms.com/guitar/index.html
  21. 21. Competitions
  22. 22. • Robot Game • Acomplish missions• Project • Explore a real problem • Develope an inovative solution
  23. 23. Programmingenvironments
  24. 24. Some of them• Ada • BricxCC • NXT-G • NXTGCC• RobotC • ruby-nxt• leJOS NXJ • Robotics.NXT• MATLAB • ...
  25. 25. Some of them• Ada • BricxCC • NXT-G • NXTGCC• RobotC • ruby-nxt• leJOS NXJ • Robotics.NXT• MATLAB • ...
  26. 26. Some of them• Ada • BricxCC • NXT-G • NXTGCC• RobotC • ruby-nxt• leJOS NXJ • Robotics.NXT• MATLAB • ...
  27. 27. -Programming in aGraphical Environment-
  28. 28. Workspace 3 2 1 6 4 9 8 7 5
  29. 29. Common Blocks
  30. 30. DEMO
  31. 31. -Programming in aTextual Environment- NXC
  32. 32. Bricx Command Center
  33. 33. Bricx Command Center
  34. 34. Bricx Command Center
  35. 35. Bricx Command Center NBC
  36. 36. Variables
  37. 37. Control Elements
  38. 38. Tasks, subroutines and macros
  39. 39. Accessing to the sensors (i)
  40. 40. Accessing to the sensors (ii)
  41. 41. Controlling the Servo motors (i)
  42. 42. Controlling the Servo motors (ii)
  43. 43. Parallelism (i)
  44. 44. Parallelism (ii)
  45. 45. Communication (i)
  46. 46. Communication (ii)
  47. 47. Making some music (i)
  48. 48. Making some music (ii)
  49. 49. Bricx Command Center
  50. 50. NXT-G vs. NXC Features NXT-G NXC Language Graphic Not eXactly C Write programs Write fast Advantage fast programsSpeed (loops/min) 762 4285 Memory (bytes) 10704 1428
  51. 51. Questions?
  52. 52. http://campusvirtual.uem.es IT-Seminarhttp://www.slideshare.net/davidfm http://www.flickr.com/photos/wwworks/4759535950/

×