
Signal Processing in Simulink
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello. I have 3 HC-SR04 Ultrasonic Sensors connected to Arduino Uno. I transferred data from one Sensor using Serial communication to Simulink and IDE to transfer code to Arduino Uno. The Code converts the data in Binary, so that the block can read it and i found it the only method that works.
Now i want to read data from 3 sensors in Simulink through Arduino Uno simulatenously. As i cannot use any Code and need to do it with Simulink Block, could you please help me?
My projects only runs Simulink Blocks, otherwise i think it would be easier to seperate Strings and just read with Matlab code.
Thankyou.
댓글 수: 0
답변 (1개)
Raj
2023년 9월 15일
Hi Aashish,
As per my understanding I presume you are unable to connect and read data from 3 sensors simultaneously in Simulink. For this you can put 3 Digital Input block as shown.

You can later add a MUX block from Library Browser if you intend to combine these digital output data.
You can also add a MATLAB Function block. By using a Function block, you can perform operations such as filtering, scaling, thresholding, or any other signal processing tasks on the digital input signal before it is sent to the output block.
Refer to the documentation below from MathWorks about Simulink Support Package for Arduino Hardware
I hope this resolves the query you had!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Arduino Hardware에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!