1 2 3 Previous Next 32 Replies Latest reply on Jul 26, 2018 7:23 AM by CoMa_264751

    Easiest way to drive stepper motors



      So, the delicate issue of driving steppers - whilst doing something else with your SoC ... like, I2C, ADC+ DAC, filtering etc. 


      I am looking to drive some stepper motors using this driver: http://www.schmalzhaus.com/EasyDriver/  and a PSoC 5 or course :) 


      The problem I find on the web is that you need to send the pulses for your steps and time them. Of course the easyest way is using the Delay fct ... but that will kill everythig else or result in a jerky motion. 


      Do you have any idea on how this might be done with minmum resources? I am looking to run the motor and also measure loads of sensors ( 8 in total) and 8 digital signals in the same time: wheel pulse feedback as well as 6 other digital sensors. I don't have a project for this. At the moment I am using normal DC motors with a PWM function but would like to switch to steppers. 


      Accel / decel control would also be amazing to have - something similar to this approach: http://www.airspayce.com/mikem/arduino/AccelStepper/  - I think this is the nicest and most refined of the open libraries around. 


      My thoughts were of using a Timer or ARMs SysTick? not sure how well that would work but it must be a way to do it whilst keeping the rest of the code runnng. 


      Thanks for the help! 

        1 2 3 Previous Next