Using an Arduino and Raspberry Pi Pico in tandem w/ MatLab
조회 수: 38 (최근 30일)
이전 댓글 표시
I am working on a group project that involves the use of stepper motors and image processing via an affixed camera module. We have two Arduino Mega 2560 Rev3 microcontrollers, each corresponding to a NEMA 23 stepper motor, but only a Raspberry Pi Pico to control the camera module due to budgetary constraints and due to a previous version of the project using Raspberry Pi for all components. Would it be possible to induce simultaneous control of both microcontroller models in a MatLab script, and if so, what toolboxes would be the optimal choices to go about doing so?
댓글 수: 0
답변 (1개)
Sylvain
2023년 3월 16일
편집: Sylvain
2023년 3월 16일
As far as I understand your question, yes, you can simultaneously control both Arduino Mega 2560 Rev3, using the Arduino Support Package for MATLAB (https://uk.mathworks.com/hardware-support/arduino-matlab.html)
As you can see this does not suppor the Raspberry Pi Pico.
in your script, you would define 2 arduino devices:
a1 = arduino('COM1');
a2 = arduino('COM2');
and work separately on each object.
if you wish to use the RPico, you would need to program it on its own and etablish a communication for example with your PC using a serial object. (I might be wrong, but that would be the idea).
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!