모터 캐리어
모터 캐리어에 연결된 모터 제어
MKR Motor Carrier 또는 Nano Motor Carrier에서 2개의 인코더 입력을 사용하여 폐루프 제어 방식으로 서보, DC 모터의 M1과 M2를 제어합니다. 모터 캐리어 함수를 사용하기 전에 arduino
객체를 만듭니다. 자세한 내용은 Connect to Arduino Hardware 항목을 참조하십시오.
함수
모터 캐리어
motorCarrier | Connection to Arduino MKR Motor Carrier or Nano Motor Carrier (R2020b 이후) |
DC 모터
PID 모터
pidMotor | Connection to motors in closed-loop PID control on Arduino MKR Motor Carrier or Nano Motor Carrier (R2020a 이후) |
readAngularPosition | Read angular position of DC Motor in closed-loop control (R2020a 이후) |
readSpeed | Read current rotational speed of DC Motor in closed loop control (R2020a 이후) |
writeAngularPosition | Rotate DC motor by specified angle in closed loop position control (R2020a 이후) |
writeSpeed | Write speed of PID motor (R2020a 이후) |
회전 인코더
rotaryEncoder | Connection to rotary encoder on Arduino MKR Motor Carrier or Nano Motor Carrier (R2020a 이후) |
readCount | Read current count value from encoder connected to MKR Motor Carrier or Nano Motor Carrier (R2020a 이후) |
readSpeed | Read current rotational speed of motor from rotary encoder (R2020a 이후) |
resetCount | Set encoder count value to zero or specified value (R2020a 이후) |
서보모터
servo | Connection to servo motor on Arduino MKR Motor Carrier or Nano Motor Carrier (R2020a 이후) |
writePosition | Write position of servo motor connected to MKR Motor Carrier or Nano Motor Carrier (R2020a 이후) |
도움말 항목
- Using Arduino Engineering Kit Rev 2 with Pre-Configured Projects in Support Package
Learn how to use Arduino® Engineering Kit Rev 2 with the support package.
추천 예제
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)