How to use generated code from Matlab simulink in arduino ?
조회 수: 5 (최근 30일)
이전 댓글 표시
hi,
I have Arduino Due card, I use it with simulink to control 3 dc motors with 15Khz PWM frequency,because at 1Kh motors makes noise.
My acquisiton of encoders using interruptions works, and I can use PID controller, but the noise come back again when I add other sensors, or serial port to my SImulink programm.
Now, I am trying to convert my PId controller and encoder acquisition to C/c++ code to be able to use it with Arduino IDE.
I can deploy the program and get C code, but cant use it in arduino IDE (all times include files missing), so I am looking for example or link that show how to use C code generated from Matlab in arduino IDE.
Best regards,
댓글 수: 1
Vinayak
2022년 10월 19일
The following link provides an in depth explanation to a similar query,
https://www.mathworks.com/matlabcentral/answers/339523-compile-simulink-generated-code-in-arduino-ide
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!