sergio replied to the topic 'Focuser Arduino and Motorshield' in the forum. 3 years ago

Starting from my Arduino Uno and Motor Shield Rev3 ( store.arduino.cc/arduino-motor-shield-rev3 ) I have decided that it is better to upload into Arduino the existing and available software github.com/TallFurryMan/moonduino . that include the library AccelStepper ( www.airspayce.com/mikem/arduino/AccelStepper/ ) . The question is: will my hardware work with this library without damages considering that all projects I see in the web have a different HW configuration? Are these setting right ?

#define PIN_OUTPUT_MOTOR1 2 //PWM A
#define PIN_OUTPUT_MOTOR2 3 //PWM B
#define PIN_OUTPUT_MOTOR3 4 //direction A
#define PIN_OUTPUT_MOTOR4 5 // direction B

AccelStepper stepper(AccelStepper::FULL4WIRE, PIN_OUTPUT_MOTOR1, PIN_OUTPUT_MOTOR2, PIN_OUTPUT_MOTOR3, PIN_OUTPUT_MOTOR4, false);

Thanks

Read More...