intermediate programming lesson by: droids robotics move distance my block (move_inches)
TRANSCRIPT
![Page 1: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/1.jpg)
INTERMEDIATE PROGRAMMING
LESSON
By: Droids Robotics
Move Distance My Block (Move_Inches)
![Page 2: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/2.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 2
LESSON OBJECTIVES
1. Create a useful My Block
2. Learn why creating a My Block that takes measurements made with a ruler can be useful
3. Practice creating a My Block with Inputs and Outputs
![Page 3: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/3.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015)
WHY IS A MOVE DISTANCE MY BLOCK A GOOD IDEA• Built-in move blocks will not take inputs
(values) in centimeters or inches.
• Much easier to measure distance with a ruler than degrees or rotations.
• If you change your robot design to have bigger or smaller wheels late in the season you don’t have to re-measure every movement of your robot
• Instead of changing distances in every single program you wrote, just go into your cool Move Distance Block and change the value for how many inches/cm one motor rotation would take.
3
![Page 4: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/4.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 4
MY BLOCKS WITH INPUTS AND OUTPUTS (MOVE INCHES)• The next few slides and the
corresponding code file teaches you how to make a specific Move Distance My Block called Move Inches.
• You can easily convert the code to use CM.
• In the code file, start at PHASE 1.
• There is also a corresponding worksheet as well as an automatic calculator that will help you in this lesson.
![Page 5: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/5.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 5
PHASE 1: MEASURE WHEELS
![Page 6: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/6.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 6
PHASE 2: MAKING AN INCHES TO DEGREES MY BLOCK
![Page 7: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/7.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 7
PHASE 3: USING THE INCHES TO DEGREES MY BLOCK
![Page 8: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/8.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 8
A LOOK INSIDE INCHES TO DEGREES
![Page 9: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/9.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 9
PHASE 4: ADDING INPUTS
![Page 10: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/10.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 10
PHASE 5: COMPLETED MOVE INCHES MY BLOCK
![Page 11: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/11.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015) 11
A LOOK INSIDE MOVE INCHES
![Page 12: INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)](https://reader036.vdocument.in/reader036/viewer/2022062517/56649ed05503460f94bde43a/html5/thumbnails/12.jpg)
© 2015, EV3Lessons.com, (last edit 2/28/2015)
CREDITS
This tutorial was created by Sanjay Seshan and Arvind Seshan from Droids Robotics.
More lessons are available at www.ev3lessons.com
Author’s Email: [email protected]
12
This work is licensed under a Creative Commons Attribution-
NonCommercial-ShareAlike 4.0 International License.