The application discloses a
motor control double-arm Rubik's cube
robot method based on a
robot vision
recognition algorithm and belongs to the technical field of
motor control double-arm Rubik's cube
robot methods. In
matlab, the starting and ending speed, the maximum speed, the total time, the uniform speed time, the
subdivision number of a stepping motor, the
subdivision interval, the rotation angle parameter, the specified
control curve T type and the S type are defined according to the
subdivision number and the rotation angle. The total
pulse number is calculated, the total pulse is distributed to the acceleration, uniform speed and deceleration stages, the specified
control curve T type and the S type are defined according to the subdivision number and the rotation angle, the total
pulse number is calculated, the total pulse is distributed to the uniform speed, acceleration and deceleration stages, the acceleration stage is divided into two sections, namely, the S type, the jerk acceleration is calculated, the speed change is calculated through integration, and the acceleration stage
pulse cycle is generated. When the acceleration stage is the uniform acceleration stage, namely, the T type, the acceleration is calculated, the speed linearly grows in each
pulse cycle, and the acceleration stage
pulse cycle is generated.