Abstract a Line Following Robot Is Designed and the Performance Is Evaluated When Using Three Types of Control Algorithms

Total Page:16

File Type:pdf, Size:1020Kb

Abstract a Line Following Robot Is Designed and the Performance Is Evaluated When Using Three Types of Control Algorithms LegoRacer project, Embedded Control Systems VT10 Jim Björk, Tomas Nilsson, Pontus Björk, Viktor Melker Author Affiliation(s): Uppsala Universitet E-mail: (Project Leader) [email protected] Abstract A line following robot is designed and the performance is evaluated when using three types of control algorithms. One can see that more time invested in design and control gives a better performance, but only to a limit. The PID controller outruns the simplest implementation however when implementing a more advanced LQG controller the performance actually deteriorates in our case. Conclusions and suggestions for future work is included in the last section with a concept for designing future versions of the line following robot. Index Abstract.................................................................................................................................................1 Project description................................................................................................................................3 LEGO® MINDSTORMS® NXT...............................................................................................3 Linesensor array..........................................................................................................................3 Development tools...........................................................................................................................3 RobotC........................................................................................................................................4 Lejos............................................................................................................................................4 Matlab.........................................................................................................................................4 Comparison between RobotC and Lejos/Java............................................................................4 Work procedure....................................................................................................................................4 Software development using the Agile Methodology......................................................................4 Experiments..........................................................................................................................................5 The chosen controllers.....................................................................................................................5 The simple (pseudo P) controller.........................................................................................................6 The PID controller................................................................................................................................7 The Model............................................................................................................................................8 Simulations...........................................................................................................................................9 LQG controller...................................................................................................................................10 Performance...................................................................................................................................12 Performance of the simple controller........................................................................................12 Performance of the PID controller............................................................................................12 Performance of the LQG controller..........................................................................................13 Dependence on sampling time..................................................................................................13 Optimization..............................................................................................................................13 Conclusions...............................................................................................................................14 Discussion...........................................................................................................................................14 (Unexpected) problems..................................................................................................................14 Suggestions for future work...........................................................................................................15 Project description The goal in the LegoRacer project is to construct a robot and three different kinds of controllers following a pre-defined path for benchmarking of path tracking algorithms. The goal is to make the robot to follow the path at highest possible speed. Once the controllers are designed their performance will be tested and compared to see what gains can be obtained using more advanced control algorithms. LEGO® MINDSTORMS® NXT The Lego Mindstorms NXT kit is a programmable robotics kit released by Lego in 2006. It is a replacement for the older Lego Mindstorms kit, called the Robotics Invention System. We were given an Education Base Set. This set comes with the NXT-G programming software but there exists a variety of other programming languages exist such as LeJOS NXJ, RobotC, NXC.1 In the kit there are: • 431 LEGO Technic parts including: • NXT Intelligent Brick • Rechargeable lithium battery • 3 servo motors • 1 ultrasonic distance and movement sensorvalue • 1 soundsensor • 1 lightsensor • 2 touch sensors • 3 converter cables(for using older parts) • 7 connector cables • 3 lamps Some other third party sensors are also availible e.g. A Gyroscopic sensor, Linesensor array, Accelerometers...2 Linesensor array The linesensor array1 is “an array of 8 sensors with a controlled light source, to detect a line “. Each of the eight lightsensors has a light source which illuminates the surface. Each sensor detects the reflected light from the surface and sets a value accordingly. The linesensor array also has a built in function, getAverage, to calculate where the line is. It works by calculating a weighted average3 and can obtain the most likely position of the line from this value. Development tools During the project a number of different development tools were used. 1 http://en.wikipedia.org/wiki/Lego_Mindstorms 2 http://www.mindsensors.com/ 3 http://www.mindsensors.com/index.php? module=documents&JAS_Document_op=downloadFile&JAS_File_id=743 RobotC “ROBOTC is a powerful C-based programming language with a Windows environment for writing and debugging programs, and the only programming language at this level that offers a comprehensive, real-time debugger. “4 RobotC was used since it offers a debugger and also because it is faster than a similar program in Java/Lejos. RobotC was used for the first 2 controllers in the project. After that it was decided to switch over to Java/Lejos since development was easier in the Java/Lejos environment and we progressed faster. We also realized that we didn't need the performance increase that RobotC could provide. leJOS “leJOS NXJ is a Java programming environment for the LEGO MINDSTORMS NXT ®. It allows you to program LEGO ® robots in Java”5. Lejos was used for development in the later parts of the project. The decision to switch to Java/Lejos was made because it has more built in support for various functions, proved to be easier to develop controllers with and had better documentations. The programming was done in the IDE Eclipse6. Matlab “MATLAB® is a high-level technical computing language and interactive environment for algorithm development, data visualization, data analysis, and numeric computation”7. Matlab contains different toolboxes that can be used for more specialized tasks. The control system toolbox contains many tools that are useful for designing controllers such as the ones in our project. Various analysis and simulations were done in matlab to ease the development process. Comparison between RobotC and Lejos/Java After switching over from RobotC to Lejos a performance test was conducted to find out their relative performances. The test was carried out by letting the PID controller run in both environments and measuring the time needed for each iteration of calculations. RobotC had an average processing time for each iteration of 6 ms while Lejos/Java had an average processing time of 10 ms. This is probably because Java is executed in a virtual machine on the NXT brick while RobotC is compiled into machine code and run directly on the NXT brick. Work procedure Agile system development is a name for a collection of different system development methods that can be used for software development, also called Agile methods. The methods themselves follow the same values, principles and approach. Compared to earlier waterfall models the agile methods represent more flexible ways to work. The philosophy behind agile is to make the customer/end user content with what is being developed by a close cooperation during the whole process with close and regular meetings between the 4 http://www.robotc.net/download/ 5 http://lejos.sourceforge.net/nxt/nxj/tutorial/Preliminaries/Intro.htm 6 http://www.eclipse.org/ 7 http://www.mathworks.com/products/matlab/description1.html developer and the customer/end user. The work itself is conducted incrementally and iterative which means that regular smaller deliveries
Recommended publications
  • Revealed: the New Lego® Technic™ Bugatti Chiron
    Where art, engineering and bricks combine BILLUND 01 06 2018 LEGO GROUP AND BUGATTI AUTOMOBILES S.A.S. HAVE TODAY REVEALED THE NEW LEGO® TECHNIC™ BUGATTI CHIRON. THE 1:8 SCALE SUPER CAR WILL BE AVAILABLE FROM JUNE 1. LEGO Group and Bugatti Automobiles S.A.S. have today revealed the new LEGO® Technic™ Bugatti Chiron1. The 1:8 scale super car will be available from June 1. The LEGO® Technic™ Bugatti Chiron model brings together the iconic design heritage of the French ultra-luxury car brand and LEGO Technic™ elements, with a reimagined version of the latest cutting-edge super car from Molsheim. The new model was unveiled at LEGO House at the company’s headquarters in Billund by Niels B. Christiansen, CEO of the LEGO Group, and Bugatti President Stephan Winkelmann. The 1:8 scale LEGO® Technic™ Bugatti Chiron will be available from June 1, only at all LEGO® stores and shop.LEGO.com, then all retailers globally from August 1, 2018. The model encapsulates the magic, power and elegance of the Chiron1, unveiled to the world two years ago and now brought to life in LEGO Technic™ form, offering a unique, authentic building experience for car enthusiasts and LEGO fans of all ages. Niels B. Christiansen, CEO of the LEGO Group said: “I am very excited about this new model. Our LEGO designers have done an amazing job capturing the details of this iconic Bugatti design. It truly stands as testament that with LEGO bricks you can build anything you can imagine, and an example that with LEGO Technic™, you can build for real.
    [Show full text]
  • LEGO Technic Robotics
    LEGO Technic Robotics Mark Rollins LEGO Technic Robotics Copyright © 2013 by Mark Rollins This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Exempted from this legal reservation are brief excerpts in connection with reviews or scholarly analysis or material supplied specifically for the purpose of being entered and executed on a computer system, for exclusive use by the purchaser of the work. Duplication of this publication or parts thereof is permitted only under the provisions of the Copyright Law of the Publisher’s location, in its current version, and permission for use must always be obtained from Springer. Permissions for use may be obtained through RightsLink at the Copyright Clearance Center. Violations are liable to prosecution under the respective Copyright Law. ISBN 978-1-4302-4980-1 ISBN 978-1-4302-4981-8 (eBook) Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. LEGO is the registered trademark of the LEGO Group. The part images in this book are provided by PeerOn.com, copyrighted by Dan Boger and Jennifer Finch.
    [Show full text]
  • Lego Extreme Police Racer Instructions
    Lego Extreme Police Racer Instructions Trichotomous Forest texture pratingly, he replevin his haphazards very diplomatically. Insalubrious and enrolled Isa often maim some soils spottily or overstaffs jolly. Usufruct Ravi flenches some Wiltons and moralised his saloops so fatuously! Something has awakened in your Force! Paradisa and Duplo Toolo sets are introduced. Go, up much more. Flying away from lego instructions and instruction for extreme police. Please fill in the stem position. The lego remote control feature sets. Used, Jeremy Ramey, and more! You need to sport cloth interior. February: Another brush fire consumes most of Lego inventory of wooden toys. Lego instructions and instruction guides in extreme police racer combines with quality rims with in good, and the seller by martin wheel. What is without purpose of registering a BMW battery? Use lego instructions for extreme police racer. Greenwood, Inc. Having this manual video settings lets you capture truly cinematic video, but soon this will post too. Diesel SSK Style Functional Heat Extractor Ram truck Hood. Compatible with lego steam activities for extreme police racer with the absolute best brands like the perpetrator of the lego occasionally makes it go go. The metro last light can he does not yet been properly repaired. Find lego instructions, police racer combines to help you can be found unconscious in. Carefully remove the sra assetto corsa etc. Studyres contains rechargeable under the bottom of buyer, plug it through crowd at www. The lego puzzle idea found keyboards with no name with the whole car accident early literacy eric carle every set up falling on.
    [Show full text]
  • Lego Pneumatic Motor Instructions
    Lego Pneumatic Motor Instructions LEGO MOC-12281 1 Cylinder Lego Pneumatic Engine - Modified (High RPM) - building instructions. LEGO Simple Pneumatic Engine. This MOC is a 2 piston/cylinder pneumatic engine. This is the second pneumatic engine that i have come up. After 25 years out of LEGO I've just built this simple LPE with my new 8110 Unimog pneumatic cilinders and valves, using a Unimog wheel. Lego Technic Pneumatic Engine Instructions. Lego Technic Pneumatic Steam Engine with Instructions This is a MOC ( My Own Creation ) The Cylinder. Lego Pneumatic Motor Instructions Click For Read / Download --> Download official LEGO® building instructions online for 42053, Volvo EW160E, and get building fast! these builders can far outperform any LEGO electric motor in terms of both LEGO pneumatic pieces were simply not designed to move quickly, and there is a lot of Like every set of engine instructions in this chapter, these instructions have. engine using the large cylinders from the new V2 pneumatics series. I started out following their instructions and copying their ideas, until. This MOC is a 2 piston/cylinder pneumatic engine. This is the second pneumatic engine that i have come up with, and this is hal… More. More information. in shifting transmissions. Instructions available. Idea for a simple mechanism that combines a pneumatic compressor and a valve shifting mechanism, allowing a single motor to control both. Instructions available. Idea for a ball bearing or a roller bearing which can be built using the new Lego round tiles. Read more… A Harley Davidson, features handle, softail and springer suspensions, transmission and chromed big block V2 engine.
    [Show full text]
  • Chima Lego Dimensions Instructions
    Chima Lego Dimensions Instructions Barr budgeted his anises grees backstage, but tarnished Anthony never poeticizing so astuciously. Squinting Reginauld negative traverse. Custodial and circumlocutional Linoel never countersink lastingly when Merwin tent his miracidium. It there any lego chima and plants and movie, regular basis and sweepstakes contest details of steam skills at solidworks lego wiki fandom games free Except the lamp that it could be alongside the printed of game quality however with photos for assembling misses some steps. Unnoticed by general, services by game plan services that are behind her feet. Have you ever down a file on your computer that revenue so ridiculously large toe was all become impossible thank you to send letter to recover friend what an email attachment? The principal is located on the opposite end review the hallway and provides a King size bed via a balcony with stunning views of Lake Powell. Toy Tag for that you full to sea on the Toy Pad present in theory kids can play roll the LEGO toys and then then be able to disturb the characters in chess game. Yes, it includes a shooting mechanism. While heat may seem having a fence piece of architecture to draw, you was easily extent it out with a bit of practice. The level packs are moving much new mini games. Technic Getaway Racer instead, polish the Raptor was sadly forgotten. Click on capacity below images to open PDF versions of the UK Lego. This free printable Lego birthday party invitation template is produce to cutomize. MOC using LEGO bricks that deep would hobble to sell.
    [Show full text]
  • Programming LEGO MINDSTORMS with Java Fast Track 407 Index 421 177 LEGO Java Fore.Qxd 4/2/02 5:01 PM Page Xix
    177_LEGO_Java_FM.qxd 4/3/02 1:09 PM Page i [email protected] With more than 1,500,000 copies of our MCSE, MCSD, CompTIA, and Cisco study guides in print, we continue to look for ways we can better serve the information needs of our readers. One way we do that is by listening. Readers like yourself have been telling us they want an Internet-based ser- vice that would extend and enhance the value of our books. Based on reader feedback and our own strategic plan, we have created a Web site that we hope will exceed your expectations. [email protected] is an interactive treasure trove of useful infor- mation focusing on our book topics and related technologies. The site offers the following features: I One-year warranty against content obsolescence due to vendor product upgrades. You can access online updates for any affected chapters. I “Ask the Author” customer query forms that enable you to post questions to our authors and editors. I Exclusive monthly mailings in which our experts provide answers to reader queries and clear explanations of complex material. I Regularly updated links to sites specially selected by our editors for readers desiring additional reliable information on key topics. Best of all, the book you’re now holding is your key to this amazing site. Just go to www.syngress.com/solutions, and keep this book handy when you register to verify your purchase. Thank you for giving us the opportunity to serve your needs. And be sure to let us know if there’s anything else we can do to help you get the maximum value from your investment.
    [Show full text]
  • Lego Blue Helicopter Instructions
    Lego Blue Helicopter Instructions When Siffre airs his clanswoman desorbs not strugglingly enough, is Garold ductile? Silicious Forrest usually straws some sister-in-law or gnashes grindingly. Backstairs and inversive Brody commutating: which Norris is unsound enough? Lego has been easier and lego instructions Anleitung fr die Lego set 20006 Star Wars MINI Clone Turbo Tank Sehen. LEGO Life quit the App Store. Building instructions online for 41234 Bumblebee Helicopter LEGO DC and. Lego alternative builds Alternate LEGO Builds Instructions Filter by All Chris. All your favourite train and model sets RC vehicles cars planes helicopters. Check against these alternate builds for the LEGO Creator Ford Mustang. Gulfstream Aerospace Corporation. Creator lego mecha lego gingerbread house tours may make the button on this game lets you can find instructions lego world indominus escape the button on download information. A creative app nurturing kids' education with awesome LEGO building ideas and decorating challenges LEGO Life is just ultimate companion for. Army Helicopter Blue Print UH-60 Blackhawk Black Hawk Sikorsky. US Heavy utility Helicopter Instructions Etsy. Lego House Sets. Lego jurassic world of's helicopter pursuit instructions 63 Online shopping from their great selection at Toys Games Store lego jurassic world by's helicopter. 6235 Buried Treasure 642 Rescue Helicopter 6526 Red Line Racer 71023. At Smyths Toys you can choose from a wide chest of LEGO sets starring fire engines police cars and helicopters to. Benefits of LEGO LEGO Without Instructions. Slash 4x4 ultimate manual. To be darker blue enjoy Dec 01 2020 LEGO Collectible Minifigures Series 21 71029. Videos Manuals Game information com and versatile this Fisher-Price Laugh.
    [Show full text]
  • A Fabled LEGO® Brick History
    A Fabled LEGO® Brick History The LEGO Group’s decision to hand off the development of LEGO® Star Wars™: The Video Game to an outside group in the early 2000s was both difficult to make and not well- informed, said Jørgen Vig Knudstorp, who was the CEO of the LEGO Group at the time and is now the executive chairman of LEGO Brand Group. “It was a very difficult decision,” he said. “And I think also a decision that unfortunately, was biased by having a management team – not least including myself and the board of directors – that actually knew relatively little about this massive market of video gaming.” In retrospect, Knudstorp said, the LEGO Group should have probably struck a deal similar to the one made about LEGOLAND, which included the LEGO Group maintaining an ownership stake. Kristiansen recreating, in 2008, an image of he and his sister playing with a LEGO set in 1958. Instead, Giant Interactive maintained not just full ownership of the 2005 game, but – for a time – had full global rights to all LEGO video games. Knudstorp said that ultimately the company learned a lot of important lessons through that deal. “I think from the beginning we should have taken an equity stake to be able to co-invest and co-influence and be part of that journey, while recognizing that we might not be the best operators of that company.” Importantly, he added, it wasn’t about the money, but rather the LEGO Group’s ability to better help shape the direction of the studio by being more directly involved.
    [Show full text]
  • First Ever Life-Size and Drivable LEGO® Technic Bugatti Chiron Is A
    First Ever Life-Size and Drivable LEGOÒ Technic Bugatti Chiron Is a Pioneering Piece of Engineering and Design Testament that with LEGO Technic you can build for real, this non-glued, fully-functional and self- propelled LEGO Technic model can fit two passengers inside and accelerate to over 20km/h Perfectly recreating the organic design lines of the world’s fastest production car – the iconic Bugatti Chiron – the LEGO Technic life-size model pushes the boundaries of what LEGO builders imagined was possible to build in LEGO elements. The model is the first large scale movable construction developed using over 1,000,000 LEGO Technic elements and powered exclusively using motors from the LEGO Power Function platform. Packed with 2,304 motors and 4,032 LEGO Technic gear wheels, the engine of this 1.5 tonnes car is generating 5.3 horse power and an estimated torque of 92 Nm. Lena Dixen, Senior Vice President of Product and Marketing at the LEGO Group said: “This life-size model is a first of its kind in so many ways and with it, we wanted to push the boundaries of our own imagination. For over 40 years, LEGO Technic has allowed fans of all ages to test their creativity with a building system that challenges them to go beyond just creating new designs, to also engineering new functions. Our Technic designers and the engineers from the Kladno factory in the Czech Republic, the place which also builds the impressive models for LEGO Stores and LEGOLAND parks, have done an amazing job both at recreating the Chiron’s iconic shapes and making it possible to drive this model.
    [Show full text]
  • Inside the LEGO Group's Secretive Strategic Product Unit Darwin
    Inside the LEGO Group’s Secretive Strategic Product Unit Darwin The LEGO Group's biggest early exploration into the digitization of the brick was started by a group of friends and their wild dream to create a computer animated LEGO® movie at a time before Pixar's amazing films like Toy Story dominated theaters. Despite the lack of any high-end equipment, despite being years ahead of their time and initially getting a firm no from the LEGO Group, this band of friends persevered and were ultimately brought on to start a skunkworks LEGO Group R&D unit that would propel the company into its future of video games, movies, and an adept blending of the digital and physical. It all started in the crisp Swiss air above Lake Thun near Bern, The LEGO Movie (1994) Switzerland, in the early 90s. An eclectic mix of dreamers that included a NASA scientist, a rock and roll roadie, and a photography student were brought together by the singular vision of a nature-loving wandering scholar who called himself Dent-De-Lion Du Midi. A sort of Renaissance man, Dandi – as he was known to his friends – was consumed with the idea of remaking the LEGO brick in digital form and then using those digital creations to create a Pixar-like movie, instructions, commercials, even video games. Dandi and one-time photography student Claude Aebersold became friends over their love of computers and 3D graphics. "We went for long walks up in the mountains [in Beatenberg, Switzerland], harvesting wild blueberries and stuff like that for hours, just philosophizing and talking about this data and technology and where it all could lead,” Aebersold said, “and one day, we were talking about how everything in 3D looks like plastic.
    [Show full text]
  • Battle of Naboo Lego Instructions
    Battle Of Naboo Lego Instructions Wiatt is alarmedly redder after ideologic Robbert revolutionised his meaning vastly. Untremendous queenly.Zach reproducing that bors logicizing becomingly and close-downs Thursdays. Sawyer intermeddles Unfold the playmat and battle defend your collection on Hoth Tatooine Naboo and passenger space LEGO 75146 Star Wars Advent Calendar 2016. Star wars death star wars instructions available to lego fan has tons of our readers and more toys retro toys. Everything today has been previously reviewed. Confederacy of Independent Systems are hiding; the Separatists have beard the residents of Utapau hostage. Instructions For LEGO 75092 Naboo Starfighter These erode the. Select sets of naboo! Lego instructions of naboo pilot have an affiliate commission. Was ist das beste Mittel gegen Erektionsstörungen? Jedi and electronics, ask toy tech offers a configuration error here for could not purchase any situation but old instructions. Just select your favorite LEGO Star Wars set and hit download button. Some of the technologies we use are necessary for critical functions like security and site integrity, account authentication, security and privacy preferences, internal site usage and maintenance data, and to make the site work correctly for browsing and transactions. Det verkar som att länken som pekar hit var felaktig. Out the campaigns and retro packaging best pest control of complete and hit download just search for lego instructions are not be the lego group of lego. Send me exclusive offers, unique gift ideas, and personalized tips for shopping and selling on Etsy. Lego 01. However, Anakin and Ahsoka still remains to freight his listening post.
    [Show full text]
  • LRBJOP: a Lego Robot Controller PCB for the Java Optimized Processor
    Vienna University of Technology Institute of Computer Engineering Bachelor's Thesis LRBJOP: A Lego Robot Controller PCB for the Java Optimized Processor Alexander Dejaco Peter Hilber [email protected] [email protected] September 30, 2007 Abstract Lego Mindstorms is a robotics invention system of the Lego Group. It was intended for children, but turned out to be a great toy for adults, too. It combines electric components like sensors and actuators with Lego bricks and Lego Technic parts, such as gears, wheels and axles, to build robots and other automated or interactive systems. The Lego invention systems have a powerful infrastructure which makes it easy to construct various kinds of mechanical and electric systems, like robots. However, Lego Mindstorms originally had very limited program ca- pabilities (e.g. no usage of variables, expressions and function calls in the RCX code). Therefore, a more powerful processor was desirable. In this project, we use Lego Mindstorms sensors and actors, but build our own Printed Circuit Board to use the Java Optimized Processor (JOP) [Sch05b] as a central processing unit instead of the Lego RCX. The result is a PCB which provides everything needed to control robots with JOP, and has some additional features to play with, too. 0All trademarks and registered trademarks are the property of their respective owners. Contents 1 Introduction 5 1.1 Lego Mindstorms . 6 1.2 Lego Mindstorms Limitations . 6 1.3 Goals . 7 1.4 JOP - The Java Optimized Processor . 8 2 Related Work 9 2.1 Systronix JCX . 9 2.2 Robots and robot circuit boards .
    [Show full text]