WOLFRAM SYSTEM MODELER
ServoControls a servo motor attached to the specified pin |
SystemModel["ModelPlug.Pins.Servo"]
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.
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. |
u |
Type: RealInput Description: 'input Real' as connector |
|
---|---|---|
pinConnector |
Type: PinConnector |
ModelPlug.Examples Using servos |