I am new to using a PID, but will be doing so on a home brewing project ;D
I might suggest some helper functions that allow use of a digital device to simulate PWM (like the BBPID).
I'll be giving this a run this weekend.
EDIT: or I could just read the second example :-[