brief contents your LEGO BOOST creative toolbox it’s me MARIO getting around with Motor blocks introduction xv parT i programming basics 3 chapter 1 7 chapter 2 chapter 3 21 chapter 4 moving your robot precisely 31 repeating actions with loops 43 chapter 5 Hi I’m an explorer chapter 6 47 chapter 7 detecting colors 57 parT ii intermediate techniques a line-following robot 67 chapter 8 following walls 79 chapter 9 chapter 10 a voice-activated robot 89 chapter 11 taking a look around 101 121 chapter 12 playing darts chapter 13 building techniques 137 parT iii brickpecker chapter 14 BrickPecker a Brick-Sorting Bird 163 chapter 15 programming BrickPecker 187 parT iv cyboT chapter 16 building CYBOT chapter 17 programming CYBOT 197 225 experiment answer key 239 index 249 ix
contents in detail introduction xv xv why this book xvi prerequisites about this book xvi online resources xviii parT i programming basics chapter 1 your lego boosT creative toolbox 3 speaking LEGO 4 programming your robots 5 let’s build a robot 6 chapter 2 it’s me Mario 7 building MARIO 8 the Creative Canvas 13 MARIO’s first program 16 what you’ve learned 20 chapter 3 getting around with Motor blocks 21 22 using pseudocode to plan your program 22 coding with BOOST 23 differential drive robots 26 there and back Drivebase Move Steering for Time vs Drivebase Move Tank for Time 26 three new Move blocks 29 what you’ve learned 30 chapter 4 moving your robot precisely 31 rotation sensors 31 the Drivebase Move Steering for Angle block 32 visualizing angles of rotation 33 x conTenTs in deTail
calculating the Degrees input to move precisely moving a precise distance 34 35 turning by a set angle 37 calculating the Degrees input to turn precisely 38 what you’ve learned 41 chapter 5 repeating actions with loops 43 traveling along a square path 43 Loop blocks 45 what you’ve learned 46 chapter 6 hi i’m an explorer 47 the LEGO BOOST sensor 47 building the sensor head 48 measure distance with Sensor blocks 49 avoiding obstacles 49 triggering actions 50 51 52 testing sound effects 53 54 triggering a sound recording sounds 54 editing and deleting custom sounds 56 what you’ve learned 56 chapter 7 detecting colors 57 color detection tips 57 Color Sensor blocks 58 building the Color Controller 58 color commands 61 program description 62 recording custom sounds 63 testing the program 63 what you’ve learned 64 trigger conflicts playing sounds parT ii intermediate techniques chapter 8 a line-following robot 67 a simple approach to robot navigation 67 the Switch block 68 understanding data types 68 the Compare blocks 68 MARIO line-following version 69 line-following with one switch block 70 problems with communication delay 71 improving line-following with Switch blocks 72 monitoring sensor values 73 waiting for custom conditions 74 conTenTs in deTail xi