I'm using Arduino UNO
when I enter
Attempting connection .............
Warning: Unsuccessful read: A timeout occurred before the Terminator was reached.
Error using arduino (line 104)
Connection unsuccessful, please make sure that the board is powered on, running a sketch
provided with the package, and connected to the indicated serial port. You might also try
to unplug and re-plug the USB cable before attempting a reconnection.
Error evaluating registered method 'Start' of MATLAB S-Function 'msfun_arduino_io_setup' in 'library_test/Arduino IO Setup'. The following is the MATLAB call stack (file names and line numbers) that produced this error:
Connection unsuccessful, please make sure that the board is powered on, running a sketch provided with the package, and connected to the indicated serial port. You might also try to unplug and re-plug the USB cable before attempting a reconnection.
I can't get any of these blocks to work for me. I'm running Matlab 2013b and using an Arduino Mega 2560. Any help? every time I try running one of the Simulink Blocks I get the following:
" The corresponding 'msfun_arduino_io_setup.tlc' file for the MATLAB S-function 'msfun_arduino_io_setup' in block 'encoder_sim/Arduino IO Setup' must be located in the current working directory,...
Hi Colm, you should probably connect a good external power source to the motor shield.
Anyway, in the version1 of the motor shield library the stepper commands are blocking, so, while you can have 2 stepper connected, you can only operate them one at a time, not both at the same time.
I think (but I am not sure) that the same is true for the version 2 of the board.
Note that instead you can run up to 4 DC motor simultaneously since DC motor commands are not blocking.
I am using the ArduinoIO package and a Adafruit Motor Shield with 2 motors. I am having a little difficulty powering the motors. Is there anyway of having two simultaneous stepper motor outputs?
Thank you in advance