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.
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
Hi. Thanks for your help.
Actually, I haven't used that Arduino.m file since it didn't suggest to do so. Why should I change this?
Actually, the arduino libraries I have for the motor and encoder, have some functions integrated which can call some pin values as inputs and defines the PWM voltage values as outputs in order to be able to control the torque on the motor. I am not sure how to use this package to control torque instead of speed. Thanks again.
have a look at the section of the readme.txt file that concerns customizing the package. The bottom line is that you will have to rewrite parts of the sketch running on the arduino and maybe slightly modify the arduino.m class file.
Hope that helps.