Issue with Simulink and Arduino Nano 33 IoT
조회 수: 15 (최근 30일)
이전 댓글 표시
I am writing to bring to your attention an issue I encountered while working with Simulink and Arduino Nano 33 IoT.
I have 8 AEK rev.2 boards, and as a teacher, I began working with one of them. While everything appears to be in order, I am facing difficulties running models on the board in Simulink IO mode. Specifically, the example provided at [ https://www.mathworks.com/help/sldrt/ug/sync-models-by-using-arduino-connected-io-board-example.html#d126e10613 works on my UNO but encounters an error on Nano 33 IoT. The error from Simulink is as follows:
Error: MATLAB System block 'sldrtex_arduino/Digital Output' error occurred when invoking 'setupImpl' method of 'codertarget.arduinobase.blocks.DigitalWrite'. The error was thrown from 'C:\ProgramData\MATLAB\SupportPackages\R2023b\toolbox\target\shared\devicedrivers\+matlabshared\+devicedrivers\+blocks\DigitalIO.p' at line 0 ... Caused by: Configuring Pin 13 as Digital Input/Output failed. Pin 13 is not a valid Digital Input/Output pin. Reconnect the hardware, provide a valid Digital Input/Output pin number for your hardware and try again. However, deploying and Start code for DC motors, servos, or Lion Battery monitoring has been successful. Additionally, the Monitor and Tune Simulink mode works well on Nano 33 IoT.
I would appreciate any recommendations on how to set up Matlab/Simulink to address this issue.
Thank you for your assistance.
댓글 수: 0
답변 (2개)
Walter Roberson
2023년 11월 18일
https://itp.nyu.edu/physcomp/introduction-to-the-nano-33-iot/ says that Pin 13 is Reset
You might possibly be having difficulty because of the difference between the physical pin numbers (such as 13) compared to Digital Pin numbers such as D13
참고 항목
카테고리
Help Center 및 File Exchange에서 Run on Target Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!