Hi
With this library the user can drive up to 5 stepper motors (not simultaneously)
The main method is
MotorRotate( MotorNumber as Byte , RotationsPerMinute as Word, NumberOfSteps , Optional MotorDirection as Byte = GCBClockwise , Optional MotorStepMode as Byte = GCBWaveDrive , Optional MotorType as Byte = GCBBipolarMotor )
Τhe possible directions of rotation are two
GCBClockwise or GCBRotateRight and
GCBAnticlockwise or GCBRotateLeft
The possible step modes are three
GCBWaveDrive Or FullStep One Phase
GCBFullStep Or FullStep Two Phases and
GCBHalfStep
The possible types of motors are two
GCBUnipolarMotor Drive with Transistor Array
GCBBipolarMotor Drive with L298 Motor Driver
The user should declare in main program the ports to use any motor (4 each). Even should indicate the steps per revolution having the motor.
Ιn addition the user can define up to 5 limit switches to terminate the movement of each motor when the corresponding switch get the value <1>.
Odd. try tomorrow.
I will also ping Dimi to see if he can repost. This has to be the only time when I did not absorb into the release as I always feared this - loss of code and good insights. :-(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sent directly by Dimitris Katsaounis today - hot off the press. http://gcbasic.sourceforge.net/newfiles/Stepper.zip I will leave here for a day or two then I will move into the main build. Too risky leaving them in the forum.
Say thanks to Dimitris.
:-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi
With this library the user can drive up to 5 stepper motors (not simultaneously)
The main method is
MotorRotate( MotorNumber as Byte , RotationsPerMinute as Word, NumberOfSteps , Optional MotorDirection as Byte = GCBClockwise , Optional MotorStepMode as Byte = GCBWaveDrive , Optional MotorType as Byte = GCBBipolarMotor )
Τhe possible directions of rotation are two
GCBClockwise or GCBRotateRight and
GCBAnticlockwise or GCBRotateLeft
The possible step modes are three
GCBWaveDrive Or FullStep One Phase
GCBFullStep Or FullStep Two Phases and
GCBHalfStep
The possible types of motors are two
GCBUnipolarMotor Drive with Transistor Array
GCBBipolarMotor Drive with L298 Motor Driver
The user should declare in main program the ports to use any motor (4 each). Even should indicate the steps per revolution having the motor.
Ιn addition the user can define up to 5 limit switches to terminate the movement of each motor when the corresponding switch get the value <1>.
The test program i use
My 27 Euros CNC works with Stepper.h library
https://www.youtube.com/watch?v=ww4p01LJBG0
The Library
The test program
Last edit: Dimitris Katsaounis 2016-07-22
The cnc program
Last edit: Dimitris Katsaounis 2016-07-22
Excelent.
Very good. Really good work.
Wow !!!
Can not download the two .gcb files.
ERROR 404
Last edit: jackjames 2017-02-12
Odd. try tomorrow.
I will also ping Dimi to see if he can repost. This has to be the only time when I did not absorb into the release as I always feared this - loss of code and good insights. :-(
OK. Thanks.
Sent directly by Dimitris Katsaounis today - hot off the press. http://gcbasic.sourceforge.net/newfiles/Stepper.zip I will leave here for a day or two then I will move into the main build. Too risky leaving them in the forum.
Say thanks to Dimitris.
:-)