Shop OBEX P1 Docs P2 Docs Learn Events
closed loop controller. — Parallax Forums

closed loop controller.

mehmetmehmet Posts: 1
edited 2008-03-15 21:46 in Propeller 1
Hello,
I'm ·new user propeller chip. I haven't use any chip before.
I'm usually using· industrial·motion·controllers and drivers in my job.
I want to make a basic closed loop position controller with propeller chip. First , ·I·have to read incremental encoder eumulation singnals from the servo driver.·Can I read 200 khz quad. incremental·encoder singnals from the driver with·spin software?.· I need some basic source codes and programming techniques.·

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-03-15 19:23
    Have you looked through the Propeller Object Exchange?
    There's at least one object already in there for handling up to 16 encoders: obex.parallax.com/objects/24/
  • hippyhippy Posts: 1,981
    edited 2008-03-15 19:56
    200kHz has a period of 5uS so it could be tight with Spin and that may be an understatement. Assembler (PASM) or Assembler plus Spin should be the solution.
  • Graham StablerGraham Stabler Posts: 2,507
    edited 2008-03-15 21:46
    Have a look at the object Mike suggested, that is written in assembly and will read the encoder more than fast enough however I think you will need to take the assembly code and intergrate it into a larger assembly program for decent servo performance, this can then be controlled via spin just like the encoder object is.

    Graham
Sign In or Register to comment.