Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
viscomjim Guru Joined: 08/01/2014 Location: United StatesPosts: 925
Posted: 02:58pm 23 Mar 2014
Copy link to clipboard
Print this post
Hi all,
Working on a project that uses very simple motion control, only 1 axis. The idea is to position a belt driven linear actuator. Instead of using a stepper motor, I am using a closed loop servo controller that accepts step and direction signals just like a stepper amp would, but it uses an encoder on shaft to close the feedback loop. As far as the micromite is concerned, its just a stepper amp and motor. I have attached the micromite to the amp using 2 digital pins (step and direction). I set the direction pin high or low and then pulse the step pin for how many "steps" I want the unit to travel. This is all working very well, except for I need to somehow introduce very simple acceleration and deceleration to my step pulse stream. By just starting and stopping at full step rate, I get very hard starts and stops. This system is very simple for what is needed as I don't need anything crazy as far as motion profiling, just start from 0, accelerate to x speed, do x speed for certain distance, decelerate to 0 when approaching target, stop at target. The max speed will never change, just moving actuator to a position. Has anyone ever tried to implement simple accel, decel when using a stepper motor and MMbasic?