wokwi-servo Reference
A standard Micro Servo Motor
Pin names
| Name | Description |
|---|---|
| PWM | Servo control signal |
| V+ | Positive voltage (5V) |
| GND | Ground |
Attributes
| Name | Description | Default value |
|---|---|---|
| horn | Horn type: "single", "double" or "cross" | "single" |
| hornColor | The color of the servo's horn | "#ccc" |
Examples
| Result | Attrs |
|---|---|
{ "horn": "single" } | |
{ "hornColor": "#000088" } | |
{ "horn": "double" } | |
{ "horn": "cross" } |
Simulator examples
- Sweep
- ESP32 Servo Sweep
- Knob
- Arduino Nano controlling 1 servo with two pushbuttons
- Arduino Uno controlling 5 servos
- Arduino Mega animating 32 servos