How can I change the resolution of ''Arduino 2'' from 10 to 12 bit using Matlab?

조회 수: 6 (최근 30일)
In Arduino IDE I use the following command: analogReadResolution(12). Does an equivalent one exist on Matlab?

채택된 답변

Madhu Govindarajan
Madhu Govindarajan 2018년 8월 29일
As of now there is no equivalent from MATLAB support package for Arduino. Here is what I found out for Simulink https://www.mathworks.com/matlabcentral/answers/159964-arduino-due-and-simulink-voltage-resolution
  댓글 수: 4
Viviana Maria Genua
Viviana Maria Genua 2018년 8월 30일
Ok, thanks. So the only way is to write the code on Arduino IDE to have a better resolution. But If I want to read datas on matlab, it means that what I do on matlab is overwritten on the board?
Madhu Govindarajan
Madhu Govindarajan 2018년 8월 30일
Yes that is correct. When you work with the MATLAB Support package for Arduino, it downloads a new sketch that overwrites the current sketch on Arduino. You could try other workarounds like serial communication with MATLAB and Arduino having its own sketch, but they are all just workarounds.

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

추가 답변 (0개)

카테고리

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