Controlling stepper motor with atteched encoder


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    8


    Did you find this post helpful? Yes | No

    Default Re: Controlling stepper motor with atteched encoder

    Hi Al,
    yes, i have a boatload of new stepper motors, and they are all 200 steps or higher. Most of my encoders are 400 cpr.

    I have many steppers that are gear reduced giving actual 0.18 degree per step translation at the shaft. My applications require relatively low speed on the steppers,60-100 rpm range , it's more a matter of being accurate, than fast.

    I do not need the accuracy of 2000 pulse per turn, i just thought (without really knowing what the heck i am talking about ;-) that the PIC18f4431 QUI features would make hardware more straight forward as the functionality would be handles at the chip "hardware" level rather than at the motor controller level.

    Again, total newbie here, just trying to figure this out so I can actually build a prototype.

    At the end of the day, all i need it to get this darn thing up and running, as it turns out I then have to spend untold hours trying to just understand that I can do before I can actually do anything

    i have been trying to get the combination of :
    • Program in PBP
    • schematic using parts I have So i understand how to actually connect things on a breadboard
    • using motors and encoders that I have (almost exclusively HEDS-5545 or HEDS-5645 on double shaft VEXTA steppers)
    So far, a simple, totally newbie, easy to understand without tons of research, etc. . . .has eluded me

    Your fine assistance is well appreciated but was a little less than "turn-key" LOL and is still being worked on by yours truly :-)

    thanks again for the continued help . . .man do I need it.


    Lost in New Jersey

    John

  2. #2
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,612


    Did you find this post helpful? Yes | No

    Default Re: Controlling stepper motor with atteched encoder

    Hi,
    The QEI module in the 18F4431 is great. It can be set to decode in 2x or 4x mode so your 400 cycles per revolution encoder will give a count of either 800 or 1600. I don't see that as a problem even if you're running the motor in full step mode. More resolution is almost never a bad thing :-) In theory it should allow you to measure how much the shaft is actually lagging the commanded position and allow you to slow down when the lag start aproaching 2 full steps. Because the instant the lag equals 2 fullsteps the rotor desynchronizes and position is lost.

    /Henrik.

Similar Threads

  1. Motor Stepper Example
    By Melanie in forum Code Examples
    Replies: 134
    Last Post: - 3rd January 2015, 17:58
  2. Replies: 1
    Last Post: - 15th December 2010, 14:30
  3. Controlling stepper motor with PIC
    By The Master in forum Off Topic
    Replies: 3
    Last Post: - 1st July 2008, 10:21
  4. Stepper Motor Program
    By kiwipiper in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 27th November 2007, 02:56
  5. Stepper Motor troubles
    By Fryin in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 21st March 2007, 01:56

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