Servo Write
Set servo motor to specified angle
Add-On Required: This feature requires the Simulink Support Package for Arduino Hardware add-on.
Libraries:
Simulink Support Package for Arduino Hardware /
Arduino Motor Carrier
Description
The Servo Write block sets the shaft angle of a servo motor connected
to an MKR Motor Carrier. To rotate the motor shaft, provide an input value ranging
between 0
degrees and 180
degrees.
If you simulate a model that contains the Servo Write block without connecting the hardware, the block does nothing. For more information, see Block Produces Zeros or Does Nothing in Simulation.
Supported Hardware
You can use the Servo Write block only with MKR and Nano 33 IoT boards.
Ports
Input
Parameters
Version History
Introduced in R2019a