Introduction to Bricxcc and NXC Programming

Total Page:16

File Type:pdf, Size:1020Kb

Introduction to Bricxcc and NXC Programming APPENDIX Introduction to BricxCC and NXC Programming This appendix is a tutorial about Bricx Command Center (BricxCC), the IDE (Integrated Development Environment) that is used to write, compile, and test the NXC programs in this book. This IDE is handy, because it includes many utilities for the LEGO programmable bricks and for the NXT in particular: a file browser, a sound converter to translate WAV files into RSO files, a panel to monitor the brick’s sensors and outputs, a screen-capture utility, and so on. The BricxCC program was originally written by Mark Overmars, and is now magnificently maintained and improved by John Hansen, who is also the creator of the NXC language. BricxCC was born as the IDE to write Not Quite C (NQC) programs for the RCX, so it inherits many fea- tures of the NQC language, created by Dave Baum. Through the years, many new functions have been built inside BricxCC, to let it manage the new NXC language and the NXT brick itself. I worked together with John Hansen to produce an NXC language tutorial that is now available on the Web. My tutorial, together with the well-done NXC programming guide by John Hansen, makes a comprehensive manual to learn this textual programming language for the NXT. I learned NXC using that guide, and I have also made contributions to fix some of the Bluetooth API functions. Many people worldwide have already started writing NXC programs successfully by reading my tutorial. I suggest that you read it too, to learn the basics of NXC. Given that this tutorial is not made to replace the BricxCC guide (to which you must refer for the doubts that could arise), let’s get started! You should download and install the latest release of BricxCC that now includes a built-in version of the NeXT Byte Codes (NBC) compiler. You can find the following information and software online: • All the software needed to get started at http://bricxcc.sourceforge.net/ • The NXC manual at http://bricxcc.sourceforge.net/nbc/nxcdoc/NXC_Guide.pdf • My tutorial at http://bricxcc.sourceforge.net/nbc/nxcdoc/NXC_tutorial.pdf First, I’ll show you how to write, compile, and download your first NXC program to the NXT, using BricxCC. Next, I’ll briefly analyze the BricxCC menu functions, followed by tracking the advanced NXT-dedicated utilities. 567 568 APPENDIX ■ INTRODUCTION TO BRICXCC AND NXC PROGRAMMING Getting Connected with BricxCC Here, I assume you’ve already used the LEGO NXT-G programming software, so you know how to rename your NXT and how to make and download simple NXT-G programs. Also, I assume you have the NXT turned on and connected to the PC via USB (later I’ll explain how to use Bluetooth). Open BricxCC by double-clicking its desktop icon or by clicking the icon installed in the Start menu. At startup, the Find Brick form shows up (see Figure A-1). This dialog asks which kind of brick you’re going to use (notice that BricxCC can manage all kinds of programmable bricks produced by LEGO through the years), and how the brick should be connected. Figure A-1. The Find Brick form that shows up when you open BricxCC To use the NXT, you must first choose NXT from the drop-down list at the right, and Auto- matic from the left drop-down list. You don’t have to worry about the Firmware radio buttons, because these options are meant for the RCX. Click OK and the IDE should find the brick; if everything went fine, no error message appears and the toolbar icons are lit up with their nor- mal colors (otherwise they would look grayed—compare Figures A-2 and A-3). Figure A-2. The BricxCC IDE with buttons enabled, when the NXT is connected APPENDIX ■ INTRODUCTION TO BRICXCC AND NXC PROGRAMMING 569 Figure A-3. The BricxCC IDE with buttons disabled, meaning no brick is connected Connecting the NXT via Bluetooth is a bit more complicated. Follow these steps to get connected without encountering any problems: 1. Be sure to have Bluetooth enabled on your laptop or a Bluetooth dongle connected and correctly installed on your PC. Also, make sure you have your NXT brick turned on, with Bluetooth on and visible. When choosing the settings in the Find Brick form (see Figure A-1 again), select Automatic as before, and check the Bluetooth check box. Then click OK. BricxCC starts searching for Bluetooth-enabled NXTs, but it will eventually hang. Don’t lose heart! Go on with the steps that, once done, let BricxCC find your NXT fast. ■Caution This step of the procedure might cause BricxCC to hang up. So, you need to force it to close by pressing Ctrl+Alt+Del, which terminates the process from the Task Manager. 2. You must introduce every NXT you’re going to use to your PC by using the Bluetooth Devices dialog (a feature present in Windows XP) once you have a Bluetooth dongle installed. To make them meet each other, open the Bluetooth Devices panel from the Control Panel or by double-clicking the icon you should have among the tray icons in the Windows application bar at the bottom of the screen, near the clock. In Figure A-4, you can see how my Bluetooth Devices dialog looks. You might have some items in yours, or none. 570 APPENDIX ■ INTRODUCTION TO BRICXCC AND NXC PROGRAMMING Figure A-4. The Bluetooth Devices dialog in Windows XP 3. Click the Add button in the lower left of the panel and follow the instructions to make your NXT meet the PC and exchange greetings (see Figures A-5 and A-6). In those screens, click Next to proceed. Figure A-5. The first step of the Add Bluetooth Device Wizard APPENDIX ■ INTRODUCTION TO BRICXCC AND NXC PROGRAMMING 571 Figure A-6. The Wizard found a new NXT device (named NXT). 4. You’re then asked for a passkey. Just type in 1234—the default for any NXT brick (see Figure A-7)—and click Next. Finally, click Finish in the last screen. At this point, your NXT (with the name you gave it) should be listed in the Bluetooth Devices (Devices tab). Figure A-7. In this step of the Add Bluetooth Device Wizard, you must type in the passkey. 572 APPENDIX ■ INTRODUCTION TO BRICXCC AND NXC PROGRAMMING 5. Next, select the NXT name just added to the list (NXT in Figure A-8), and click the Prop- erties button in the lower right side of the panel. A new panel (like the one in Figure A-9) shows up. In the second line, you can read the Bluetooth address of the NXT. Figure A-8. The Bluetooth Devices dialog shows the newly connected NXT. Figure A-9. The NXT Properties, where you can copy its address APPENDIX ■ INTRODUCTION TO BRICXCC AND NXC PROGRAMMING 573 6. Now, select and copy the address with Ctrl+C. Then, close this dialog by clicking OK. In the Bluetooth Devices dialog, select the COM Ports tab and make note of the COM port number of your NXT that’s marked as incoming (COM4 in Figure A-10). Figure A-10. The NXT device’s allotted COM ports 7. Now, open the file browser by pressing Windows+E, and browse to the BricxCC install folder (for example, C:\Program Files\BricxCC\). Here, you should find a file named nxt.dat; if not, create it. Open it with Notepad or any other text editor you prefer. Add the following line to this file: alias = BTH::nxt_name::bt_address::com_port You have to fill in the preceding fields like so: • alias: The name you desire for your NXT to be shown in the BricxCC Find the Brick drop-down list • nxt_name: The NXT brick name as shown in the Bluetooth Devices Peripherals tab • bt_address: The hexadecimal address you copied before from the Properties panel • com_port: The input COM port you noted before 8. Be careful to put the double colon :: in the right places. For example, my entry looks like this: NXT_BT = BTH::NXT::00:16:53:04:40:dc::4 574 APPENDIX ■ INTRODUCTION TO BRICXCC AND NXC PROGRAMMING 9. Save and close this file; also close the file browser and the Bluetooth Devices dialog. If you have BricxCC open, close it and reopen it. Now, you should find the newly connected NXT in the left drop-down list in the Find Brick form. Click OK and BricxCC will get connected to your NXT in just a few seconds. It was laborious, but your efforts will be repaid! This time it takes just a moment to con- nect your NXT via Bluetooth. You can repeat the whole procedure to add all the NXT devices you want. At this point, you are online with your brick. Let me show you what can be done now. Ready to Go The IDE’s main form should be empty and the toolbar buttons filled with their colors (mean- ing you are connected to the NXT). You can usually do every operation in three equivalent ways: using a keyboard shortcut, a menu item, or a toolbar button. You can create a new file in many ways: you can press Ctrl+N, you can select File ➤ New from the menu, or you can just click the “New file” button on the toolbar. An untitled file is then created; you can now double-click the file’s title bar to expand it. Now type in the following trivial NXC program: task main () { TextOut (10,LCD_LINE4,"Hello, World!"); Wait (SEC_2); } You can save the file by pressing Ctrl+S, or by selecting File ➤ Save, or by clicking the “Save file” icon on the toolbar (the third icon from the left—the one showing the floppy disk).
Recommended publications
  • Motivacijski Vzgibi Za Odprto Inoviranje V Spletnih Skupnostih
    UNIVERZA V LJUBLJANI EKONOMSKA FAKULTETA MAGISTRSKO DELO MOTIVACIJSKI VZGIBI ZA ODPRTO INOVIRANJE V SPLETNIH SKUPNOSTIH Ljubljana, junij 2020 MARIJA PRANJIĆ IZJAVA O AVTORSTVU Podpisana Marija Pranjić študentka Ekonomske fakultete Univerze v Ljubljani, avtorica predloženega dela z naslovom Motivacijski vzgibi za odprto inoviranje v spletnih skupnostih, pripravljenega v sodelovanju s svetovalcem red. prof. dr. Miha Škerlavaj IZJAVLJAM 1. da sem predloženo delo pripravila samostojno; 2. da je tiskana oblika predloženega dela istovetna njegovi elektronski obliki; 3. da je besedilo predloženega dela jezikovno korektno in tehnično pripravljeno v skladu z Navodili za izdelavo zaključnih nalog Ekonomske fakultete Univerze v Ljubljani, kar pomeni, da sem poskrbela, da so dela in mnenja drugih avtorjev oziroma avtoric, ki jih uporabljam oziroma navajam v besedilu, citirana oziroma povzeta v skladu z Navodili za izdelavo zaključnih nalog Ekonomske fakultete Univerze v Ljubljani; 4. da se zavedam, da je plagiatorstvo – predstavljanje tujih del (v pisni ali grafični obliki) kot mojih lastnih – kaznivo po Kazenskem zakoniku Republike Slovenije; 5. da se zavedam posledic, ki bi jih na osnovi predloženega dela dokazano plagiatorstvo lahko predstavljalo za moj status na Ekonomski fakulteti Univerze v Ljubljani v skladu z relevantnim pravilnikom; 6. da sem pridobila vsa potrebna dovoljenja za uporabo podatkov in avtorskih del v predloženem delu in jih v njem jasno označila; 7. da sem pri pripravi predloženega dela ravnala v skladu z etičnimi načeli in, kjer je to potrebno, za raziskavo pridobila soglasje etične komisije; 8. da soglašam, da se elektronska oblika predloženega dela uporabi za preverjanje podobnosti vsebine z drugimi deli s programsko opremo za preverjanje podobnosti vsebine, ki je povezana s študijskim informacijskim sistemom članice; 9.
    [Show full text]
  • THE EVENT ISSUE Inside: Brickfest® LEGO® World LEGO Fest and More!
    Epic Builder: Anthony Sava THE EVENT ISSUE Inside: BrickFest® LEGO® World LEGO Fest and more! Also: Interviews with Jørgen Vig Knudstorp, Women who Steven Canvin, and Knud Thomson Build with LEGO Building Instructions LEGO Inside Tour AND MORE! LEGO Serious Play Now Build A Firm Foundation in its 4th ® Printing! for Your LEGO Hobby! Have you ever wondered about the basics (and the not-so-basics) of LEGO building? What exactly is a slope? What’s the difference between a tile and a plate? Why is it bad to simply stack bricks in columns to make a wall? The Unofficial LEGO Builder’s Guide is here to answer your questions. You’ll learn: • The best ways to connect bricks and creative uses for those patterns • Tricks for calculating and using scale (it’s not as hard as you think) • The step-by-step plans to create a train station on the scale of LEGO people (aka minifigs) • How to build spheres, jumbo-sized LEGO bricks, micro-scaled models, and a mini space shuttle • Tips for sorting and storing all of your LEGO pieces The Unofficial LEGO Builder’s Guide also includes the Brickopedia, a visual guide to more than 300 of the most useful and reusable elements of the LEGO system, with historical notes, common uses, part numbers, and the year each piece first appeared in a LEGO set. Focusing on building actual models with real bricks, The LEGO Builder’s Guide comes with complete instructions to build several cool models but also encourages you to use your imagination to build fantastic creations! The Unofficial LEGO Builder’s Guide by Allan Bedford No Starch Press ISBN 1-59327-054-2 $24.95, 376 pp.
    [Show full text]
  • Lego Mindstorm with Linux Mini-HOWTO
    Lego Mindstorm with Linux Mini−HOWTO Luis Villa [email protected] Revision History Revision 1.1 October 29th, 2000 The Lego Group's Mindstorm Robotics Invention System (RIS) is probably the best reasonably cheap robotics kit available. However, the standard software is (unsurprisingly) MS Windows dependent. Don't despair− there are several options that allow Linux users to use their Mindstorms from within Linux. This Mini−HOWTO is intended to serve as a very brief introduction to the options available, and as a gathering point for more information. Lego Mindstorm with Linux Mini−HOWTO Table of Contents 1. Introduction.....................................................................................................................................................1 1.1. Acknowledgements...........................................................................................................................1 1.2. Disclaimer.........................................................................................................................................1 1.3. Copyright..........................................................................................................................................2 2. The Mindstorms Architecture.......................................................................................................................3 2.1. The Basic Hardware..........................................................................................................................3 2.2. Standard RCX Programming............................................................................................................3
    [Show full text]
  • An Operating System in Java for the Lego Mindstorms RCX Microcontroller
    Proceedings of FREENIX Track: 2000 USENIX Annual Technical Conference San Diego, California, USA, June 18–23, 2000 A N O P E R AT I N G S Y S T E M I N J AVA F O R T H E L E G O M I N D S T O R M S R C X M I C R O C O N T R O L L E R Pekka Nikander THE ADVANCED COMPUTING SYSTEMS ASSOCIATION © 2000 by The USENIX Association All Rights Reserved For more information about the USENIX Association: Phone: 1 510 528 8649 FAX: 1 510 548 5738 Email: [email protected] WWW: http://www.usenix.org Rights to individual papers remain with the author or the author's employer. Permission is granted for noncommercial reproduction of the work for educational or research purposes. This copyright notice must be included in the reproduced paper. USENIX acknowledges all trademarks herein. An Operating System in Java for the Lego Mindstorms RCX Microcontroller Pekka Nikander Helsinki University of Technology [email protected] http://www.tcm.hut.fi/~pnr/rcx/ Abstract A Lego Mindstorms Robot consists of a programmable Lego brick, called the RCX, which contains three sensor The Lego Mindstorms is a Lego bricks based robotics inputs, three actuator outputs, four user buttons, a sim- toy series produced by the Lego Group, based on the ple LCD display, an IR transceiver, and a Hitachi H8 ideas developed at the Massachusetts Institute of Tech- microcontroller with 32 kilobytes of RAM, 4 kilobytes nology in the Programmable Brick project.
    [Show full text]
  • Making the Rounds at the Major LEGO Fan Conventions
    13 The Magazine for LEGO® Enthusiasts of All Ages! BRICKJOURNAL ISSUE 13 • FEBRUARY 2011 EVENT WRAP-UP: BRICKMAGIC BRICKCON BRICKFAIR BRICKWORLD FANA’BRIQUES LEGO INSIDE TOUR GREAT WESTERN SHOW Issue 13 • February 2011 Festival for LEGO® Fans $ Don’t miss our own 8.95 BrickMagic Festival, in the US BRICKJOURNAL #13 BRICKJOURNAL #14 BRICKJOURNAL #15 BRICKJOURNAL #16 May 2011 (in Raleigh, Special EVENT ISSUE with reports from Discover the world of stop-motion LEGO Looks at the LEGO MECHA genre of build- Focuses on STEAMPUNK! Feature editor GUY BRICKMAGIC (the newest US LEGO fan FILMS, with brickfilmer DAVID PAGANO ing, especially in Japan! Feature editor HIMBER gives a tour with a look at his work, North Carolina) and festival, organized by BrickJournal maga- and others spotlighting LEGO filmmaking, NATHAN BRYAN spotlights mecha builders DAVE DeGOBBI’s, NATHAN PROUDLOVE’s, Summer 2012 (in zine), BRICKWORLD (one of the oldest US the history of the medium and its commu- such as SAITO YOSHIKAZU, TAKAYUKI and others! There’s also a look at the history LEGO fan events), and others! Plus: spot- nity, interviews with the makers of the TORII, SUKYU and others! Also, a talk with of LEGO Steampunk building, as well as Orlando, Florida)! light on BIONICLE Builder NORBERT films seen on the LEGO CLUB SHOW and BRIAN COOPER and MARK NEUMANN instructions for a Steampunk plane by ROD For more LAGUBUEN, our regular column on minifig- LEGO.com, and instructions on how to about their mecha creations, mecha building GILLIES! Plus our regular columns on ure
    [Show full text]
  • Escuela Politécnica Nacional
    ESCUELA POLITÉCNICA NACIONAL FACULTAD DE INGENIERÍA ELÉCTRICA Y ELECTRÓNICA CONSTRUCCIÓN Y PROGRAMACIÓN DE UN GRUPO DE ROBOTS MÓVILES SOBRE LA BASE DEL PRODUCTO LEGO MINDSTORMS NXT PROYECTO PREVIO A LA OBTENCIÓN DEL TÍTULO DE INGENIERO EN ELECTRÓNICA Y CONTROL MEDARDO ÁNGEL SILVA AMORES [email protected] DIRECTORA: Ing. ANA RODAS [email protected] Quito, julio de 2011 i DECLARACIÓN Yo, Medardo Ángel Silva Amores, declaro bajo juramento que el trabajo aquí descrito es de mi autoría; que no ha sido previamente presentado para ningún grado o calificación profesional; y, que he consultado las referencias bibliográficas que se incluyen en este documento. A través de la presente declaración cedo mis derechos de propiedad intelectual correspondientes a este trabajo, a la Escuela Politécnica Nacional, según lo establecido por la Ley de Propiedad Intelectual, por su Reglamento y por la normatividad institucional vigente. _______________________ Medardo Ángel Silva Amores ii CERTIFICACIÓN Certifico que el presente trabajo fue desarrollado por Medardo Ángel Silva Amores, bajo mi supervisión. _________________________ Ing. Ana Rodas B. DIRECTORA DEL PROYECTO iii AGRADECIMIENTO Mi profundo agradecimiento a la Ing. Ana Rodas, cuya ayuda y estímulo ha sido determinante para facilitar la terminación de este tan esperado proyecto. iv DEDICATORIA Mucho tiempo tomó el llegar a este momento y posiblemente la persona que más se alegrará porque finalmente se produjo es mi madre, a quien va dedicado este trabajo. v RESUMEN El presente trabajo tiene como principal objetivo el construir y programar un conjunto de robots móviles sobre la base del producto Lego Mindstorms en su versión NXT 1.0.
    [Show full text]
  • The Unofficial Guide to Lego Mindstorms Robots
    Page iii The Unofficial Guide to LEGO MINDSTORMS Robots Jonathan B. Knudsen Beijing • Cambridge • Farnham • Köln • Paris • Sebastopol • Taipei • Tokyo Page iv The Unofficial Guide to LEGO MINDSTORMS Robots by Jonathan B. Knudsen Copyright: 1999 O'Reilly & Associates, Inc. All rights reserved. Printed in the United States of America. Published by O'Reilly & Associates, Inc., 101 Morris Street, Sebastopol, CA 95472. Editor: Mike Loukides Production Editor: Nicole Arigo Printing History: October 1999: First Edition. This book is published solely by O'Reilly & Associates, Inc., and its purpose is to enable you to creatively program LEGO MINDSTORMS brand robots. This book is not sponsored by The LEGO Group. Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly & Associates, Inc. The association of the image of a mechanical toy rabbit with the topic of LEGO MINDSTORMS robots is a trademark of O'Reilly & Associates, Inc. LEGO is a registered trademark of The LEGO Group. MINDSTORMS and Robotics Invention System are trademarks of The LEGO Group. All other trademarks, service marks, and the like are the property of their owners. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly & Associates, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.
    [Show full text]
  • All Aboard the LEGO®Trains!
    The Magazine for LEGO® Enthusiasts of All Ages! Issue 24 • June 2013 $8.95 in the US All Aboard the LEGO® Trains! Train Layouts by Cale Leiphart and PennLUG Building a Train Station Features Instructions AND MORE! 0 5 0 74470 23979 6 Issue 24 • June 2013 Contents From the Editor ...................................................2 People The Idea Book 6000 Experience: Building a Childhood Dream ...............4 Building Minifigure Customization 101: Customizing Your “Friends” ..................18 You Can Build It: Micro Monorail System ..........................22 The LEGO® The Lone RangerTM Constitution Train Chase: Building a Steam Train the LEGO Way!...............................................28 Powering The Lone Ranger Train .......31 You Can Build It: Train Station.....................................................36 Peter Norman: Building and Styling LEGO Trains .........................54 Community PennLUG: Taking Layouts to New Levels .................................................59 Designing the LEGO Monorail .............63 Building a Different LEGO Monorail .............................................65 Steven Walker: Disney -Inspired Building ......................66 Masao Hidaka: A Different Approach to the Monorail .............................................68 Joe Meno: Following and Innovating Monorail Design ..........................................70 Nathaniel Brill: Suspended Monorail Design .............72 A History of LEGO Trains ..........................74 Community Ads .............................................78
    [Show full text]
  • The Place of Play of Place the the Place of Play
    media The Place of Play matters Toys and Digital Cultures amsterdam university press maaike lauwaert The Place of Play The Place of Play Toys and Digital Cultures Maaike Lauwaert Amsterdam University Press MediaMatters is a new series published by Amsterdam University Press on current debates about media technology and practices. International scholars critically analyze and theorize the materiality and performativity, as well as spatial practices of screen media in contributions that engage with today’s digital media culture. For more information about the series, please visit: www.aup.nl The publication of this book is made possible by a grant from the Netherlands Organisation for Scientific Research (NWO). Cover illustration: Goos Bronkhorst Cover design: Suzan de Beijer, Weesp Lay out: JAPES, Amsterdam ISBN 978 90 8964 080 2 e-ISBN 978 90 4850 796 2 NUR 811 © M. Lauwaert / Amsterdam University Press, Amsterdam, 2009 All rights reserved. Without limiting the rights under copyright reserved above, no part of this book may be reproduced, stored in or introduced into a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photocopying, recording or otherwise) without the written permission of both the copyright owner and the author of the book. Table of contents Introduction 7 1. Changing Practices, Shifting Sites 7 2. Core and Periphery of Play 12 Part I: New Children, Different Toys 21 3. The Child as Consumer 26 4. Domesticating Play 30 5. The Child in the City 35 6. Toys as Containers, Mediators and Promoters 39 Part II: From Solitary to Networked Geographies of Play 45 7.
    [Show full text]
  • An Embedded Javavm for a Robot Development Kit (LEGO Mindstormstm RCX)
    An Embedded JavaVM for a robot development kit (LEGO MindstormsTM RCX) Java User Group Stuttgart (JUGS) SIG Embedded Java 2002-09-12 2002-09-12 / leJOS.ppt / v1.1 / Slide 1 © 2002 Jochen Hiller Jochen Hiller [email protected] http://www.bauer-partner.com Principal Consultant Head of Research 2002-09-12 / leJOS.ppt / v1.1 / Slide 2 © 2002 Jochen Hiller Agenda • An Introduction to LEGO Mindstorms • leJOS – LEGO Java Operating System • Java Robotics Programming –Examples –Live Demos • Other Examples / Outlook 2002-09-12 / leJOS.ppt / v1.1 / Slide 3 © 2002 Jochen Hiller LEGO MindstormsTM – Introduction • History • The Brick • Sensors • Motors • LEGO Parts • The RCX Software Development Kit 2002-09-12 / leJOS.ppt / v1.1 / Slide 4 © 2002 Jochen Hiller LEGO MindstormsTM –History • Mindstorms concept: partnership / sponsorship – LEGO Group – MIT Media Laboratory • MIT activities – Starting 1987: Programmable Brick – 4 Versions until 1998, latest big red brick – Driven by Fred G. Martin • LEGO Group – Development from ground up, reuse philosophy – Brick based software programming for kids – 1998: 1st commercial version available, 80.000 kits/200$/3 months 2002-09-12– / leJOS.ppt Strategic / v1.1 / Slide 5 product for LEGO, „Legoland“ activity too © 2002 Jochen Hiller LEGO MindstormsTM –RIS • RIS: Robotics Invention System – v1.0, v1.5, v2.0 • Family of products – computer controlled robots • Latest product: – Vision Command: Camera (Logitech) 2002-09-12 / leJOS.ppt / v1.1 / Slide 6 © 2002 Jochen Hiller LEGO MindstormsTM – The Brick
    [Show full text]
  • Costruire Giocattoli Cibernetici
    Costruire giocattoli cibernetici Costruire giocattoli cibernetici Riflessioni e proposte sull’esplorazione e programmazione di giocattoli computazionali per la scuola dell’infanzia ■ Edith K. Ackermann, Augusto Chioccariello, Stefania Manca, Luigi Sarti I giocattoli computazionali stanno acqui- causalità, controllo, intenzionalità), lo svi- stando un peso sempre maggiore nei conte- luppo di modalità di pensiero astratto e sti caratterizzati da una elevata cultura tec- strutturato e di capacità di modellizzazione nologica e godono di una grande diffusione della conoscenza, ecc.; dovrebbe, inoltre, anche nelle fasce più giovani della popola- essere in grado di suscitare importanti e si- zione, specie quelle in età prescolare. Ma gnificativi interrogativi su temi quali viven- soprattutto suscitano negli adulti in genera- te e animato, oltre ad assolvere alla funzio- le, e in particolare in chi si occupa di pro- ne cognitiva di costruzione del sé e dell’i- blematiche educative, opinioni contrastanti. dentità individuale. C’è chi li ritiene un’ottima “palestra” per i Dall’altro lato, dovrebbe poter giocare un più giovani, che dovrebbero così prendere ruolo di mediazione e transazione culturale confidenza e prepararsi ad interagire con gli in grado di veicolare valori e letture del strumenti e i gadget del loro probabile fu- mondo, di produrre ed elaborare nuovi si- turo, diventandone al contempo protagoni- gnificati, di assolvere alla funzione sociale di sti nella progettazione e nella creazione e costruzione dell’identità collettiva e di un non
    [Show full text]
  • LEGO Mindstorms: Not Just for K-12 Anymore Frank Klassner, Scott D
    LEGO MindStorms: Not Just for K-12 Anymore Frank Klassner, Scott D. Anderson Department of Computing Sciences Department of Computer Science Villanova University Wellesley College Villanova, PA 19085 Wellesley, MA 02481 [email protected] [email protected] Abstract: We describe the possibility of using the Lego Mindstorms robots to support the ACM Computing Curriculum 2001, using them in lab exercises and projects for classes from beginning courses in programming to advanced courses in operating systems, compilers, networks and artificial intelligence. We first describe the limitations of the robots, both hardware and software, and some third-party programming environments that overcome some of these limitations. Finally, we describe our own work on a package of tools called MTM that eliminates most of the remaining limitations. MTM includes enhanced firmware that allows point-to-point communication and the reading of the machine state, a C++ API for programming the robots, and packages, in both Common Lisp and Java, for programming the robots and for remotely controlling them. Keywords: ACM Computing Curriculum 2001, curriculum development, robotics, Lego Mindstorms Introduction The fields of Robotics and Computer Science have been fruitfully interacting at the graduate research level for many years. For example, Artificial Intelligence (AI) researchers expanded their understanding of planning in order to accommodate different robot chassis designs. Similarly, robot designers modified hardware to support scheduling for real-time operating systems. With this kind of potential for intellectual synergy, it might seem natural for educators to ask whether robotics-inspired projects could help students at the undergraduate level understand core computing concepts better by exploring them in a setting other than desktop computing.
    [Show full text]