Robot Builder: The Beginner's Guide To Building Robots

3y ago
124 Views
13 Downloads
2.66 MB
66 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Jewel Payne
Transcription

ROBOT BUILDERThe Beginner’s Guide to Building RobotsJohn Baichtal800 East 96th Street,Indianapolis, Indiana 46240 USA

iiRobot Builder: The Beginner’s Guide to Building RobotsRobot Builder: The Beginner’s Guide toBuilding RobotsEditor-in-ChiefGreg WiegandExecutive EditorCopyright 2015 by John BaichtalRick KughenAll rights reserved. No part of this book shall be reproduced, stored ina retrieval system, or transmitted by any means, electronic, mechanical,photocopying, recording, or otherwise, without written permission fromthe publisher. No patent liability is assumed with respect to the use ofthe information contained herein. Although every precaution has beentaken in the preparation of this book, the publisher and author assumeno responsibility for errors or omissions. Nor is any liability assumed fordamages resulting from the use of the information contained herein.Development EditorISBN-13: 978-0-7897-5149-2ISBN-10: 0-7897-5149-6Copy EditorLibrary of Congress Control Number: 2014944096Printed in the United States of AmericaFirst Printing: November 2014TrademarksAll terms mentioned in this book that are known to be trademarks orservice marks have been appropriately capitalized. Que Publishing cannotattest to the accuracy of this information. Use of a term in this book shouldnot be regarded as affecting the validity of any trademark or service mark.Ginny MunroeManaging EditorSandra SchroederProject EditorMandie FrankBarbara HachaIndexerErika MillenProofreaderAnne GoebelTechnical EditorPete ProdoehlEditorial AssistantKristin WattersonLEGO and MINDSTORMS are registered trademarks of The LEGO Group.DesignerWarning and DisclaimerMark ShirarEvery effort has been made to make this book as complete and as accurateas possible, but no warranty or fitness is implied. The information providedis on an “as is” basis. The author and the publisher shall have neitherliability nor responsibility to any person or entity with respect to any loss ordamages arising from the information contained in this book.CompositorSpecial SalesFor information about buying this title in bulk quantities, or for specialsales opportunities (which may include electronic versions; customcover designs; and content particular to your business, training goals,marketing focus, or branding interests), please contact our corporate salesdepartment at corpsales@pearsoned.com or (800) 382-3419.For government sales inquiries, please contact governmentsales@pearsoned.com.For questions about sales outside the U.S., please contact international@pearsoned.com.Studio Galou

Contents at a GlanceContents at a GlanceIntroduction xviiCHAPTER 1You, Robot BuilderCHAPTER 2Robots of the WorldCHAPTER 3Rolling RobotsCHAPTER 4Going SolarCHAPTER 5Controlling Your RobotCHAPTER 6Introduction to ProgrammingCHAPTER 7Harnessing InfraredCHAPTER 8Building SetsCHAPTER 9Robot-Builder’s Toolbox215383111161191CHAPTER 10 ManipulatorsCHAPTER 11 Water RobotsCHAPTER 12 Art Bots351Glossary385Index1283329391ONLINE:CHAPTER 13 Web-Interacting Robots247143iii

ivRobot Builder: The Beginner’s Guide to Building RobotsTable of ContentsINTRODUCTION xviiChapter 1What’s in This Book?xviiYou, Robot Builder1What Are Robots?2Myths About RobotsTypes of Robots4Anatomy of a RobotSafety479Build a Vibrobot10Pizza Saver Vibrobot11Computer Fan Buzzbot15Summary 19Chapter 2Robots of the WorldWatercolor BotSparki212223OpenROV 24Astro Droids25Drink-Making Unit26Mars Rover Replica27MindCub3r28Ball-Balancing Robot29LEGO Turing MachineSir Mix-a-BotArc-O-Matic303132Soft-Boiled Eggbot 33Legonardo 34Sisyphus 35Orbital Rendersphere36Clash of the Fractions37Lava Lamp Centrifuge38Quakescape 39InMoov40

Table of ContentsDIWire Bender41Plant-Watering RobotNerf Sentry Gun4243Yellow Drum MachinePancake Bot45Balloon Bot4644Piccolo: The Tiny CNC BotXylophone Bot48Flyer-Distributing RobotFlowerbot50CoolerBot514749Summary 52Chapter 3Rolling Robots53All About Motors54Choosing a MotorWheels5558Configuration 58Measurements 61Tires or Treads 61Project: DIY Wheels 65Parts List 66Step-by-Steps 67The Chassis70Use a Pre-Made Chassis70Make Your Own Chassis71Use a Building SetPowering Your Robot7272Batteries 73Solar Panels74House Current75Project: Building a Rolling RobotParts List77Step-by-Steps 78Summary 8176v

viRobot Builder: The Beginner’s Guide to Building RobotsChapter 4Going Solar83How Do Solar Panels Work?BEAM Robotics8485Three Hobbyist-Friendly Solar CellsFlexible Film8686Glass and Silicon87Plastic and Silicon88Prototyping Circuits89How to BreadboardHow to Solder9091Using Solar Power to Charge BatteriesProject: DIY Solar PanelParts List101102Step-by-Steps 103Project: Making a Solar SpinnerParts List106107Step-by-Steps 107Summary 109Chapter 5Controlling Your RobotAutonomous112Infrared112Internet113Radio ter 116Motor Control Options117Adafruit Motor Shield117Schmalzhaus EasyDriver118Makeblock Me Motor DriverControlling a Robot with RCTransmitter118119120Receiver 121Electronic Speed Controller 121100

Table of ContentsProject: Use an Arduino Uno to Control a RobotParts List123Step-by-Steps 125Programming the Arduino127Project Remix: Swapping Motor BoardsParts List130131Step-by-Steps 132Code140Summary 141Chapter 6Introduction to Programming143What Is Programming? 144DelayFor144144If/Else 144Loops and Interrupts145Switch/Case 145Variables145While Loops145The Arduino IDE146The Blink Sketch148Finding Code Examples149Adapting Example Code151Simple Debugging Using the Serial MonitorProgramming and Robotics BookshelfProject: Adding an Ultrasonic Sensor toYour Robot 154Parts List154Step-by-Steps 155Code157Summary 159Chapter 7Harnessing Infrared161Uses for Infrared Signals162Passive Versus Active IR163IR Remote Controls165152151123vii

viiiRobot Builder: The Beginner’s Guide to Building RobotsAdafruit Mini Remote Control165Sparkfun Infrared Remote Control166Makeblock Infrared Receiver and Remote ControllerMini Project: Discover Your Remote’s IR CodesParts List166167168Step-by-Steps 169Code169Project: Controlling a Robot with IR 169Parts List 169Step-by-Steps 170Code171Project: Dart SentryParts List173174Step-by-Steps 175Code187Operating the Dart Sentry189Summary 189Chapter 8Building Sets191Uses for Building Sets192Enclosures 192GantriesChassis193194Hardware Mounts195Furniture 196Examples of Building Sets 197Vex Robotics Design System (Vexrobotics.com) 197LEGO Mindstorms and Technic Sets (Mindstorms.com) 198Actobotics Building System (Servocity.com) 199Makeblock (Makeblock.cc) 200MicroRax (Microrax.com) 200MakerBeam (Makerbeam.eu) 202Tamiya (Tamiyausa.com) 203Choosing a Building Set 203Material204

Table of ContentsBeams205Motor Mounts206Connector Plates207Electronics 208Gears208Wheels and Tank Treads 209Customizing Building Sets 210Combining Building Sets 210Creating New Parts 214Chassis Designs 216LEGO Mindstorms EV3 Chassis 216Step-by-Steps 217Makeblock Chassis 226Parts List 227Step-by-Steps 228Actobotics Chassis 234Parts List 234Step-by-Steps 236Summary 245Chapter 9Robot-Builder’s Toolbox247Choose Your Toolbox 248Size248Construction 1Compartments 252Belly252Handle253Four Toolboxes254Pelican 1460 Mobile Tool ChestStack-On 39-Bin Drawer Cabinet254255ix

xRobot Builder: The Beginner’s Guide to Building RobotsHusky 41-inch 13-Drawer Tool Cabinet 256Craftsman 21-inch Toolbox 257Tools257Drivers and Wrenches 257Electronics 259Soldering 262Measurements 263Writing and Drawing Tools 264CNC Tools 265Woodworking Tools 266Attaching267Cutting 269Cables269Introduction to CNC Tools 270Laser Cutter 101 270Anatomy271Using the Laser Cutter 274CNC Router 101 276Anatomy277Using the CNC Router3D Printer 101Anatomy279280280Using the 3D Printer282Summary 282Chapter 10 Manipulators283Types of ManipulatorsUniversal GripperScoop284284285Tentacle 286Pneumatic 287Pincer 288Humanoid Hand288Electromagnet 289Claw290

Table of ContentsWinchPen291291Commercial Manipulator OptionsMakeblock Strong Robot GripperVEX Claw292292293uFactory uArm294Dagu Robotic Claw, MK IIProject: LEGO PincerParts List294296296Step-by-Steps 298Project: Laser-Cut Pincers 307Parts List 307Step-by-Steps 309Project: Coffee Grounds Gripper 314Parts List 315Step-By-Steps317Summary 328Chapter 11 Water Robots329Anatomy of a Water Robot330Flotation lization332Submersibles 332Moisture 333Waterproof Enclosures 333Project: Floating Fanbot 334Parts List 335Step-by-Steps 337Code348Summary 350xi

xiiRobot Builder: The Beginner’s Guide to Building RobotsChapter 12 Art Bots351Types of Art Bots352V-plotter 352Vibration352Plotter 353Eggbot354Sand Plotter355Car-Based 355Paint PendulumDot Matrix356357Converting an Image to G-Code358Converting a Line Drawing into G-CodeProject: Rolling ‘RiterParts List361362363Step-by-Steps 365Code380Summary 383Glossary 385Index391ONLINE (WWW.INFORMIT.COM/TITLE/9780789751492):CHAPTER 13 Web-Interacting Robots 1Types of Web-Interacting Robots 2Sniffers 2Autotweeters 2Telepresence 2Interactive Robots2Home Automation3Sensor NetsHardware34Arduino Ethernet Shield4Adafruit CC3000 BreakoutArduino Wi-Fi ShieldRoving Networks WiFly564

xiiiMicrocomputers: Non-Arduino Solutions 7BeagleBone Black (beaglebone.org) 7Raspberry Pi (raspberrypi.org) 7pcDuino (pcduino.com) 7Arduino Yún (arduino.cc/en/main/ArduinoBoardYun) 7Dart Texter 8Parts List 9Step-by-Steps 9Code12Summary 13

xivAbout the AuthorJohn Baichtal writes books about toys, tools, robots, and hobby electronics. He is theco-author of The Cult of LEGO (No Starch Press) and author of Hack This: 24 IncredibleHackerspace Projects from the DIY Movement; Basic Robot Building with LEGO Mindstorms NXT 2.0;and Arduino for Beginners (all from Que Publishing). Most recently he wrote Make: Lego andArduino Projects for MAKE, collaborating with Adam Wolf and Matthew Beckler, and he is theauthor of the upcoming Que book, Building Your Own Drones: The Beginner’s Guide to UAVs andROVs. He lives in Minneapolis, MN, with his wife and three children.

xvDedicationTo my grandmother, Marion Lillie, for her continued inspiration and support.To my wife Elise and kids Eileen Arden, Rosemary, and Jack, for putting up with and participating in a lotof nerdy stuff.Finally, to my cousins Sean Fields and Will Fields, the next generation of robot builders. I hope this bookintrigues you!AcknowledgmentsThanks to (in no particular order) Jude Dornisch, Steven Anderson, Adam Wolf, MichaelFreiert, John Wilson, Susan Solarz, Akiba, Mark Frauenfelder, Chris Berger, MichaelKrumpus, Alex Dyba, Brian Jepson, Becca Steffen, Dave Bryan, Actobotics, Eric Wang,Mike Hord, Makeblock, Pat Arneson, Erin Kennedy, uFactory, Windell H. Oskay, CreativeRobotics, Johngineer, Matthew Beckler, Riley Harrison, Limor & Phil @ Adafruit, TylerCooper, Beatty Robotics, Arcbotics, David Lang, Trammell Hudson, Pete Prodoehl, DanieleBenedettelli, Bruce Shapiro, Alex Allmont, John Edgar Park, Miguel Valenzuela, PeteMcKenna, Steve Norris, and, well, obviously, Rick Kughen.A special thanks to my mother Barbara for assembling the Glossary, and for all her support.And to my gaming group, without whom I might not be sane: Big Ryan, Little Ryan, Drew,Gabe, Ned, Dave, Graham, and Jess.

xviRobot Builder: The Beginner’s Guide to Building RobotsWe Want to Hear from You!As the reader of this book, you are our most important critic and commentator. We valueyour opinion and want to know what we’re doing right, what we could do better, whatareas you’d like to see us publish in, and any other words of wisdom you’re willing to passour way.We welcome your comments. You can email or write to let us know what you did or didn’tlike about this book—as well as what we can do to make our books better.Please note that we cannot help you with technical problems related to the topic of this book.When you write, please be sure to include this book’s title and author as well as your nameand email address. We will carefully review your comments and share them with the authorand editors who worked on the book.Email:feedback@quepublishing.comMail:Que PublishingATTN: Reader Feedback800 East 96th StreetIndianapolis, IN 46240 USAReader ServicesVisit our website and register this book at quepublishing.com/register for convenient accessto any updates, downloads, or errata that might be available for this book.

What’s in This Book?INTRODUCTIONRobots are incredible machines. The more complicated ones are entrusted with buildingcars and digging tunnels, projects that require lots of moving and lifting power but alsoprecision. You may even have heard of experimental robots that are used for surgical procedures and can sew sutures or make incisions.It’s almost a science-fiction phenomenon in a way—how could anyone actually build oneof those contraptions? It’s not science fiction, of course. Robots are built by people, andyou’re a person—so let’s make a robot! I call the first chapter of my book, “You, RobotBuilder,” because that’s what this book is about—showing how you can build a robot fromthe wheels up as you learn about motors, controllers, grippers, wheels, and everything elseyou need to create your first bot.Your creation may not dig a tunnel or sew up an incision, but you will have built it, and thatmeans you can build any robot, so long as you have the knowledge and parts.What’s in This Book?The following list describes what you’ll find in each chapter:Chapter 1, “You, Robot Builder,” begins with the age-old question: What exactly is arobot? You’ll learn about the various categories of robot and even try out a couple ofabsurdly simple robots that use vibration motors to move around.Chapter 2, “Robots of the World,” shares a bunch of cool robots that other hobbyistshave built around the world, with a variety of shapes and configurations.Chapter 3, “Rolling Robots,” shows you how to build a wheeled robot, a basic platform that will serve you well through this book.Chapter 4, “Going Solar,” teaches you about solar power. Then you use what youlearn to make a spinning robot.Chapter 5, “Controlling Your Robot,” explores two cool techniques for controllingyour robot: using an Arduino microcontroller and a classic radio control rig.Chapter 6, “Introduction to Programming,” introduces you to some basic programming techniques that delve deeper into the Arduino phenomenon.Chapter 7, “Harnessing Infrared,” tackles two ways to use that nifty invisible light:passively, like a remote control receiver detects a signal, and actively with infrared,which uses the light to detect movement.Chapter 8, “Building Sets,” covers those convenient modular construction sets, withmultiple plastic and metal kits discussed. You’ll even learn how to build a couple ofrobot chassis using building sets.Chapter 9, “s/b Robot-Builder’s Toolbox,” explores all the tools you need to completeyour project.xvii

xviiiIntroductionChapter 10, “Manipulators,” concludes the trio of tool chapters by exploring claws,grippers, and other manipulators robots use to interact with the outside world.Chapter 11, “Water Robots,” tackles the subject of robot boats and shows you howto build one.Chapter 12, “Art Bots,” takes a look at robots that draw or paint. You’ll have theopportunity to build a robot that draws with chalk.On the WebChapter 13, “Web-Controlled Robots,” explores the subject of robots connected tothe Internet, and you’ll build a robot that sends text messages. Chapter 13 can bedownloaded for free from the Que website, www.informit.com/title/9780789751492.I hope you find this book helpful and inspiring as you, too, become a robot builder.

This page intentionally left blank

4Going SolarWhy worry about batteries when we orbit around the ultimate energy source? The sun radiates vastamounts of energy, and we can use this to power our robots—and other stuff—all through the coolscience of solar cells (Figure 4.1), which convert light into electricity.FIGURE 4.1 Solar cells can be a great way to power your robot.Your initial thought might be, “Simply add solar panels for free energy!” Not so fast. As I alluded toin Chapter 3, “Rolling Robots,” it’s not that simple. Even if you have a panel big enough to poweryour rig the way you like it, there’s no guarantee the sun is out. Furthermore, even if the sun isout, the earth’s orbit makes it appear to move across the sky, meaning the voltage generated willfluctuate.

84CHAPTER 4: Going SolarAll that being said, there’s a lot to like about solar-powered robots. You can storethem away for a couple years and they’ll still work. You don’t have to buy new batteriesperiodically. Finally, you can do some intriguing things with robotics, like createautonomous crawlers that creep around your yard like a friendly robo-insect. However, evenif you do use batteries in your robot, you can have a solar panel as well, to continuouslycharge the batteries. The best of both worlds!In this chapter, you’ll learn about how to use these panels in your projects. Then you’ll boneup on breadboarding, which is a cool way of temporarily constructing circuits. Finally, you’llbuild two sweet projects. The first is a solar-powered battery charger, and the second is asimple robot that is entirely powered by sunlight.How Do Solar Panels Work?Solar cells are layers of semiconductive materials (shown in Figure 4.2) that createan electrical current when exposed to light. The earliest recorded observation of thephotovoltaic effect took place in 1839 when Alexandre-Edmond Becquerel’s experimentswith silver chloride produced voltage and current when exposed to light. By 1959, allsatellites launched into space bore solar panels, and a little more than 50 years after that,we’re using them to power robots.FIGURE 4.2Silicon wafers consist of two layers of semi-conductive material.You often hear different terms associated with solar technology. A solar cell is a piece ofphotovoltaic material, usually crystalline silicon. Solar cells are often connected into groupson a support structure, and these are called panels. A group of panels is an array.

BEAM RoboticsSolar cells are rated for direct current (DC) output under certain test conditions—a sunnyJune day in San Francisco, for instance. Measurement is in watts as well as photovoltaicefficiency. Finally, because the output is DC, you’d need an inverter to run householdappliances off of it.There are two kinds of solar cells. The most common are the crystalline silicon wafers I’vebeen describing, which are covered in glass or plastic to protect the fragile cells.The other kind of solar cell is flexible plastic. Called thin film solar cells, or TFSC, theseconsist of photovoltaic material deposited on a substrate. Originally used for solarpowered watches, flexible-film solar cells are more expensive than crystalline silicon andhave a lower efficiency. However, they’re useful for situations where the panel needs to flex,or the weight of the panel becomes a consideration.BEAM RoboticsOne of the earliest hobbyist uses for solar cells occurred in a phenomenon called BEAM(which stands for Biology, Electronics, Aesthetics, and Mechanics); these were analogrobotics designed as if they were living things. Created in the 1990s by engineer RobertTilden, BEAM was an attempt to make robots as simple as possible—no microchips orprograms ran these bots. Instead, Tilden used discrete components, such as capacitorsand resistors, to create sense-act behaviors. For example, the robot in Figure 4.3 senseslight and then turns a motor.FIGURE 4.3This solar-powered robot spins when light strikes it.Credit: Adam Wolf85

86CHAPTER 4: Going SolarThe key to creating simple BEAM bots is tiny solar cells, which generate minute amountsof electricity; with the help of capacitors and other components, they generate enoughelectricity to move motors and turn on LEDs.The biology aspect of BEAM comes into play because the robots freque

Contents at a Glance iii Contents at a Glance Introduction xvii CHAPTER 1 You, Robot Builder 1 CHAPTER 2 Robots of the World 21 CHAPTER 3 Rolling Robots 53 CHAPTER 4 Going Solar 83 CHAPTER 5 Controlling Your Robot 111 CHAPTER 6 Introduction to Programming 143 CHAPTER 7 Harnessing Infrared 161 CHAPTER 8 Building Sets 191 CHAPTER 9 Robot-Builder’s Toolbox 247 .

Related Documents:

May 02, 2018 · D. Program Evaluation ͟The organization has provided a description of the framework for how each program will be evaluated. The framework should include all the elements below: ͟The evaluation methods are cost-effective for the organization ͟Quantitative and qualitative data is being collected (at Basics tier, data collection must have begun)

Silat is a combative art of self-defense and survival rooted from Matay archipelago. It was traced at thé early of Langkasuka Kingdom (2nd century CE) till thé reign of Melaka (Malaysia) Sultanate era (13th century). Silat has now evolved to become part of social culture and tradition with thé appearance of a fine physical and spiritual .

On an exceptional basis, Member States may request UNESCO to provide thé candidates with access to thé platform so they can complète thé form by themselves. Thèse requests must be addressed to esd rize unesco. or by 15 A ril 2021 UNESCO will provide thé nomineewith accessto thé platform via their émail address.

̶The leading indicator of employee engagement is based on the quality of the relationship between employee and supervisor Empower your managers! ̶Help them understand the impact on the organization ̶Share important changes, plan options, tasks, and deadlines ̶Provide key messages and talking points ̶Prepare them to answer employee questions

Dr. Sunita Bharatwal** Dr. Pawan Garga*** Abstract Customer satisfaction is derived from thè functionalities and values, a product or Service can provide. The current study aims to segregate thè dimensions of ordine Service quality and gather insights on its impact on web shopping. The trends of purchases have

Chính Văn.- Còn đức Thế tôn thì tuệ giác cực kỳ trong sạch 8: hiện hành bất nhị 9, đạt đến vô tướng 10, đứng vào chỗ đứng của các đức Thế tôn 11, thể hiện tính bình đẳng của các Ngài, đến chỗ không còn chướng ngại 12, giáo pháp không thể khuynh đảo, tâm thức không bị cản trở, cái được

Contents at a Glance iii Contents at a Glance Introduction xvii CHAPTER 1 You, Robot Builder 1 CHAPTER 2 Robots of the World 21 CHAPTER 3 Rolling Robots 53 CHAPTER 4 Going Solar 83 CHAPTER 5 Controlling Your Robot 111 CHAPTER 6 Introduction to Programming 143 CHAPTER 7 Harnessing Infrared 161 CHAPTER 8 Building Sets 191 CHAPTER 9 Robot-Builder's Toolbox 247 .

NORTH LANARKSHIRE COUNCIL AGmA REPORT 1 1 I I 1 1 IFROM: QR8FSocWWoRK PERlQD Ollff109 - 16mm I I SoClAtWoRK DATE : 16 SEPTEMBER1896 Ref. : EMch I I 1 1. introduction This report compares actual expenditure and income against estimates both for the year to date and the prc@cted &-turn. Explanations are provided for the major &-turn variance.