Table of Contents

Adding a servo

Connecting a servo with alligator clips

You need:


To connect the servo:

Programming servos

You can program your servo with the following block.

Select the pin to which you connected your servo to (D5, D6 or D7), and set the angle to which you seek to rotate the servo. The range here needs to be between 0 and 180.

For example, to set the servo on three different positions (0; 90; 180) depending on which button was clicked, you could use the following code: