How to send data from matlab to arduino by Serial?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi guys, How can I send data from matlab to arduino? I'm trying to send 3 values to arduino using serial port, I used fprintf() but the value in arduino doesn't change as if it had never been sent it, because when I read the 3 variables in Matlab they have the same initial value, and the Read Led turns on.
0 commentaires
Réponses (1)
Cris LaPierre
le 28 Avr 2023
It looks like you are using an older syntax. See this page:
You will want to connect using serialport and can write using write or writeline. See here:
2 commentaires
Cris LaPierre
le 29 Avr 2023
Perhaps if you could share some of the code you have tried.
Here are some examples you can test with:
Voir également
Catégories
En savoir plus sur MATLAB Support Package for Arduino Hardware dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!