Thread subject: Homeroasters - Home Roasting Coffee Community :: TC4 with aArtisanQ_PID

Posted by greencardigan on 06/18/2018 5:07 PM
#323

The IO3 frequency is set in the setup part of the aArtisan_PID.ino file.

Code

pwmio3.Setup( IO3_PCORPWM, IO3_PRESCALE_8 );


Changing the prescale here from IO3_PRESCALE_8 to IO3_PRESCALE_1 should give you 31kHz. If that's too fast you could change the first parameter to IO3_FASTPWM and leave the prescale at 8. That will give 7.8kHz. These are the closest two options.