Turn a motor at a constant speed and stop it with a delay.

This tutorial is part of the Nairda learning path. You can build it step by step inside the app, which checks every block you place before letting you move on.


The steps

  1. We create a motor called wheel on pins 2, 3 and 5.
  2. We add a While loop, which repeats forever.
  3. Inside the loop we set the motor to speed 100.
  4. Behind it a delay of 2000, so it spins for two seconds.
  5. Another motor block, now with speed 0, which stops it.
  6. And another delay of 2000, so the motor rests.

When you finish, the app takes you straight to the next tutorial in the path.

Build it in Nairda