kris duff wrote: > I'm looking for some sample code for a PID controller (mplab C) which > will control a very slow heater. I think the oscillation of the system > will be about 20mins. > > Do somebody could give me some PID sample code or good website. I used > a pid controller on the website : "pid without a PHD". But, I'm not > sure it's good for my usage. Have you looked at Microchip's AN964? It may not be in C, but if it's in assembler, it should be easy to port it to C. They may have more about this. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist