Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up...
Transcript of Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up...
![Page 1: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/1.jpg)
ADVANCEDEV3PROGRAMMINGLESSON
RampingUpSpeedBySanjayandArvindSeshan
![Page 2: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/2.jpg)
ì Learnwhatrampupmeans
ì Learnhowandwhentouserampup
ì LearnhowtousetheTimerBlock
ì Prerequisites:DataWires,MyBlockswithInputs&Outputs
©2016EV3Lessons.com,Lastedit7/18/2016
LessonObjectives
![Page 3: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/3.jpg)
©2016EV3Lessons.com,Lastedit7/18/2016
WhyRampUp
• Rampingupspeedisveryhelpfulwhenrunningfast-pacedprograms
• Usually,iftherobotstartsupwithhighspeed,thentherewouldbeasmalljoltinthebeginning.Thejoltmaychangethepositionoftherobot.
• Withtherampup,itwouldstartupslowlyandincreasespeedovertime (seevideoontheright)
![Page 4: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/4.jpg)
ì Thetimerblockisusedtocounttime
ì ItisfoundintheYellow(sensortab)intheEV3Software.
ì Multipletimersareavailable(upto8timers)
ì Youcanusetheblocktoresetaspecifictimerbackto0seconds
ì Youcanusetheblocktooutputthetimesincereset…
ì IfyouareanFLLteam,youcanusetimerstotracktimeorfortherampupcodeinthislesson
©2016EV3Lessons.com,Lastedit7/18/2016
NewTool:TimerBlock
Timer#
Elapsedtimeforthattimer
![Page 5: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/5.jpg)
1.Resettimer
2.Inaloop,readthenumberofsecondspassedandmultiplythepowerby20.
3.Stillintheloop,taketheresultofthemultiplicationandconnectittothemoveblock.
4.RepeattheLoopfor5seconds
©2016EV3Lessons.com,Lastedit7/18/2016
RampUpin4EasySteps
![Page 6: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/6.jpg)
©2016EV3Lessons.com,Lastedit7/18/2016
BaseRampUp
CodebyMesaRoblesRobotworks.ModifiedbyDroidsRobotics
![Page 7: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/7.jpg)
©2016EV3Lessons.com,Lastedit7/18/2016
RampUpChallenge
Step1:Canyounowmakearampupprogramthattakes2inputs(totaldurationoframpupandhowmuchyouwantthemotortorampuppersecond)?CreateaMyBlock.
Step2:Rampupyourrobot,thenmoveuntilablackline.
![Page 8: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/8.jpg)
A. Highlightalltheblocks(withoutstopblock)thengotoMyBlockBuilder
B. Add2inputs:oneforhowquicklyyouwanttorampupandoneforandseconds
RefertotheMyBlockswithInputs&OutputslessonifyouneedhelpsettinguptheMyBlock
©2016EV3Lessons.com,Lastedit7/18/2016
MakingtheMyBlock
B
A
![Page 9: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/9.jpg)
©2016EV3Lessons.com,Lastedit7/18/2016
WiretheMyBlock
CodebyMesaRoblesRobotworks.ModifiedbyDroidsRobotics
howquicklyyouwanttorampup
Secondstorampup
Wirethe “Howquicklyyouwanttorampup” input totheMathBlockandtheSecondsinput totheMoveSteeringblock
![Page 10: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/10.jpg)
©2016EV3Lessons.com,Lastedit7/18/2016
ChallengeSolution
CodebyMesaRoblesRobotworks.ModifiedbyDroidsRobotics
![Page 11: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/11.jpg)
1. Whatisrampingup?Ans.Rampingupisstartingslowandgettinggraduallyfaster.
2. Whyshouldyoubother?Ans.Rampingupcanreducesuddenjerkinrobotmovement.
©2016EV3Lessons.com,Lastedit7/18/2016
DiscussionGuide
![Page 12: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/12.jpg)
ì Thinkaboutwhatelseyoumightbeabletouseatimerblockfor.
©2016EV3Lessons.com,Lastedit7/18/2016
NextSteps
![Page 13: Ramping Up Speed - EV3 Lessonsev3lessons.com/en/ProgrammingLessons/advanced/RampUp.pdfWhy Ramp Up • Ramping up speed is very helpful when running fast-paced programs • Usually,](https://reader033.fdocuments.net/reader033/viewer/2022043019/5f3b71394d29fb42a7702a21/html5/thumbnails/13.jpg)
ì ThiscodeforthistutorialwascreatedbyMesaRoblesRobotworks ([email protected])
ì SanjayandArvindSeshan addedcontenttocomplementtheoriginallesson([email protected])
ì Morelessonsatwww.ev3lessons.com
©2016EV3Lessons.com,Lastedit7/18/2016
Credits
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.