How can I connect raspberry pi with arduino via USB port using simulink?

조회 수: 8 (최근 30일)
takamitsu hatakeyama
takamitsu hatakeyama 2020년 1월 22일
댓글: Kiran Kumar 2024년 10월 26일 7:16
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.

답변 (2개)

Prasanth Sunkara
Prasanth Sunkara 2020년 1월 23일
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
Walter Roberson
Walter Roberson 2024년 10월 26일 5:45
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
Kiran Kumar 2024년 10월 26일 7:16
In Simulink I am using serial receive block so which port in the block i should select for USB connection?

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


takamitsu hatakeyama
takamitsu hatakeyama 2020년 1월 25일
Hi Prasanth
Thanks for your reply.
I have already fix the problem.
The key is doing below prosedure.
Thanks anyway.
Takamitsu

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by