how to transmit data serially from Raspberry Pi to Arduino through USB cable?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 25 de Dic. de 2018
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/
Respuestas (0)
Ver también
Categorías
Más información sobre Run on Target Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!