Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Prototype Summer School 2016: Program an MBot robot to turn
1. Prototype Summer School
Programming the MBot to turn
Turn for 5 seconds,
then stop.
Turn for 5 seconds,
then repeat.
How long to turn for
Sets speed of
motors
left (M1) = Slow forwards
right (M2) = Fast forwards
Tests if it is within the
first 5 seconds
Tests if 5
seconds has
passed
Sets speed of
motors to 0
Resets the timer