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

The Turn () On block is a LEGO WeDo Extension block and a Stack block. The block activates a LEGO WeDo motor.

Prior to Scratch 2.0, this block was named Motor On, and in Scratch 2.0, it was named Turn Motor On.

Example Uses

Not much can be done with the LEGO WeDo robotics kit if the motor cannot be turned on.

Some common uses for the Turn Motor On block:

  • Making a vehicle move forever

when gf clicked
turn [motor v] on

  • A fan that alternates whether it's on or off

when [space v] key pressed
turn [motor v] on
wait until <not<key [space v] pressed?>>
wait until <key [space v] pressed?>
turn [motor v] off
wait until <not<key [space v] pressed?>>

  • Continuously moving motors

when [space v] key pressed
turn [motor v] on
wait until <not <key [space v] pressed?>>
turn [motor v] off

See Also