필터 지우기
필터 지우기

How can I simulate an ultrasonic sensor in combination with 4 MEMS microphones

조회 수: 5 (최근 30일)
Saud
Saud 2024년 3월 21일
댓글: Saud 2024년 3월 22일
An ultrasonic sensor is supposed to send sound waves to an object and the reflecting wave is supposed to receive the 4 MEMS microphones. The MEMS microphones should be classified in such a way that the constellation of microphones provides the best resolution.

답변 (1개)

Walter Roberson
Walter Roberson 2024년 3월 21일
Depending on the exact MEMS device, you will need to connect the MEMS to either an I2C or a digital input pin, of a device such as an Ardunino or Raspberry Pi.
In theory you could use a MATLAB function such as readDigitalPin to handle the reading of the sensor. In practice that interface is too slow, so you will need to create C / C++ code that runs on the Arduino or Raspberry Pi and handles the interface for you, and then relays the data to the MATLAB session. In practice you will need to buffer a number of samples from the microphones and transmit the buffer as a burst.
Depending on the sample rate you want to use, it might be a considerable struggle to get the data through an arduino serial to USB connection; you might need to switch to Raspberry Pi and use network (TCP or UDP) packets instead.
  댓글 수: 1
Saud
Saud 2024년 3월 22일
Thank you for your feedback. I actually want to simulate without Arduino or Raspberry Pi, just a virtual simulation. I don't know how to do that.

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

카테고리

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

제품


릴리스

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by