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

1 次查看(过去 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
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