Arduino Uno DHT22 libraries fail

조회 수: 1 (최근 30일)
Muhammad Hilmi Al Farid Ni'man
Muhammad Hilmi Al Farid Ni'man 2021년 1월 9일
i'm using matlab 2020a. i've followed every instruction on
but somehow everytime i run
a = arduino('COM3', 'Uno', 'Libraries', 'Adafruit/DHT22');
i got an error
"Cannot program board Uno (COM3). Please make sure the board is supported and the port and board type are correct. For more information, see Arduino Hardware Troubleshooting."
i tried to run listArduinoLibraries and the name of the libraries is there
is there anything that i can do with this?
  댓글 수: 2
MathWorks MATLAB Hardware Team
MathWorks MATLAB Hardware Team 2021년 1월 11일
Hi Muhammad Hilmi Al Farid Ni'man,
Can you please confirm if you have copied the Arduino library folders namely Adafruit_Sensor and DHT to the libraries folder whose path is given by
>> fullfile(arduinoio.IDERoot, 'portable', 'sketchbook', 'libraries')
NOTE: The links to these Arduino libraries' zip packages are available at the FEX page https://www.mathworks.com/matlabcentral/fileexchange/72441-dht22-add-on-library-for-arduino
See Step 1-3 of 'To install the Adafruit Sensor library:' and 'To install the Adafruit DHT library:' on the same page. You will be required to rename the unzipped archives to 'Adafruit_Sensor' and 'DHT' before adding them to the libraries folder.
Once these are added to the libraries, you should be able to create the arduino object.
Muhammad Hilmi Al Farid Ni'man
Muhammad Hilmi Al Farid Ni'man 2021년 1월 11일
thanks for answering, i already solve the problem. so my arduino libraries is located in hidden file so everytime i tried to install it, it fail. thanks

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for Arduino Hardware에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by