Skip to main content

360 Degrees Digital Servo

Specifications

ItemSpecification
SKUEF09081
Environmental conditions for use
Operating voltage3.3~5V
Operating temperature-25°C~70°C
Mechanical properties
Mechanical limit angle360°
weight10g±5%
Item3.3V Test5.0V Test
Quiescent Current5mA5mA
No-load speed76RPM120RPM
No-load current90mA90mA
Stall torque1.3kg.cm1.6kg.cm
Stall current400mA±10%750mA±10%

Hardware connection

Here we take the Wukong expansion board as an example.

Connect the servo to the S1 port of the expansion board.

Add a dedicated extension library

Click "Advanced" in the code drawer of MakeCode to view more code options.

In order to program the Nezha expansion board, we need to add an extension library. Find "Extension" at the bottom of the code drawer and click it. A dialog box will pop up, search for "Nezha", and then click to download this code library.

Note: If you get a prompt saying that some code libraries will be deleted due to incompatibility, you can continue according to the prompt, or create a new project in the project menu bar.

Write the program as shown

Reference Program

Please refer to the program link: https://makecode.microbit.org/_ewhiK2hvfRX4

You can also download the program directly from the following website.

### Result

When button A is pressed, the servo rotates at full speed, and when button B is pressed, the servo stops rotating.

Notes on servo

When using a servo, the servo angle should be adjusted first, and the servo angle should be adjusted according to the case requirements for verification. After the verification is completed, the corresponding structural parts should be installed to prevent the servo from being blocked and burning.
Note: When using a servo, you should pay attention to whether the servo is blocked. If the servo is blocked, there may be a risk of burning.
Note: When using a servo, you should pay attention to whether the servo rotation action needs to be delayed. The servo rotation takes time to execute. If a new servo command appears during the servo execution command, it will overwrite the previous servo rotation command, resulting in the servo not rotating in place.