Set servo motor to specified angle
Simulink Support Package for Arduino Hardware / Arduino Motor Carrier
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.
You can use the Servo Write block only with MKR and Nano 33 IoT boards.