Raspberry Pi read GPIO signals in Simulink

조회 수: 2 (최근 30일)
C H
C H . 2017년 8월 16일
댓글: Riccardo Minati . 2019년 2월 23일
Hi,
I wanted to read the signals coming from a DTH11 or DTH22 sensor, which is connected to my RasPi via GPIO. Do I have to install the sensor-library first to get plausible values in simulinks "GPIO read"?
Thanks, Christoph
  댓글 수: 1
C H
C H 2017년 8월 23일
nobody a idea?

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

답변 (1개)

Gayatri Menon
Gayatri Menon 2017년 8월 23일
Hey, DHT22 or DHT11 sensor signal is 40bits. Using just the GPIO Read block won't suffice. You can consider creating a Device Driver block in Simulink for the same. The following link will help you create Driver block: https://www.mathworks.com/help/supportpkg/raspberrypi/device-driver-blocks.html
Hope that helps!
  댓글 수: 1
Riccardo Minati
Riccardo Minati 2019년 2월 23일
Why using GPIO Read block won't work?

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

카테고리

Help CenterFile Exchange에서 Simulink Support Package for Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by