DT-Ints latency and other interrupt conciderations


Closed Thread
Results 1 to 40 of 59

Hybrid View

  1. #1
    Join Date
    Dec 2009
    Location
    Kalamazoo
    Posts
    42


    Did you find this post helpful? Yes | No

    Default

    thanks for the prompt reply.
    right now im fighting with the step/dir int routine, which is not showing any sign of life. so im assuming that step/dir is not working.

    whole routine is in the interrupt, (just as you had it)except the lcdout, which is the only command in the main routine.

    yes, that is 18khz according to the scope. is that not good?

    the only motor connection is the encoder and im using leds to show hpwm output. saves a lot on h-bridges and smoke from explosions.
    will eventually move to the power control module once everything is figured out.
    NAG CON WIFE!
    WIFE VAR MOOD

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


    Did you find this post helpful? Yes | No

    Default

    Running the PID-loop at 18kHz is probably overkill, for motorcontrol somewhere between 1000 and 2500Hz seems to be common depending on inertia of the motor etc but YMMV.

Members who have read this thread : 0

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