![]() Int readSteps() // read the remaining steps Void setDivider(int divider) // setting the frequency divider for phase switching Void setMode(byte stepMode, boolean fixStop) // sets the phase switching and stop modes Void step(int steps) // initiates the motor rotation by a specified number of steps Void control() // control, the method should be called regularly with the maximum frequency of phase switching StepMotor(byte pinA, byte pinB, byte pinC, byte pinD) // constructor How to install is written in several previous lessons, for example, in lesson 9. uses a minimum of microcontroller performance resources ĭownload the StepMotor.h library at this link.when the motor is stopped, it supports the following modes: complete shutdown of phases and with a holding current for fixing the position of the rotor.supports step, half step and between step modes.can control several motors simultaneously.works in a parallel process, does not block the execution of the program.I developed my StepMotor library, which works in a parallel process, can control several stepper motors at the same time, supports all possible modes.įrom the standard Stepper library, my library is distinguished by: not all basic winding switching modes are supported.when controlling the motor, the Stepper functions suspend the program, take all the computing resources of the microcontroller.In practical applications, the use of this library is extremely limited due to a number of disadvantages: ![]() In my opinion, the Stepper library can only be used to demonstrate and test the operation of motors. The previous lesson was about connecting unipolar stepper motors to the Arduino board and the standard Stepper library. Previous lesson List of lessons Next lesson In the lesson I talk about my StepMotor library, designed to control unipolar and bipolar stepper motors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |