I am trying to use an Arduino Nano 3.0 with MATLAB. I get the following error from trace:
System wide configuration file is
"C:\ProgramData\MATLAB\SupportPackages\R2019b\3P.instrset\arduinoide.instrset\hardware\tools\avr/etc/avrdude.conf"
Using Port : COM5
Using Programmer : arduino
Overriding Baud Rate : 115200
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x7e
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x7e
avrdude done. Thank you.
An error occurred while uploading the sketch
I can however, use the Arduino IDE to upload code and get serial info. Note that the Nano is probably a clone and shows as FTDI USB Serial in the COM port.

 채택된 답변

Swapnil Sayan Saha
Swapnil Sayan Saha 2019년 12월 3일

10 개 추천

Ok so I solved this in a weird way. Instead of specifying that the board is a Nano, I specified the board as a Pro Mini 328.

댓글 수: 11

Jason Wang
Jason Wang 2020년 1월 28일
Where can you find that option?
a = arduino('COM5', 'ProMini328_5V', 'Libraries', 'I2C'); %check device port from device manager
Jiayue Liang
Jiayue Liang 2020년 8월 15일
Thank you! I met the same problem. It really help me out!
It was really help and worked properly.
Thank you so much Swapnil Sayan Saha!
@Jason Wang
Run
arduinosetup
In "choose board" select 'ProMini328_5V'. Then complete the setup.
You can now define the arduino object as:
myboard = arduino('COM3', 'ProMini328_5v');% choose the right COM port
It looks strange, but it works for me also. Thanks!
Anchit Bhushan
Anchit Bhushan 2022년 3월 2일
Thanks Swapnil, worked for me too
Dave
Dave 2023년 9월 16일
Many thanks.....worked for me :O)
chheang
chheang 2023년 9월 27일
that's work me (ProMini328_5V)
Aravind
Aravind 2023년 12월 15일
thank you it works
Wildan Surya
Wildan Surya 2025년 2월 13일
can u use it normaly for your project?

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

제품

릴리스

R2019b

태그

Community Treasure Hunt

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

Start Hunting!

Translated by