Turn Motor On
turn [motor v] on :: wedo
Category LEGO Education WeDo 2.0
Type Stack
Introduced in 1.4

The turn () on block is a stack block and a LEGO Education WeDo 2.0 block. The block activates a LEGO WeDo motor indefinitely, until it is manually turned off with the turn () off block or until a timer is added with the turn () on for () seconds block.

This block was titled "motor on" in Scratch 1.4, before being renamed to "turn motor on" in Scratch 2.0, then to its current name in Scratch 3.0.

Example Uses

Some common uses are:

  • Making a vehicle move forever
when green flag clicked
turn [motor v] on :: wedo
  • A fan that alternates whether it is on or off
when [space v] key pressed
turn [motor v] on :: wedo
wait until < not < key [space v] pressed? > >
wait until < key [space v] pressed? >
turn [motor v] off :: wedo
wait until < not < key [space v] pressed? > >
  • Continuously moving motors
when [space v] key pressed
turn [motor v] on :: wedo
wait until < not < key [space v] pressed? > >
turn [motor v] off :: wedo

See Also