×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Stepper and Encoder Concept help neeed

Stepper and Encoder Concept help neeed

Stepper and Encoder Concept help neeed

(OP)
Hello

I posted to another forum but probably should have posted here instead now that I am a bit more informed:  

Could someone please describe what the concept is for using a shaft encoder on a stepper for tracking with a controller?   I want to learn what is the most accurate way to track stepper motion to avoid drift between pulses out of the controller, and the pulses counting back in from the encoder translator.  In the application there will certainly be occasional obstructions that will block the motion, and therefore a method to get things back in sync is what I am after.  There must be several different approaches, but would it be safe to assume the the controller should also act as the up/down counter and pulse generator simultaneously?  Second, is it typically coded where a pulse goes out to the motor, then the controller immediately looks for the corresponding pulse from the encoder, and makes decisions from there if the pulse is missed?

I am ordering an E2 USDigital encoder with an interface IC for translation to up/down clocks.  The stepper will be half stepping at 400 pulses, and the Encoder outputs 400 pulses as well.  Currently I am experimenting with a Stamp and once I get the details sorted out will move the project to a PIC or SX, or maybe even the new Propeller chip for production.  I don't know any language other than some Basic and am trying to get my feet wet with how this works.

I appreaciate any enlightenment on the subject.  

Thanks!

RE: Stepper and Encoder Concept help neeed

If you use a 400/rev encoder with a  400 step motor
unless you could line up the encoder with the motor
( which is practically impossible ) the resolution
of the control system will be much less.


  

Plesae read FAQ240-1032
My WEB: <http://geocities.com/nbucska/>

RE: Stepper and Encoder Concept help neeed

Hi originator.

I believe nbucska has a point.

Generally your understanding is correct.  Most "fedback" systems do exactly what you have described. Issue a pulse and count the encoder counts. If not enough, issue another step.  You can do this with a stamp. You will be speed limited but depending on what you are attempting this might not pose a serious limit.

Most encoders tend to be quadrature and so encode the direction also, based on whether the A or B transitions come first.  There is also a single strange pulse each revolution to allow location of an absolute reference.

You might want to consider servo motors which have no appreciable steps.

Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com

RE: Stepper and Encoder Concept help neeed

(OP)
That is an excellent point about the resolution.  I appreciate the reply.  

I am ordering  the part below which decodes the quadrature into up/down clocks on separate outs, but I'll look in to using the additional absolute output at well.  Out of countless hours of digging I haven't seen any code yet that included any encoder counting.  Outputting the clock is simple, and in the stamps case it is close to being fast enough, although not cost effective.  It is a great learning tool however, I really appreacitae the tip way back to have looked at Parallax.  I think once I have the encoder being read, and a serial count update going to an LCD, that will likely make the stamp underqualified speedwise. The SX is almost as simple with its SX/B-asic, so the code will slide over with few changes, then the speed will be fine.  There is the thought of using their Propeller which is 8 - 32bit processors in one IC, then I could use one cog for counting only, another for control and they can share the Count variable.  

I am using a servo now which is flawless, but the motor/gbox/contoller system is too costly.  I can cut the cost by75% with my own code and driver and stepper, plus have a whole lot of fun in the process.  

Thanks for the heads up

http://www.usdigital.com/products/ls7183-ls7184/

RE: Stepper and Encoder Concept help neeed

Keep at it man!

  This isn't hard or tricky stuff so a little thought goes a long way.

  Good luck.

  You gotta show us a picture some time. :)

Keith Cress
Flamin Systems, Inc.- http://www.flaminsystems.com

RE: Stepper and Encoder Concept help neeed

(OP)
Photos on the way in the near future!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources