1 2 Previous Next 22 Replies Latest reply on Aug 21, 2015 4:37 PM by user_14586677

    Easiest way to drive stepper motors

    danescu.andrei

       Hello, 

         

      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 Previous Next