sir , i am doing a project BIONIC ARM. for that project i have 5 stepper motor controlled bt 5 drv8834 connected to arduino uno.. i am using the library AccelStepper.h. i have some doubts regarding some lines in an example code.
doubt number 1
AccelStepper stepper1(1, 4, 5); // what does the 1, 4, 5 represent
doubt number 2
int pos1 = 3600; // how we get a number (here 3600) to specify a position
doubt number 3
stepper1.setMaxSpeed(3000); // how we can determine the maximum speed. here it is given as 3000. from where i can get the maximum speed to a motor.... means every motor must have a maximum speed., and i have to stelect a number below or equalt to that particular value as maximum speed for my project.. how can i find the maximum speed of a motor.
Doubt 1) The '1' should have been the enum value: 'AccelStepper::DRIVER' meaning the interface is a Step and Direction driver. The '4' and '5' are the Step and Direction pins. "If an enable line is also needed, call setEnablePin() after construction."
Doubt 2) Position is in steps clockwise from some arbitrary zero position. Use negative numbers for counterclockwise.
Doubt 3) Your motor may have a specification for maximum step rate but it would probably be better to determine that empirically (by experiment) with your hardware. It will depend on the load on the motors and the current setting of your drivers.