Skip to main content

ELECFREAKS 9g 360 Degrees Building Blocks Servo

Specifications

TermSpecification
SKUEF09086
Environmental conditions for use
Operating voltage4.8~6V
Operating temperature-10℃~50℃
Mechanical properties
Mechanical limit angle360°
weight9 ± 1g
Reduction ratio1/266
Gear virtual position≤1°
Control features
Operating Angle360°
Optional directionClockwise
Movable angle range≈360°
Item4.8V Test6.0V Test
No-load speed70±5r/min90±5r/min
No-load current70±20mA90±20mA
Stop torque0.5±0.2 kg-cm0.7±0.2kg-cm
Stop current0.8±0.1A0.9±0.1A
Standby current7±1mA7±1 mA
No-load life>50000 次>40000 次
Temperature drift (ambient temperature 25°C)≤1°≤1°

Hardware Hookup

Here we take the wukong expansion board as an example.

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

Add a dedicated extension library

Click "Advanced" in MakeCode's code drawer to see 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 web page.

### 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.