Pin Error With Arduino Mega 2560

조회 수: 4 (최근 30일)
Randall
Randall 2012년 5월 22일
I have used the targetinstaller to enable Simulink support for the Arduino Mega 2560 board. I am running under WIndows 7 Ultimate (64 bit) and Matlab/Simulink 2012a.
When I try to specify a digital output of 22 I get an error that the Uno boards can only support up to 9 output pins. Since I am using a Mega 2560 I should be able to specify I/O pin addresses up to 53 or so. I have reinstalled the Mega 2560 targetinstaller but that had no effect.
Any suggestion?

채택된 답변

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012년 6월 13일
Hi Randall, The model might be configured to run on the Uno. To change this, in your model, select Tools > Run on Target Hardware > Options. In the Configuration Parameters dialog that opens, change the Target Hardware setting to Arduino Uno.
  댓글 수: 1
Randall
Randall 2012년 6월 14일
Hi Rolfe, Thanks for your response. I had also found this solution once I experimented with the options under tools a few hours after I posted the question. It would have helped for the pin error to mention to check this but it was not too hard to find.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Rolfe Dlugy-Hegwer
Rolfe Dlugy-Hegwer 2012년 6월 14일
Thanks for the suggestion, Randall. I've added a comment to the help topic for that block, and will recommend your enhancement of the error message to a developer.

카테고리

Help CenterFile Exchange에서 Arduino Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by