Skip to main content

wokwi-servo Reference

A standard Micro Servo Motor

Pin names

NameDescription
PWMServo control signal
V+Positive voltage (5V)
GNDGround

Attributes

NameDescriptionDefault value
hornHorn type: "single", "double" or "cross""single"
hornColorThe color of the servo's horn"#ccc"

Examples

ResultAttrs
{ "horn": "single" }
{ "hornColor": "#000088" }
{ "horn": "double" }
{ "horn": "cross" }

Simulator examples

Tutorials