Vancouver, BC
June 26, 2011
June 26, 2011
June 29, 2011
2153-5965
Electrical and Computer
10
22.1516.1 - 22.1516.10
10.18260/1-2--18559
https://peer.asee.org/18559
460
James Peyton Jones is Director of the Center for Nonlinear Dynamics & Control and Professor of Electrical & Computer Engineering at Villanova University
Connor McArthur is an undergraduate at Villanova Unversity studying Computer Engineering and Computer Science.
Tyler Young is a senior Computer Engineer and research assistant at Villanova University.
The VU-LEGO Real Time Target: Taking Student Designs to ImplementationThe use of mobile robotics in teaching has the potential to be revolutionized by advances in fourareas: a) low-cost, compact, and very computationally powerful target hardware which canoperate fully autonomously, and which can execute increasingly sophisticated algorithms in realtime; b) modern Automatic Code Generation or ‘Rapid Prototyping’ tools which allow thesedevices to be programmed directly from high-level Matlab / Simulink-based designs – withoutthe traditional difficulties associated with low level issues, fixed point computation, or C-language programming; c) the built-in sound, sensor, actuator and networking capabilities ofthese devices which enables groups of robots to interact with one another in complex ways; d)increasingly interdisciplinary approaches to dealing with this complexity, using methods fromCognitive Science, Biology, Mechanical, Electrical and Computer Engineering. This paperdescribes progress on an NSF, MathWorks, and Nokia sponsored project aimed at bringing allthese elements together for practical use and benefit in the classroom.Specifically, the paper describes a toolchain that has been developed, which enables students toaccess the hardware capabilities of the 32-bit LEGO NXT brick from within the Matlab /Simulink environment, and to automatically generate and cross-compile the necessary code forreal time autonomous implementation. The tool is similar to the existing ECRobot target, but thelatter is constrained by its function call architecture, and non-standard use of the Simulink Real-Time Workshop. The presented toolbox is much simpler to use. LEGO hardware I/O isrepresented in the Simulink design mode as blocks for accessing motors, encoders, push-buttons,ultrasound sensors, light sensors and more. Blocks have also been developed to allow the LEGOtarget to communicate in real time with a host computer over USB or BlueToothcommunications. An example system, consisting of a stabilized LEGO mobile invertedpendulum is discussed.
Jones, J. P., & McArthur, C. W., & Young, T. A. (2011, June), The VU-LEGO Real Time Target: Taking Student Designs to Implementation Paper presented at 2011 ASEE Annual Conference & Exposition, Vancouver, BC. 10.18260/1-2--18559
ASEE holds the copyright on this document. It may be read by the public free of charge. Authors may archive their work on personal websites or in institutional repositories with the following citation: © 2011 American Society for Engineering Education. Other scholars may excerpt or quote from these materials with the same citation. When excerpting or quoting from Conference Proceedings, authors should, in addition to noting the ASEE copyright, list all the original authors and their institutions and name the host city of the conference. - Last updated April 1, 2015