Release stepper motor connected to Adafruit Motor Shield
Connect to Arduino® hardware, and create an add-on connection to an Adafruit® Motor Shield.
a = arduino('COM4','Uno','Libraries','Adafruit/MotorShieldV2'); shield = addon(a,'Adafruit/MotorShieldV2');
Create a stepper motor connection to motor number
1 on the shield, with steps per revolution of 200 and an RPM of 10.
sm = stepper(shield,1,200,'RPM',10);
Rotate the motor 10 steps, and release it.
sm— Stepper motor connection
Stepper motor connection, specified as a stepper motor object,
created using the