How can I connect raspberry pi with arduino via USB port using simulink?
Show older comments
Hello
I'm takamitsu.
I want to connect raspberry pi with arduino to receve/send back information such as sensor deta/calculated input via usb port.
I think I should use serial write/read brocks,(In case of arduino , It's serial transmit/receive blocks ) but I have no idea about what prosidure should I take.
could you tell me about this?
Thanks.
Answers (2)
Prasanth Sunkara
on 23 Jan 2020
0 votes
Hi Takamitsu,
From what I understand, you are trying to utilize the Raspberry Pi's Serial communication for exchanging data between Pi and Arduino.
Similar to Arduino, we have Serial Read and Serial Write blocks.
I hope this information helps!
Thanks,
Prasanth
7 Comments
eben safagine karim
on 17 May 2020
and how to read serial in arduino plz response fast !!!!
Prasanth Sunkara
on 18 May 2020
Please refer to the documentation page for more information on other Simulink blocks for Arduino & Raspberry Pi.
Kiran Kumar
on 25 Oct 2024
I am connecting raspberry pi with arduino via USB port. So which port should I select in my arduino to receive data?
Walter Roberson
on 25 Oct 2024
The arduino only has a single USB port (unless optional additional USB have been connected to it.)
Kiran Kumar
on 26 Oct 2024
I understood. But In Simulink which Port should I select to receive data from RPI to Arduino?
Walter Roberson
on 26 Oct 2024
If you are using Windows, then open Device Manager, and look for USB ports. If you are fortunate, one of them will be explicitly labeled as being Arduino. If not, try the listed COM ports in turn.
Kiran Kumar
on 26 Oct 2024
In Simulink I am using serial receive block so which port in the block i should select for USB connection?
takamitsu hatakeyama
on 25 Jan 2020
0 votes
Categories
Find more on Arduino Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!