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 rst 5 seconds Tests if 5 seconds has passed Sets speed of motors to 0 Resets the timer

Upload: neil-winterburn

Post on 21-Mar-2017

43 views

Category:

Education


3 download

TRANSCRIPT

Page 1: Prototype Summer School 2016: Program an MBot robot to turn

Prototype Summer SchoolProgramming the MBot to turn

Turn for 5 seconds,then stop.

Turn for 5 seconds,then repeat.

How long to turn for

Sets speed of motorsleft (M1) = Slow forwardsright (M2) = Fast forwards

Tests if it is within thefirst 5 seconds

Tests if 5seconds haspassed

Sets speed of motors to 0

Resets the timer