12/28/2022 0 Comments Arduino forum![]() ![]() If (stepper2.distanceToGo() = in loop( you do a switch on revCount and handle the case where it is 1, 2, 3, 4, 5 or 6 but you do't handle the case where it is zero. Stepper1.moveTo(-stepper1.currentPosition()) Void setStepper (float mxs,float acc,float spd,long mvt1,long mvt2, int seg) set pins 14, 15, 16, 17, 18 to output pinsįor (int i = 14 i = interval) The sequence 1-3-2-4 is required for proper sequencing of 28BYJ48ĪccelStepper stepper1(FULLSTEP, motorPin1, motorPin3, motorPin2, motorPin4) ĪccelStepper stepper2(FULLSTEP, motorPin5, motorPin7, motorPin6, motorPin8) #define motorPin8 7 // Orange - 28BYJ48 pin 4 #define motorPin7 6 // Yellow - 28BYJ48 pin 3 ![]() #define motorPin6 5 // Pink - 28BYJ48 pin 2 #define motorPin5 4 // Blue - 28BYJ48 pin 1 #define motorPin4 11 // Orange - 28BYJ48 pin 4 #define motorPin3 10 // Yellow - 28BYJ48 pin 3 #define motorPin2 9 // Pink - 28BYJ48 pin 2 #define motorPin1 8 // Blue - 28BYJ48 pin 1 " expected primary-expression before 'float' " **** ERROR***** Here is the error message: The error disappeared when I blanked out the line marked. I am stuck with an error I don't understand and I suspected my argument format was the issue. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |