'Most compact, PIC18-friendly, P.I.D. loop code'
I'm looking for some reasonably simple PID code to do the following:
a) 16-bit setpoint (0000-FFFF)
b) 16-bit sensor (0000-FFFF)
c) P, I & D coefficients (8? 16? bits each)
16-bit drive (0000-FFFF), which
increases towards FFFF if sensor < setpoint,
decreases towards 0000 if sensor > setpoint,
stands still when sensor = setpoint.
Code would nominally be called every 10mS, but this is not set in stone.
Anything off the shelf out there worth recommending please?
More... (looser matching)
- Last day of these posts
- In 2008
, 2009 only
- New search...