|
|
|
@ -399,23 +399,30 @@
|
|
|
|
|
//===========================================================================
|
|
|
|
|
//============================= PID > Bed Temperature Control ===============
|
|
|
|
|
//===========================================================================
|
|
|
|
|
// Select PID or bang-bang with PIDTEMPBED. If bang-bang, BED_LIMIT_SWITCHING will enable hysteresis
|
|
|
|
|
//
|
|
|
|
|
// Uncomment this to enable PID on the bed. It uses the same frequency PWM as the extruder.
|
|
|
|
|
// If your PID_dT is the default, and correct for your hardware/configuration, that means 7.689Hz,
|
|
|
|
|
// which is fine for driving a square wave into a resistive load and does not significantly impact you FET heating.
|
|
|
|
|
// This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W heater.
|
|
|
|
|
// If your configuration is significantly different than this and you don't understand the issues involved, you probably
|
|
|
|
|
// shouldn't use bed PID until someone else verifies your hardware works.
|
|
|
|
|
// If this is enabled, find your own PID constants below.
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* PID Bed Heating
|
|
|
|
|
*
|
|
|
|
|
* If this option is enabled set PID constants below.
|
|
|
|
|
* If this option is disabled, bang-bang will be used and BED_LIMIT_SWITCHING will enable hysteresis.
|
|
|
|
|
*
|
|
|
|
|
* The PID frequency will be the same as the extruder PWM.
|
|
|
|
|
* If PID_dT is the default, and correct for the hardware/configuration, that means 7.689Hz,
|
|
|
|
|
* which is fine for driving a square wave into a resistive load and does not significantly
|
|
|
|
|
* impact FET heating. This also works fine on a Fotek SSR-10DA Solid State Relay into a 250W
|
|
|
|
|
* heater. If your configuration is significantly different than this and you don't understand
|
|
|
|
|
* the issues involved, don't use bed PID until someone else verifies that your hardware works.
|
|
|
|
|
*/
|
|
|
|
|
//#define PIDTEMPBED
|
|
|
|
|
|
|
|
|
|
//#define BED_LIMIT_SWITCHING
|
|
|
|
|
|
|
|
|
|
// This sets the max power delivered to the bed, and replaces the HEATER_BED_DUTY_CYCLE_DIVIDER option.
|
|
|
|
|
// all forms of bed control obey this (PID, bang-bang, bang-bang with hysteresis)
|
|
|
|
|
// setting this to anything other than 255 enables a form of PWM to the bed just like HEATER_BED_DUTY_CYCLE_DIVIDER did,
|
|
|
|
|
// so you shouldn't use it unless you are OK with PWM on your bed. (see the comment on enabling PIDTEMPBED)
|
|
|
|
|
/**
|
|
|
|
|
* Max Bed Power
|
|
|
|
|
* Applies to all forms of bed control (PID, bang-bang, and bang-bang with hysteresis).
|
|
|
|
|
* When set to any value below 255, enables a form of PWM to the bed that acts like a divider
|
|
|
|
|
* so don't use it unless you are OK with PWM on your bed. (See the comment on enabling PIDTEMPBED)
|
|
|
|
|
*/
|
|
|
|
|
#define MAX_BED_POWER 175 // limits duty cycle to bed; 255=full current
|
|
|
|
|
// This limit is set to 175 by default in the Makibox configuration and it can be adjusted
|
|
|
|
|
// to increase the heatup rate. However, if changed, be aware of the safety concerns of
|
|
|
|
|