The Bumper is located on the back of the robot, and it does exactly what the name implies. When the robot bumps into something it will provide an input to the robot.
Understanding "DURATION" the term duration is used in robot coding used to tell the robot how long to do something.
These are three examples of code blocks that tell the robot how long to do something.
The first is an amount of time. (wait 1 seconds)
The second uses a sensor input like we saw with the TouchLED code. (wait until ______ )
The last one gives the duration in the block, this block tells the robot to move 200 mm. 200 mm is the duration. ( drive forward for 200 mm)
Using duration for moving the robot.
The first block has the duration in the block and does not need an additional block to provide a duration.
The second block only works if additional blocks are added.
LEARNING ACTIVITY
Create this program then download it to the robot to test it.
When the robot starts moving place your hand behind it a let the robot "bump" into your hand.
TEST YOUR SKILLS
Add visual indicators to the above program using the TouchLED
Show the completed program to Mr. Agabiti, then Save as Lesson 10
Show the completed program to your instructor.
Save the finished program. (lesson10.iqblocks)
Then Save_As to make a copy (lesson11.iqblocks)
Make sure the files are in the shared google drive folder.
If you are using the web version of the app, click on the name of the file in the top center of the screen, then use File and Save To Your Device