05 Mission Instructions

4. Code: Doing the Wave

Before we try to create the interactive part of our code, spend some time investigating the commands related to the servo itself. A program like this can help you understand what it means to center your servo, rotate it 90*, and release it.  


Based on what you learn during these investigations, it might mean that you adjust where or how your servo is mounted on your robot.


Once you understand the three basic commands for a servo, design a program that most closely matches your planned behavior from Step 2 above. You’ll need to fine-tune the degrees that your servo rotates as well as any wait time in between movements. 

Here are two versions of an example code that both do the same thing. One shows off using loops and the other just lists the servo turns one by one.