I bought another pair of stepper motors/drivers, the same used before,and duplicated the firmware (From master downloaded 15082016). The old version runs fine on a mega, but there seems to be something wrong with my pinmapping on the new versions, because all I get are cute beeeeeep booop sounds when trying to use the pen move function.
I have testet the steppers with this sketch, and they both run fine
https://codebender.cc/sketch:371879 with that code.
The settings in my configuration file is as follow (I am using the #define UNL2003_DRIVER option)
#define motorPin1 4 // Blue - 28BYJ48 pin 1
#define motorPin2 5 // Pink - 28BYJ48 pin 2
#define motorPin3 6 // Yellow - 28BYJ48 pin 3
#define motorPin4 7 // Orange - 28BYJ48 pin 4
// Red - 28BYJ48 pin 5 (VCC)
#define motorPin5 8 // Blue - 28BYJ48 pin 1
#define motorPin6 9 // Pink - 28BYJ48 pin 2
#define motorPin7 10 // Yellow - 28BYJ48 pin 3
#define motorPin8 11 // Orange - 28BYJ48 pin 4
// Red - 28BYJ48 pin 5 (VCC)
AccelStepper motorB(8, motorPin5, motorPin7, motorPin6, motorPin8);
AccelStepper motorA(8, motorPin1, motorPin3, motorPin2, motorPin4);
|