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

8 vues (au cours des 30 derniers jours)
takamitsu hatakeyama
takamitsu hatakeyama le 22 Jan 2020
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.

Réponses (2)

Prasanth Sunkara
Prasanth Sunkara le 23 Jan 2020
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
  2 commentaires
eben safagine karim
eben safagine karim le 17 Mai 2020
and how to read serial in arduino plz response fast !!!!
Prasanth Sunkara
Prasanth Sunkara le 18 Mai 2020
Please refer to the documentation page for more information on other Simulink blocks for Arduino & Raspberry Pi.

Connectez-vous pour commenter.


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

Catégories

En savoir plus sur Raspberry Pi Hardware dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by