PID-filter routine (2nd try).


Results 1 to 40 of 132

Threaded View

  1. #12
    Join Date
    May 2007
    Location
    Republic Serbia
    Posts
    105


    Did you find this post helpful? Yes | No

    Default Hi Henrik again after little time

    I runing your PID rutine in 18F4431 and output is locked antiphase , all work like you explain me . I use two interrupt's one for position reding - QEI module and second to calculate PID , in main loop is only increment of setpoint. No Usart , no DEBUG or LCDOUT.
    From time to time not a linear in time it have some little noise which I can also see with scope in PWM out and I can't image from where is ?
    Simple motor have jig - agitation in range of couple step's to +/- and after couple next step's it go linear.
    I use only CW rotation not CCW all the time and PID becouse it good magnetic and precise break in position.
    Can it be from bad tuning of P,I,D parameter's ?
    Output amplifier is copy of HP UHU with 4 x IRF540N.
    Simple I am lost - it is not disaster but meke me little problems on my machin.
    Best regards
    \ ROBERT
    Last edited by phoenix_1; - 24th October 2009 at 21:30.

Similar Threads

  1. Darrel's latest 16 bit averaging routine?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 17th October 2009, 02:57
  2. 2nd order Low-pass passive RC filter on PWM
    By munromh in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 29th January 2009, 20:03
  3. Atod Digital Filter
    By GeoJoe in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 2nd April 2008, 18:04
  4. PID controller in 16F737
    By joeri in forum mel PIC BASIC
    Replies: 8
    Last Post: - 24th June 2006, 12:39
  5. 2nd Order Digital Filter for 24-bit
    By sefayil in forum mel PIC BASIC
    Replies: 0
    Last Post: - 2nd December 2005, 22:55

Members who have read this thread : 1

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts