A Servo Motor is a self-contained closed-loop actuator incorporating a DC motor, reduction gearbox, potentiometer position sensor, and control circuit board. It moves its output shaft to a precise angle based on incoming control pulses.
1. Hardware Specifications & Servo Types
- Operating Voltage: 4.8V to 6.0V.
- Control Signal: 50 Hz PWM frame ( total period).
- Servo Variants:
- Standard 180° Servo (SG90, MG995, MG996R): Output horn rotates between 0° and 180°. This is what this component and topic cover.
- Continuous Rotation 360° Servo: A genuinely separate simulated component (
servo_continuous, not covered by this topic) — potentiometer feedback is disconnected on the real hardware, and pulse width controls rotation speed/direction instead of a fixed angle.
- Pin Configuration:
- GND (Brown / Black): Ground.
- VCC (Red): 5V Power.
- SIG (Orange / Yellow): PWM Signal input pin.
2. How it Works (Pulse Width Modulation & 50Hz Timings)
Standard RC servos decode high pulse durations () within a 20ms frame. This component simulates the same pulse-width range the real Arduino Servo.h library defaults to (544–2400µs), not the simplified 1.0–2.0ms figure some tutorials use:
- angle.
- angle (neutral / center).
- angle.
3. Component Properties (Property Inspector)
- Shaft Angle (
angle): Position of servo horn in degrees.- Default:
90° - Range:
0° to180°
- Default:
[!NOTE] There's no "Continuous Mode" property on this component — 360° continuous-rotation servos are a completely separate simulated part (
servo_continuous), not a toggle on this one. Its own Blockly blocks (Section 4) live in this same extension, but drive that other component.

