LEGO MINDSTORMS TUTORIAL ESWEEK 2009 Module NXT LEGO MINDSTORMS TUTORIAL

Total Page:16

File Type:pdf, Size:1020Kb

LEGO MINDSTORMS TUTORIAL ESWEEK 2009 Module NXT LEGO MINDSTORMS TUTORIAL LEGO MINDSTORMS TUTORIAL ESWEEK 2009 Module NXT http://nxtgcc.sf.net LEGO MINDSTORMS TUTORIAL Outline ESWEEK 2009 http://nxtgcc.sf.net Rasmus Ulslev Pedersen [email protected] Please sit close to the screen: there will be lots of small code shown... NXT.1 LEGO MINDSTORMS Presentation Overview TUTORIAL ESWEEK 2009 http://nxtgcc.sf.net Overview Non-technical overview of LEGO c MINDSTORMS c NXT from a community and user standpoint HW and SW Description of NXT hardware and Outline software from a developer perspective Examples (1) Using TinyOS as a firmware, (2) an intelligent algorithm Q&A There will be time for discussion and future research ideas Lab Drawing for the NXT 2.0 and lab exercise using it Note 1: LEGO has sponsored a NXT 2.0 kit Note 2: LEGOr, MINDSTORMSrare trademarks of LEGOr. The tutorial contains pictures from Atmel ARM7 documentation, and from LEGO documentation. Note 3: There is additional material included: Many slides are supplementary and included for future reference. NXT.2 LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net Module NXT LEGO MINDSTORMS Outline Aim of Tutorial Introduction Open Source Sensors Inside NXT C 101 Firmware Programming ARM7 NXT Software Debugging NXT ESWEEK 2009 http://nxtgcc.sf.net Rasmus Ulslev Pedersen [email protected] NXT.1 Outline LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net 1 Aim of Tutorial 2 Introduction Outline 3 Open Source Aim of Tutorial Introduction 4 Sensors Open Source Sensors 5 Inside NXT C 101 Inside NXT C 101 Firmware Programming 6 Firmware Programming ARM7 NXT Software 7 ARM7 Debugging NXT 8 NXT Software 9 Debugging NXT NXT.2 Aim LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • How the open source universe around Lego Mindstorms NXT is structured Outline Aim of Tutorial • Talk about a world that stretches from high-schools to Introduction adults and from building bricks to programming in Open Source assembler Sensors • Emphasis on the overview and the programming aspects Inside NXT C 101 Firmware • Participants will be able to see where in the NXT Programming programming spectrum their interest match most ARM7 NXT Software • Use the tutorial to get started with open source Debugging NXT programming on NXT NXT.3 Introduction LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net Outline • Description of open source hardware and software Aim of Tutorial Introduction • LEGO business models are discussed Open Source • The old RCX Sensors • NXT in several (online) communities Inside NXT C 101 Firmware • Overview of how NXT can be programmed in different Programming environments ARM7 NXT Software Debugging NXT NXT.4 Some Mindstorms History LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • 10 years since Mindstorms was released Outline • First LEGO Mindstorms was the LEGO RCX: Successful Aim of Tutorial Introduction • LEGO intended it to be a closed source product, but... Open Source • It was soon hacked:-) Sensors Inside NXT C 101 • The open source strategy was pursued even more with the Firmware present LEGO Mindstorms Programming ARM7 • A Goldplated NXT and a limited edition Black NXT was NXT Software produced in relation to the 10 year anniversary Debugging NXT NXT.5 NXT Development LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • Development of NXT started in the 2004 • Initial group was Ralph, Steven, John, and David Outline • First prototypes were circulated on a limited number basis Aim of Tutorial inside the current MUP group and a select few outside that Introduction Open Source group Sensors • MUP: Jan 2006, 5 people Inside NXT C 101 Firmware • MUP II: Nov. 2005, 11 people Programming • MDP: 2006 ARM7 NXT Software • MCP 2: 31 persons, 100 chosen from 10000 applicants Debugging NXT • MCP 3: 2008-2009 • MCP 4: Next slide NXT.6 LEGO Design Routines LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • Lego has a group of people who has the privilege of talking directly to LEGO staff Outline Aim of Tutorial • Under non-disclosure Introduction agreements (NDA) Open Source • First group of MCPs Sensors (MUP) were a select Inside NXT C 101 Firmware group Programming • Used as a sounding ARM7 board for the ideas that NXT Software went into developing the Debugging NXT first LEGO MINDSTORMS NXT. • MCP 4 is commencing as we speak NXT.7 Lego Education LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net Outline • Lego has a website for educational activities Aim of Tutorial • Strong focus on university segment Introduction • LEGO MINDSTORMS NXT comes in educational sets Open Source Sensors • Rechargeable battery and extra building pieces Inside NXT C 101 • Firmware Sold with site licences that accompany the NXT Programming • Different sales curve from retail (slow start, longer product ARM7 life) NXT Software Debugging NXT NXT.8 Mindstorms Community LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • MINDSTORMS Outline community is large and Aim of Tutorial diverse Introduction • Blogs, forums, large Open Source events, books, the MCP Sensors program and more Inside NXT C 101 Firmware • NXTStep and the Programming NXTasy blogs ARM7 NXT Software • Lugnet is a large LEGO Debugging NXT fanclub NXT.9 Schools LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • Many schools participate in First LEGO League Outline Aim of Tutorial • A tournament where Introduction current theme is played Open Source out Sensors • The idea is to have Inside NXT C 101 Firmware adults lead or mentor a Programming team of children aged ARM7 9-14 (16 outside the US) NXT Software Debugging NXT • NXT is used to complete a challenge put out by the FLL management NXT.10 Business Models LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • LEGO earns money on NXT by selling the kit itself • Licences to educational institutions are also revenue Outline source Aim of Tutorial Introduction • First version of LEGO MINDSTORMS NXT was released Open Source in the beginning of 2007 Sensors • A second version appeared in the fall of 2009 (biannual Inside NXT C 101 Firmware release schedule:-)?) Programming • NXT 2.0 is shipped with a different set of standard sensors ARM7 (color sensor) NXT Software Debugging NXT • Spring releases at toys fairs which is then ready for Christmas sale NXT.11 LEGO SYSTEMS LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • LEGO partly produce and package NXT on their factory in Billund Outline • Staff around NXT Aim of Tutorial development is not big Introduction Open Source • Firmware development Sensors team is in control of the Inside NXT C 101 software development Firmware Programming • National Instruments ARM7 (NI) designs the NXT-G NXT Software environment Debugging NXT • The careful selection of close partners makes for long-time stability NXT.12 Firmware Releases LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net Outline • NXT is a complex product compared to other LEGO Aim of Tutorial products Introduction • Requires focus on quality Open Source Sensors • Updated versions released on the official MINDSTORMS Inside NXT C 101 website (http://mindstorms.lego.com) Firmware Programming • First firmware had the version number 1.1 (or 1.0...) and ARM7 the current released version for NXT 2.0 is versioned 1.28 NXT Software Debugging NXT NXT.13 Partners LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • Many institutions, companies, groups, and individuals have a stake in NXT • National Instruments is Outline presumably the most Aim of Tutorial Introduction important Open Source • MIT, Tuft, Carnigie Sensors Mellon, and others are Inside NXT C 101 Firmware also active Programming • Others such as ARM7 nxtprograms NXT Software Debugging NXT • Number of large events • This includes Brickfest • There has also been a MINDSTORMS NXT Sumo Competition NXT.14 NXT Alternatives LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • NXT is not completely alone... • Sun Spots from Outline Sun/Oracle Aim of Tutorial • Fisher-Technic offers a Introduction new robot controller Open Source Sensors which is is based on an Inside NXT C 101 ARM9 processor Firmware running at 200MHz Programming ARM7 • Various evaluation kits: NXT Software mbed, IAR, etc. Debugging NXT • However, it is difficult to match dealer network, community, and history of LEGO NXT.15 Source and Documents by LEGO LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net NXT Firmware Open Source Complete software for the NXT firmware, which can be compiled with a compliant C compiler Outline Aim of Tutorial Software Developer Kit A kit with software for controlling NXT Introduction remotely from a host computer. It includes a Open Source description of the NXT virtual machine. Sensors Hardware Developer Kit Description of the possible sensor Inside NXT C 101 Firmware and actuator interfaces for NXT. This is Programming extensively used by thirdparty sensor vendors. ARM7 Bluetooth Developer Kit It includes the communication protocol NXT Software for controlling NXT over a Bluetooth connection. Debugging NXT Demo Show PDF files which are important for firmware replacements... NXT.16 Schematics LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net Outline Aim of Tutorial • Lego published the schematics Introduction • Can see which pins of the ARM7 MCU is connected to Open Source what ports Sensors Inside NXT C 101 • Lego uses Orcad for its schematics, which is a commercial Firmware program Programming ARM7 NXT Software Debugging NXT NXT.17 Analog/Digital Protocols LEGO MINDSTORMS ESWEEK 2009 http://nxtgcc.sf.net • NXT features both analogue and digital interfaces to its Outline sensors. Aim of Tutorial • Sensors are based on an analogue to digital conversion Introduction
Recommended publications
  • Japan Brickfest 2018
    Japan BrickFest 2018 By Richard Jones Last June I visited Japan BrickFest 2018. The fourth Kobe Fan Weekend took place on Rokko Island, in the port city of Kobe, near Osaka and Kyoto. Organised by Edwin Knight and members of the Kansai LEGO® Users Group (KLUG), this event is a LEGO® hub event for Asia. Exhibitors attended from all over the world – predominantly countries from around Asia, but the USA and Australia were also represented. I arrived on Friday afternoon and set up in one of the two gymnasiums used for the display, accompanied by the majority of builders visiting from overseas. We shared the space with the Great Ball Contraption, a brick built monorail and a train layout. NEXO Classic Space by Richard Jones LEGOLAND Japan had a display, and there was also an area to get your hands on some bricks and just build! The other gymnasium had many exhibitors from around Japan, and a theatre had larger scale models from members of the Kansai LEGO® Users Group. I had taken my NEXO Classic Spaceships. (Imagine the 1978-79 Classic Space sets built with NEXO Knights elements and colours.) This was the third time I had displayed them this year, but the frst time they had travelled more than 1000 km from home. I set about the task of discovering how my models had survived at the hands of international baggage handlers, as well as with myself bouncing between multiple railway stations. I set up my terrain and installed the lighting. Everyone I met was extremely friendly, offering words of encouragement as my various models were unwrapped in more pieces than I remembered them being in when I wrapped them up.
    [Show full text]
  • COURSE CURRICULUM Module Name Credit Units YEAR 1 Level
    COURSE CURRICULUM Module Name Credit Units YEAR 1 Level 1.1 (22.5 hours per week) Career & Professional Preparation l 1.5 Computer Programming 4 Electrical Technology 4 Engineering Mathematics 1 5 Engineering Mechanics 4 Innovation Toolkit: Acquiring the Skills ^ 2 Sports & Wellness ^ 2 Level 1.2 (26 hours per week) Manufacturing Technology & Practice 4 Electronics Technology 4 Engineering Materials 4 Engineering Mathematics 2 5 Automation in a Mechatronic World 3 Communication & Contemporary Issues ^ 4 Innovation Toolkit: Applying the Skills ^ 2 Notes: ^ For more details on Interdisciplinary Studies (IS) electives, please log on to www.np.edu.sg/is/ IS Modules The School of Interdisciplinary Studies (IS) delivers a broad-based curriculum, which nurtures a new generation of professionals with multidisciplinary skills and an innovative and entrepreneurial spirit to meet the challenges of a knowledge economy. IS offers both prescribed modules and electives to challenge boundaries. Prescribed modules develop students’ competencies in core areas such as Communication, Innovation and Enterprise, Culture and Communication, and Personal Mastery and Development, while elective modules provide insights into Arts and Humanities, Business, Design, and Science and Technology. COURSE MODULES LEVEL 1.1 Career & Professional Preparation I This module helps to give students a foundational introduction to their three-year diploma course curriculum and how it prepares them for industry. It will help them to embark on their three-year course with the end in mind, through guided reflection of their personal characteristics, and producing an overall game plan for their future education and career goals. The module aims to deepen students’ commitment to the sector that the course prepares them for.
    [Show full text]
  • Richer Connections to Robotics Through Project Personalization
    Advances in Engineering Education SUMMER 2012 Richer Connections to Robotics through Project Personalization MELANIE VELTMAN VALERIE DAVIDSON and BETHANY DEYELL University of Guelph Guelph, Ontario, Canada ABSTRACT In this work, we describe youth outreach activities carried out under the Chair for Women in Science and Engineering for Ontario (CWSE-ON) program. Specifi cally, we outline our design and implementation of robotics workshops to introduce and engage middle and secondary school students in engineering and computer science. Toward the goal of increasing the participation of women in science and engineering, our workshop design incorporates strategies presented in work by Rusk et al. (2008) on broadening participation in robotics: 1. focusing on themes, not just challenges; 2. combining art and engineering; 3. encouraging story-telling; and 4. organizing exhibitions, rather than competitions (Rusk et al., 2008, page 1) We discuss three workshop themes designed to highlight creativity and provide choices to par- ticipants. Our “Wild in the Rainforest” workshops make use of the PicoCrickets robotics kits and software used and described by Rusk et al. (2008). We also present Lego Mindstorms workshops themed “So You Think Your Robot Can Dance” and “A Day at the Park”. Our workshops are presented by female role models with academic backgrounds in science and engineering. Although workshop periods are fairly short (60-90 minutes), participants learn that robots have perception, cognition, and action – and are tasked with designing and programming to highlight these abilities. We present the results of our workshops through images and videos of the teams’ creations. Workshop evalu- ation data provided by participants demonstrate that our approach results in rich connections to engineering and technology for participants of both genders.
    [Show full text]
  • NXT User Guide Introduction
    NXT User Guide Introduction WELCOME TO LEGO® MINDSTORMS® EDUCATION LEGO® MINDSTORMS® Education is the next generation in educational robotics, enabling students to discover Science, Technology, Engineering and Mathematics in a fun, engaging, hands-on way. By combining the power of the LEGO building system with the LEGO MINDSTORMS Education technology, teams of students can design, build, program, and test robots. Working together on guided and open-ended engineering projects, the team members develop creativity and problem-solving skills along with other important mathematics and science knowledge. Students also become more skilled in communication, organization and research, which helps prepare them for future success in higher levels of schooling and in the workplace. The next technology - now. LEGO MINDSTORMS Education features an advanced 32-bit computer- controlled NXT brick, Interactive Servo Motors, Sound, Ultrasonic and other sensors, Bluetooth communication and multiple downloading capabilities. The icon-based LEGO MINDSTORMS Education NXT Software is built on the LabVIEW™ software from National Instruments, an industry standard with applications in many engineering and research fi elds. Curriculum. Inspiration. Support. The LEGO MINDSTORMS Education website www.MINDSTORMSeducation.com is your main resource for curriculum, training, product information and support. Our partners provide a strong network of information, technical advice, and teacher support as well. Carnegie Mellon Robotics Academy is our partner for developing curriculum materials and activities. Tufts University Center for Engineering Education Outreach (CEEO) is our partner for product development, workshops and conferences. In addition, local support is provided by our trade partners. If you are interested in a competitive challenge, check our website to fi nd out more about the FIRST LEGO LEAGUE.
    [Show full text]
  • A Zipliner's Delight
    A Zipliner’s Delight Subject Area(s) Physical Science, Science and Technology Associated Unit Yellow highlight = required component Associated Lesson Activity Title A Zipliner’s Delight Figure 1 ADA Description: Caption: Figure 1: Zipline robot basic assembly and components Image file: figure_1.tiff Source/Rights: Wikimedia Commons (left) Copyright © 2011 Polytechnic Institute of NYU. Grade Level 06 (05-07) Activity Dependency Time Required 2x(40-60 minutes) Group Size Expendable Cost per Group US$___ Summary Students learn about potential energy, as expressed as the height of an object along a linear on- dimensional zipline track. A robot, designed to traverse the track, converting stored potential energy into kinetic energy, also is capable of monitoring the instantaneous speed of the robot using various sensors. Thus, students are able to quantify and compare the starting potential energy (height) of a robot and the conversion thereof into kinetic energy (linear displacement). The system that is presented is that of a single robot, which is built using the LEGO Mindstorms robotics platform and installed with Lejos 0.9 firmware. Engineering Connection Engineering Category = #2 Keywords speed, potential energy, kinetic energy, robot, data collection Educational Standards Choose from http://www.jesandco.org/asn/viewer/default.aspx. ITEEA (provide standard number, grade band, benchmark letter and text): State/national science/math/technology (provide source, year, number[s] and text): NY Science Standard 1.2 Scientific Inquiry NY Science Standard 6.2 Models Pre-Requisite Knowledge Teacher should be familiar with LEGO NXT Mindstorms as a building and programming platform. Knowledge of pairing NXT Intelligent Bricks via Bluetooth is necessary.
    [Show full text]
  • Educational Hands-On Testbed Using Lego Robot for Learning Guidance, Navigation, and Control ?
    View metadata, citation and similar papers at core.ac.uk brought to you by CORE provided by Loughborough University Institutional Repository Educational hands-on testbed using Lego robot for learning guidance, navigation, and control ? Seungkeun Kim, Hyondong Oh ∗ Amir Kolaman ∗∗ Antonios Tsourdos, Brian White ∗ Hugo Guterman ∗∗∗ ∗ Autonomous Systems Group, Dept of Informatics and Systems Engineering, Cranfield University, Defence Academy of the UK, Swindon, SN6 8LA UK (e-mail: s.kim@ cranfield.ac.uk, h.oh@cranfield.ac.uk, a.tsourdos@cranfield.ac.uk, b.a.white@cranfield.ac.uk) ∗∗ Department of Electro Optical Engineering, Ben Gurion University of the NEGEV, P.O.B 653 84105 Beer Sheva, Israel, (e-mail: [email protected]) ∗∗∗ Department of Electric Engineering, Ben Gurion University of the NEGEV, P.O.B 653 84105 Beer Sheva, Israel, (e-mail: [email protected]) Abstract: The aim of this paper is to propose an educational hands-on testbed using inexpensive systems composed of a Lego Mindstorms NXT robot and a webcam and easy-to-deal-with tools especially for learning and testing guidance, navigation, and control as well as search and obstacle mapping, however the extendibility and applicability of the proposed approach is not limited to only the educational purpose. In order to provide navigation information of the Lego robot in an indoor environment, an vision navigation system is proposed based on a colour marker detection robust to brightness change and an Extended Kalman filter. Furthermore, a spiral-like search, a command-to-line-of-sight guidance, a motor control, and two-dimensional Splinegon approximation are applied to sensing and mapping of a complex-shaped obstacle.
    [Show full text]
  • Experiences with the LEGO Mindstorms Throughout The
    Session T2F Experiences with the LEGO MindstormsTM throughout the Undergraduate Computer Science Curriculum Daniel C. Cliburn Assistant Professor of Computer Science Hanover College Hanover, Indiana 47243 [email protected] Abstract - The LEGO Mindstorms Robotics Invention the Mindstorms sections were actually less likely to declare a Systems are contemporary learning tools that have been major in computer science than those in the traditional used in a number of courses throughout the sections. The author of this paper has used the Mindstorms in undergraduate Computer Science curriculum. However, several undergraduate computer science courses with a mix of with a few exceptions, very little information is available success and failure. The purpose of this paper is to provide describing the degree to which Mindstorms projects what the author feels is missing from the literature: an improved (or hindered) the learning process in these informal discussion of the types of projects and courses for courses. This paper describes personal experiences and which the Mindstorms can be effective teaching tools, and provides practical advice for successfully incorporating those courses in which the Mindstorms should not be used. Mindstorms projects into an undergraduate computer The next section of this paper describes the efforts of science course, as well as highlighting the types of other instructors who have incorporated the Mindstorms into assignments that have not worked well. Specifically, the their courses. Following this discussion, the paper will author has incorporated Mindstorms projects into five describe the author’s own experiences with the Mindstorms in courses: Fundamental Concepts of Computer Science (a a number of classroom settings, and comment on their non-major Computer Science course), Programming I, usefulness as teaching tools in these courses.
    [Show full text]
  • Environment Mapping Using the Lego Mindstorms NXT and Lejos NXJ
    Environment Mapping using the Lego Mindstorms NXT and leJOS NXJ Gerardo Oliveira 1, Ricardo Silva 1, Tiago Lira 1, Luis Paulo Reis 1,2 1 FEUP – Faculdade de Engenharia da Universidade do Porto, Portugal 2 LIACC – Laboratório de Inteligência Artificial e Ciência de Computadores da Universidade do Porto, Portugal Rua Dr. Roberto Frias, s/n 4200-465 Porto, Portugal {ei04106, ei03087, ei04085, lpreis}@fe.up.pt Abstract. This paper presents a project of simultaneous localization and mapping (SLAM) of an indoor environment focusing on the use of autonomous mobile robotics. The developed work was implemented using the Lego Mindstorms NXT platform and leJOS NXJ as the programming language. The NXJ consists of an open source project which uses a tiny Java Virtual Machine (JVM) and provides a very powerful API as well the necessary tools to upload code to the NXT brick. In addition, the leJOS NXJ enables efficient programming and easiness of communication due to its support of Bluetooth technology. Thus, exploiting the mobile robotics platform flexibility plus the programming language potential, our goals were successfully achieved by implementing a simple subsumption architecture and using a trigonometry based approach, in order to obtain a mapped representation of the robot's environment. Keywords: Lego Mindstorms, NXT, leJOS, NXJ, Java, Robotics, Mapping, Subsumption Architecture, Behavior-Based, Client-Server. 1 Introduction One of the major problems in the field of robotics is known as SLAM (Simultaneous Localization and Mapping) [3], consisting of a technique used by robots and autonomous vehicles to build up a map within an unknown environment while at the same time keeping track of their current position.
    [Show full text]
  • Cult of Lego Sample
    $39.95 ($41.95 CAN) The Cult of LEGO of Cult The ® The Cult of LEGO Shelve in: Popular Culture “We’re all members of the Cult of LEGO — the only “I defy you to read and admire this book and not want membership requirement is clicking two pieces of to doodle with some bricks by the time you’re done.” plastic together and wanting to click more. Now we — Gareth Branwyn, editor in chief, MAKE: Online have a book that justifi es our obsession.” — James Floyd Kelly, blogger for GeekDad.com and TheNXTStep.com “This fascinating look at the world of devoted LEGO fans deserves a place on the bookshelf of anyone “A crazy fun read, from cover to cover, this book who’s ever played with LEGO bricks.” deserves a special spot on the bookshelf of any self- — Chris Anderson, editor in chief, Wired respecting nerd.” — Jake McKee, former global community manager, the LEGO Group ® “An excellent book and a must-have for any LEGO LEGO is much more than just a toy — it’s a way of life. enthusiast out there. The pictures are awesome!” The Cult of LEGO takes you on a thrilling illustrated — Ulrik Pilegaard, author of Forbidden LEGO tour of the LEGO community and their creations. You’ll meet LEGO fans from all walks of life, like professional artist Nathan Sawaya, brick fi lmmaker David Pagano, the enigmatic Ego Leonard, and the many devoted John Baichtal is a contribu- AFOLs (adult fans of LEGO) who spend countless ® tor to MAKE magazine and hours building their masterpieces.
    [Show full text]
  • Lego Mindstorms Segway Project
    AGH - UNIVERSITY OF SCIENCE AND TECHNOLOGY Lego Mindstorms Segway Project Authors of project: Łukasz Bondyra, Paweł Górka, Jakub Tutro, Krzysztof Wesołowski Under the supervision of: Adam Piłat Ph.D. Documentation drawn up by: Łukasz Bondyra WEBSITE: http://home.agh.edu.pl/~ap/segway 2009-04-20 Lego Mindstorms Segway Project Basic Lego Mindstorm project was inspired by Yorihisa Yamamoto. It was developed in the academic research club INTEGRA, working in the Electrical faculty in the AGH – University of Science and Technology. The Lego Mindstorms project is part of the bigger one, which aims to create a Segway human transporter machine. The following works were made: I. Installation of necessary software. All applications need to be installed/extracted to non – space directories. 1. Cygwin 1.5.25-15 - a Linux - like environment for Windows which enables to run some Linux applications in Windows environment. It includes GCC compilator. INSTALATION: Devel Default -> “make: The GNU version of the ‘make’ utility” must be marked. IMPORTANT: Cygwin has to be 1.5.x or newer version. WEBSITE: http://www.cygwin.com 2. GNU ARM toolchain 4.0.2 - a distribution of GCC (GNU Compiler Collection) for ARM core which supports an ARM7 CPU in the NXT INSTALATION: “Floating point unit” doesn’t have to be marked IMPORTANT: Using other version of GCC may cause unexpected errors. WEBSITE: http://www.gnuarm.com/bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4.exe 3. MINDSTORMS NXT Driver v1.02 - This software installs/updates the LEGO MINDSTORMS NXT driver, which enables windows to recognize the NXT.
    [Show full text]
  • LEGO MINDSTORMS NXT Programming
    LEGO MINDSTORMS NXT Programming Bernhard Buchli Andreas Schranzhofer Bernhard Buchli, [email protected], ETZ G 75, +41 44 63 27038 Andreas Schranzhofer, [email protected], ETZ G 77, +41 44 63 20454 09/29/10 Andreas Schranzhofer / Bernhard Buchli 1 NXT Tutorial ± Outline . Software Installation . get the USB ± Stick Folder ¹PPSª . "Hello World!" on NXT . ¹Sensor and Motorª on NXT . References, Documents, Links 09/29/10 Andreas Schranzhofer / Bernhard Buchli 2 Software Installation . NXT connects via USB (or Bluetooth) to PC . Driver available at: http://mindstorms.lego.com/support/updates/ . Programming Environments . Mindstorms NXT Software . Robolab (LabVIEW) . Lejos, RobotC, BricxCC) . Default: BricxCC http://bricxcc.sourceforge.net/ 09/29/10 Andreas Schranzhofer / Bernhard Buchli 3 Starting BricxCC . Connect NXT to the PC . Turn on NXT . Pop-Up Dialog Properties: . port: USB . brick type: NXT . firmware: Standard 09/29/10 Andreas Schranzhofer / Bernhard Buchli 4 Hello World! . C-like programming language: NXC (Not Excactly C) . The obligatory "Hello Worldª: #include "NXCDefs.h" task main() { ClearScreen(); PlayTone(440, 200); TextOut(0, LCD_LINE3, "Hello World!"); Wait(1000); PlayTone(440, 200); Wait(200); } 09/29/10 Andreas Schranzhofer / Bernhard Buchli 5 Compile Upload 09/29/10 Andreas Schranzhofer / Bernhard Buchli 6 The LEGO NXT 09/29/10 Andreas Schranzhofer / Bernhard Buchli 7 Sensor and Motor #include "NXCDefs.h" #define SPEED 70 task main() { int touch; SetSensor(S1, SENSOR_TOUCH); while (true) { touch = SENSOR_1; if (touch == 1) { OnFwd(OUT_A, SPEED); } else { Off(OUT_A); } } } 09/29/10 Andreas Schranzhofer / Bernhard Buchli 8 Mindstorms NXT Software 09/29/10 Andreas Schranzhofer / Bernhard Buchli 9 Lego Digital Designer 09/29/10 Andreas Schranzhofer / Bernhard Buchli 10 Mike©s Lego Cad 09/29/10 Andreas Schranzhofer / Bernhard Buchli 11 References .
    [Show full text]
  • Lego Mindstorms: an Mbeddr Case Study
    Lego Mindstorms: an mbeddr Case Study Markus Voelter1 and Bernd Kolb2 1 independent/itemis 2 itemis Abstract. This case study looks at the first large-scale demo case built with mbeddr: a set of C extensions for programming Lego Mindstorms robots. We have developed several robots (and the respective software) based on a common set of C extensions. Since C-based Mindstorms pro- gramming is based on the OSEK operating system, this case study has relevance beyond Lego. Last Changed: Feb 1, 2012 1 Contacts for more Info The Lego Mindstorms case study has been developed by the mbeddr team, in par- ticular Bernd Kolb ([email protected]) and Markus Voelter ([email protected]). 2 What is the problem/domain your system addresses? Lego Mindstorms provides the ability to program lego models. The system comes with an ARM processor and a number of sensors and actuators to build various kinds of computer-controlled machines. The software can be written in various ways, from a visual programming language provided by Lego, a version of Java, as well as C. In this case study we use the C-based way of programming mindstorms. The C-based way of programming Mindstorms is based on the OSEK oper- ating system . OSEK is used a lot in automotive embedded software, which is why this case study is relevant beyond Lego. The OSEK implementation used for Mindstorms in Lejos OSEK . 3 Why was mbeddr/MPS chosen as the basis? mbeddr was used as the basis because this case study was explicitly intended to be an mbeddr demo.
    [Show full text]