Arduino servo motor driving on matlab

1 vue (au cours des 30 derniers jours)
ibrahim aga
ibrahim aga le 28 Mar 2015
Commenté : kuldip patel le 8 Mar 2017
Hello everyone
i want driving arduino motor on matlab ,matlab give this error
Error using serial/fwrite (line 199) Unscussessful write: An error occurred during writing.
Error in arduino/servoWrite (line 1190) fwrite(a.aser,[56 97+pin val],'uchar');

Réponses (2)

Anusha B
Anusha B le 30 Mar 2015

Kevin Foley
Kevin Foley le 12 Avr 2015
Modifié(e) : Kevin Foley le 12 Avr 2015
I had the same problem, getting the same error message using 4 servo motors. If you are only using the USB connection from the computer serial port (COM#), try connecting a 9V battery with the 2.1mm power plug adapter.
I connected a 9V into the port on the Arduino Uno board and didn't get the error message anymore.

Communautés

Plus de réponses dans  Power Electronics Control

Catégories

En savoir plus sur 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!

Translated by