How to read DHT22 sensor data in Matlab?

4 ビュー (過去 30 日間)
Aiman Hazman
Aiman Hazman 2018 年 7 月 28 日
コメント済み: Debal Goswami 2021 年 5 月 16 日
I have DHT22 Temperature and Humidity sensor connected to Arduino Mega 2560. I able to gain the data in serial monitor of Arduino IDE. However, I wanted to the data to be imported to the Fuzzy Logic Controller in MatLAB. As far as I know, I need to use simulink to import the data to the MatLAB. But, how do I differentiate the data of the "Temperature" and "Humidity" that came out from DHT22 sensor and send it to the simulink. I need help.
  2 件のコメント
HAYAME AITMALEK
HAYAME AITMALEK 2021 年 4 月 28 日
hello aiman I have a problem like yours. Have you found the solution? Can you help me plaise?
Debal Goswami
Debal Goswami 2021 年 5 月 16 日
Since DHT22 is a digital sensor, can someone tell me how to read temperature data from the sensor and transfer it to simulink and feed into a PID controller block. A code will be even more helpful.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeFuzzy Logic in Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by