WOLFRAM SYSTEM MODELER

Servo

Controls a servo motor attached to the specified pin

Wolfram Language

In[1]:=
SystemModel["ModelPlug.Pins.Servo"]
Out[1]:=

Information

Controls a servo motor attached to the specified pin. This component uses the 'Servo' library of Arduino.

Signal Range: By default, the range goes from 0 to 1, which corresponds to 0 to 180 degrees. If you want to input values in radians, you can change the parameter 'InputUnit' from 'Degrees' to 'Radians'.

If your servo does not work correctly with the default settings, you can set the parameters 'MinPulse' and 'MaxPulse'. To get more information on how to configure a servo, you can check the documentation of the Servo library, http://arduino.cc/en/reference/servo.

Parameters (4)

Pin

Value: 0

Type: Integer

Description: Pin number of the servo

InputUnit

Value: Internal.Types.ServoUnit.None

Type: ServoUnit

Description: if None (Default) the servo receives a signal between 0 and 1. If Degrees the control signal is from 0 to 180. If Radians the signal is from 0 to Pi.

MinPulse

Value: 544

Type: Integer

Description: The pulse width, in microseconds, corresponding to the minimum (0-degree) angle on the servo.

MaxPulse

Value: 2400

Type: Integer

Description: The pulse width, in microseconds, corresponding to the maximum (180-degree) angle on the servo.

Connectors (2)

u

Type: RealInput

Description: 'input Real' as connector

pinConnector

Type: PinConnector

Used in Examples (1)

MoveServo

ModelPlug.Examples

Using servos