![]() |
Forum Index : Microcontroller and PC projects : Stepper motor
Author | Message | ||||
kermess Regular Member ![]() Joined: 04/04/2013 Location: SpainPosts: 45 |
Hi. Leveraging there are people who dominate control MKII with CFUNCTION I propose to make a CFUNCTION for controlling stepper motors for example based on the "typical" 3D printer drivers as are the A4988, DRV8825, ...... The idea would be a "Function" with parameters as direction, speed, acceleration, deceleration, enable / disable, number of steps to move the motor, etc ... a greeting. It's an idea ..... kermess |
||||
StoveMan Regular Member ![]() Joined: 29/03/2013 Location: United StatesPosts: 51 |
kermess, yes! Inline stepper timing is far to slow in any interpreted language implementation. I have used Terry Weeder's (www.weedtech.com) serial board with the Maxi to do what you are proposing. Perhaps a look at his command set will help. The real payoff with a stepper function would be coordinated motion. I have tried by fooling with SPEED input parameters but the accuracy is abysmal. Some sort of a low level synch pulse between the cfunction call and pin manipulation? IE: two steppers want to reach their commanded count at the same TIME; so multiple function calls would need to pile up until all pins would receive an EXECUTE command and start toggling on the same clock cycle. Wish I was more help with the programming end though... good luck |
||||
viscomjim Guru ![]() Joined: 08/01/2014 Location: United StatesPosts: 925 |
I've been using this with the uMite and serial communications. They also have boards like this with stepper drivers also. I am using 4 of these with the above board to drive some steppers. This setup works very very well and lets the uMite handle other things too. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |