
Signal Processing in Simulink
2 ビュー (過去 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 で Modeling についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!