Stepper motor controller


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    May 2008
    Location
    Italy
    Posts
    825

    Default Stepper motor controller

    If microstepping is not an issue, then this simple project (complete with software) can be found useful.
    Very compact capable of up to 2 Amps per coils respond to serial commands and can be used in a serial network.

    Al.
    Attached Files Attached Files
    Last edited by aratti; - 24th November 2008 at 11:21.
    All progress began with an idea

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Another one to bookmark to refer folks to.
    Also...
    Looks like good stuff to put on the wiki when Lester gets it running.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Nov 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Very well presented, many thanks for sharing

  4. #4
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Improved trapezoidal profile control

    The profile algorithm transforms the travel command (steps) into three vector quantities:

    Vector A Acceleration from rest to fixed speed
    Vector B travel at fixed speed from end of vector A to begining of vector C
    Vector C Deceleration from fixed speed to rest at target point

    This technique is known as "TRAPEZOIDAL PROFILE".

    When the travel command is equal or less than vector A + vector B
    the algorithm convert the trapezoidal profile into "TRIANGULAR PROFILE"
    calculating new vectors A & B with different slopes.(1/2 total travel)

    For small travel command (few steps) the algorithm was yielding very sharp slopes stalling the motor. The bug has been found and removed!

    Now the motor turns smootly also with few steps travel command at high speed.

    The new version software (Stepper_Driver_2) is attached, as a zipped file, to this post.

    Please note that the attached schematic (very simple to build) will tremendously improve
    small motors performace (max 1.2 A current)

    Al.
    Attached Images Attached Images  
    Attached Files Attached Files
    All progress began with an idea

  5. #5
    Join Date
    Jan 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Smile

    Hello to all, i´m new here and i would like to start by saying thanks to aratti for posting this nice project.
    I´m thinking about use it but i wish to drive stepper motors with an model RC receiver(PWM-8 ch frame) using 2 of the 8 channels, 1 for each motor, my question is,...is it possible to add some more routines into the code in order to implement these movements and thus replace 2 of the servo motors that i have ?

    thanks in advance

    G.V

  6. #6
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default

    Thank you DarthV, unfortunatly the 16F84A is full as an egg and you cannot add even one extra byte. The controller accept TTL serial commands so if your radio device has serial communication capabilities you can feed the commands into the controller using this way.
    I am working on MK2 version and I a using a more powerfull pic device, which could have some space available at the end (But who knows, I will tell you only at the end). Post some more details on what you want to do, perhaps I could see how to solve the problem.

    Al.
    All progress began with an idea

Similar Threads

  1. 18f4431; driving a stepper IN HARDWARE mode
    By DDDvvv in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st January 2010, 16:49
  2. Replies: 11
    Last Post: - 6th November 2008, 10:27
  3. Controlling stepper motor with PIC
    By The Master in forum Off Topic
    Replies: 3
    Last Post: - 1st July 2008, 10:21
  4. Driving Stepper Motor with PBL3717
    By crhomberg in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th November 2007, 20:59
  5. problem with stepper!!
    By ibra in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th August 2007, 16:41

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts