伺服电机
读取和写入连接到 Arduino® 硬件的伺服电机
在使用伺服函数之前,请使用 arduino
创建一个 Arduino 对象。有关详细信息,请参阅Connect to Arduino Hardware。
函数
servo | Connection to servo motor on Arduino or ESP32 hardware |
readPosition | Read servo motor position |
writePosition | Write position of servo motor |
主题
- Rotate a Servo Motor
Learn how to rotate a servo motor using MATLAB® commands.
- Control Servo Motors
This example shows how to use the MATLAB® Support Package for Arduino® Hardware to control a hobby servo motor.
- Servo Motors
Learn about servo motors.