how to transmit data serially from Raspberry Pi to Arduino through USB cable?

조회 수: 4 (최근 30일)
Omkar Bhanap
Omkar Bhanap 2018년 12월 15일
댓글: Omkar Bhanap 2018년 12월 25일
Basically, my objective is to: Take a snapshot from an USB camera connected to Raspberry Pi and detect a particular object and followed by some calculations, serially transmit a 1x3 vector to Arduino Uno through USB cable.
Now , I created two models, one is to serially transmit the data from Raspberry Pi, while the other is used to serially receive the data and to flag the led on/off. These models were deployed to their respective hardwares, but I was unable to get the results. Please help me to fix this problem. I have attached both the Simulink models with this question.
Also, do I need to connect the two boards ground and vcc pins(through voltage divider bridge) together for this?
  댓글 수: 8
Walter Roberson
Walter Roberson 2018년 12월 25일
The connection between the two cards would be a physical connection. Both of them are USB, but they are both probably USB slave not USB master. But you can do it if you have a device like is shown at https://www.instructables.com/id/Read-and-write-from-serial-port-with-Raspberry-Pi/
Omkar Bhanap
Omkar Bhanap 2018년 12월 25일
Thanks for the help. I followed the code generation training by Connel Sir. The last video tutorial on Hardware Implementation was really great. Just connected the two boards using USB cable, deployed the Simulink models and that's it.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by