MatLab and Arduino readVoltage Function

조회 수: 2 (최근 30일)
Darryl
Darryl 2014년 9월 16일
편집: Darryl 2014년 9월 16일
I've not long switched from 2013a to 2014a, so installing the 3rd party tools was a completely different process than it was when setting the Arduino up with 2013a. Also the functions have changed in that you have to pass the Arduino object into each function instead of dot notation. Also the names of the functions have changed. Before, I used to read an anolog pin e.g. ard.analogRead(0). Now we have readVoltage which is the opposite of what I want to capture. Can the former still be used, or will I have to do this in order to read in bits:
readVoltage(ard, 0) * 1023 / 5;
I've read the pdf that comes with the installation, but theres no mention of an analogRead function.

답변 (0개)

카테고리

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