Move a servo between two positions using the Servo block and 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 servo called arm on pin 9.
  2. We add a While loop, which repeats forever.
  3. Inside the loop we drop the servo, which starts at position 90.
  4. Behind it we put a delay of 1000 milliseconds.
  5. We add another Servo block and send it to position 180.
  6. And another delay of 1000, to give it time to get there.

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

Build it in Nairda