Henglos IO
Built-in packages

Servo

Drives a hobby servo on a PWM-capable pin — To Angle for a positional servo (SG90-style, holds a 0-180° angle), Rotate for a continuous-rotation (360°) one (spins at a speed and direction), Release to cut the signal.

Drives a hobby servo on a PWM-capable pin — To Angle for a positional servo (SG90-style, holds a 0-180° angle), Rotate for a continuous-rotation (360°) one (spins at a speed and direction), Release to cut the signal.

@henglosio/component-servov1.0.0platform ^1.0.0
NodeKindWhat it does
To AngleActionMoves a positional servo to a fixed angle (0-180°) and holds it there.
RotateActionSpins a continuous-rotation (360°) servo at the given speed and direction.
ReleaseActionCuts the signal: a positional servo stops holding its angle, a continuous one stops completely.

Actions

To Angle

Moves a positional servo to a fixed angle (0-180°) and holds it there.

Settings

SettingTypeDefaultWhat it's for
Signal PinPin (PWM)—Board pin the servo's signal wire is connected to.
AngleNumber90Target angle, in degrees (0-180). Values outside the range are clamped.
Min PulseNumber500Advanced. Pulse width at 0°, in microseconds. Raise it if the servo strains at 0°.
Max PulseNumber2500Advanced. Pulse width at 180°, in microseconds. Lower it if the servo strains at 180°.

Publishes

OutputTypeWhat it is
angleintThe clamped angle the servo was moved to, in degrees (0-180).

Rotate

Spins a continuous-rotation (360°) servo at the given speed and direction. Speed 0 stops it. The signal is held until the next action on the same pin.

Settings

SettingTypeDefaultWhat it's for
Signal PinPin (PWM)—Board pin the servo's signal wire is connected to.
SpeedNumber50Rotation speed, 0 (stopped) to 100 (max). Values outside the range are clamped.
DirectionOne of: Clockwise, CounterclockwiseClockwiseRotation direction.
Stop PulseNumber1500Advanced. Pulse width where this servo stands still, in microseconds. Nudge it (e.g. 1480 or 1520) if it creeps at Speed 0.
RangeNumber500Advanced. Microseconds from Stop Pulse to full speed.

Publishes

OutputTypeWhat it is
speedintThe clamped speed the servo was set to, 0-100.

Release

Cuts the signal: a positional servo stops holding its angle, a continuous one stops completely.

Settings

SettingTypeDefaultWhat it's for
Signal PinPin (PWM)—Board pin the servo's signal wire is connected to.

On this page