Controlling stepper motor with atteched encoder


Results 1 to 11 of 11

Threaded View

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


    Did you find this post helpful? Yes | No

    Default Re: Controlling stepper motor with atteched encoder

    Hi John, I am posting a working snippet for moving a stepper controlled by an optical encoder. The encoder is fed to Timer1 which act as a 16 bits counter and using DT interrupt on overflow it will stop the motor when position is reached. I have commented the code but if something is not clear please just ask!.

    Hope you will find the code usefull as a base to start building your own.

    Cheers

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

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