Arduino stepper motor control with Simulink.
조회 수: 2 (최근 30일)
이전 댓글 표시
I am trying to control a stepper motor using a Simulink model with Matlab and Arduino.
I am using a stepper motor driver board ULN2003APG. I have uploaded adioes.pde file to the Arduino board. I have installed the Arduino Support Package for Matlab and I am trying to run the Simulink stepper_sim.mdl example inside the support package.
Erorr:
The corresponding 'msfun_arduino_io_setup.tlc' file for the MATLAB S-function 'msfun_arduino_io_setup' in block 'stepper_sim/Arduino IO Setup' must be located in the current working directory, the MATLAB S-function directory 'C:\Users\Laptop\Desktop\IV Курс VIII Семестър\Дипломна\Matlab Arduino Library\ArduinoIO\ArduinoIO\simulink', or the directory 'C:\Users\Laptop\Desktop\IV Курс VIII Семестър\Дипломна\Matlab Arduino Library\ArduinoIO\ArduinoIO\simulink\tlc_c'
Is it some code error or is it just that i can't control a stepper motor with such a motor driver board ?
댓글 수: 1
Joao da Silva
2015년 12월 8일
I have today the same problem. Aparently for matlablab 2013b there is a bug for to use arduino stepper motor. I use exactly the same chineese hardware.What matlab version do you use?You need also, choose motor_v2.pde and upload to arduino IDE. After, see what USB port yor arduino board is conected.Then, by matlab prompt, prompt a=arduino('COMX') and wait ... nI don't do it because there is a bug for matlab2013b
답변 (0개)
커뮤니티
더 많은 답변 보기: Power Electronics Community
참고 항목
카테고리
Help Center 및 File Exchange에서 Device Driver Blocks에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!