Can't change baude rate using Arduino Nano3.0

조회 수: 1 (최근 30일)
Ethan Recalde Jaramillo
Ethan Recalde Jaramillo 2020년 4월 10일
답변: Arun Kumar 2020년 4월 13일
Hi
I want to use an arduino nano 3.0, I download the Supported Package for Arduino and i found the main problem is the CH340 chip that mi arduino uses. It chip cannot handle baudrate greater than 230400 (matlab uses 921600), so I have to change the baude rate less than this value.
I found two ways to do it, but unfortunately none works.
a) find in the path C:\MATLAB\SupportPackages\R2015a\arduinoio\toolbox\matlab\hardware\supportpackages\arduinoio\+arduinoio\+internal the field calls boards.xml and change the value of the baude rate, but I haven't this file in my download Packag
b) Change de baude rate using this comma
>> ccodertarget.arduinobase.registry.setBaudRate(gcs)
But I cannot understand how can i use it. Because if I set this command in my terminal (MATLAB) and errors appears: Unable to resolve the name codertarget.arduainobase.registry.setBaudRate
I read the information there:

답변 (1개)

Arun Kumar
Arun Kumar 2020년 4월 13일
Hi Ethan,
The api:
codertarget.arduinobase.registry.setBaudRate(gcs)
should work fine as mentioned in the following answer:
There's a type in the command that you typed.
Please copy and paste the above command.
Thanks,
Arun

카테고리

Help CenterFile 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!

Translated by