From Test-Scratch-Wiki
(Redirected from Eng:Motor On for () Secs (block))
Turn Motor On for () Secs | |
![]() | |
Category | LEGO WeDo |
Type | Stack |
Introduced in | 1.4 |
The Turn Motor On for () Secs block is a LEGO WeDo block and a Stack block. The block activates a LEGO WeDo motor for the specified amount of seconds.
Prior to Scratch 2.0, this block was named Motor On for () Secs.
Example Uses
![]() |
Please expand this article or section. You can help by adding more information if you are an editor. More information might be found in a section of the talk page. |
Instead of continuously turning on the motor, waiting a certain amount of seconds and turning it off, this block can be used.
Some common uses for the Turn Motor On for () Secs block:
- Temporary motor movement
when gf clicked turn motor on for (2) secs
- Controlling how far vehicles move
when gf clicked turn motor on for (0.5) secs
- Keeping a fan on for a limited amount of time
when gf clicked turn motor on for (60) secs
Workaround
- Main article: List of Block Workarounds
The block can be replicated with the following code:
turn motor on wait (number) secs turn motor off