Turn Motor Off
turn motor off::wedo
Category LEGO Education WeDo 2.0
Type Stack
Introduced in 1.4

The Turn () Off block is a LEGO Education WeDo 2.0 block and a stack block. The block stops a LEGO WeDo motor.

This block was titled motor off in Scratch 1.4, before being renamed to turn motor off in Scratch 2.0, then to turn () off in Scratch 3.0.

Example Uses

Some example uses are:

  • Stopping a vehicle

when green flag clicked
set [gas tank v] to [full]
wait until < (gas tank) = [empty] >
turn motor off :: wedo
say [Oh no! My car's all out of gas!] for (5) seconds

when I receive [Rollercoaster v]
reset timer
repeat until< (timer) > [60] >
wait (3) seconds
say (item [random v] of [Rollercoaster sayings v]
change [power v] by (-5)
set motor power to (power) :: wedo
turn motor off :: wedo
say [That was a fun ride!]
  • Stopping a fan

when I receive [stop fan v]
say [I'm cold. I'm going to turn off the fan.]
glide (1) secs to x:([x position v] of [Fan v]) y:([y position v] of [Fan v]
turn motor off :: wedo

  • Stopping gears, therefore stopping a machine

when I receive [gear clog v]
set [brightness v] effect to (-30)
turn motor off :: wedo


Main article: List of Block Workarounds

This block can be replicated with the following code:

turn motor on for (0) seconds :: wedo

Otherwise, this can be used:

set motor power (0) :: wedo

See Also