Stepper motor controller


Closed Thread
Results 1 to 23 of 23

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Hi again, my problem is that i would like to use it but needs modifications and we only have de Hex code, so if you could do it for me that would nice, of course with the necessary cash amount for your work, if you wish so !

    thanks

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


    Did you find this post helpful? Yes | No

    Default

    Attached the PBP files in txt format. If you need to add more code then you have to change pic.
    Suggesting pic 16f628 which has the same pinout but 4K of memory. In this case you have to add these two instructions at very top of the code.

    Code:
    CMCON   = 7
    VRCON   = 0
    This version is the latest so if you have in use the previous one replace it, with this one.
    More torque, better homing and high precision also with 1 single step travel command.

    Enjoy.

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

  3. #3
    Join Date
    Jan 2009
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    Thanks aratti !

    G.V

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Al,
    1. Thanks for the nice code example / project, I will try it out !
    2. Question: It appears you have set this up as a control for a home brew CNC project, just judging from the use of limit switch inputs, is that correct, and any issues using it for that?
    Thank You
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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


    Did you find this post helpful? Yes | No

    Default

    Hi Joe, the original idea was to have a handy and simple device to solve linear positioning requirement, and when you do positioning, you also need a zero point to start and limits security.

    But since you can serialy network the controllers, you can also control two or three axis and have a small open loop cnc system. The only limitation is that you will have only point to point positioning or linear interpolation but not the circular. But for simple drilling tasks, for instance, this will be ok.

    Nice to hear from you.

    Al.
    Last edited by aratti; - 3rd February 2009 at 08:34.
    All progress began with an idea

  6. #6
    Join Date
    Sep 2007
    Location
    USA, CA
    Posts
    271


    Did you find this post helpful? Yes | No

    Default

    I believe there is a typo in this sub...

    WAddress: ' write controller address
    Write 4,RData[1]
    goto ReadEeprom

    should read...
    WAddress: ' write controller address
    Write 5,RData[1] 'matches the reads...
    goto ReadEeprom

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


    Did you find this post helpful? Yes | No

    Default

    Tenaja you are correct. Correction is necessary otherwise controller address cannot be canged. Any attempt to change the address will modify the configuration.

    So please correct the write controller address code as per Tenaja suggestion.

    Code:
    WAddress: ' write controller address
    Write 5,RData[1] 
    goto ReadEeprom
    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, 17:49
  2. Replies: 11
    Last Post: - 6th November 2008, 11:27
  3. Controlling stepper motor with PIC
    By The Master in forum Off Topic
    Replies: 3
    Last Post: - 1st July 2008, 11:21
  4. Driving Stepper Motor with PBL3717
    By crhomberg in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 8th November 2007, 21:59
  5. problem with stepper!!
    By ibra in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th August 2007, 17: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