Chamber temperature monitoring and auto fan control.
This is an initial cut for feedback, updated for 2.0.x. Chamber temperature is currently reported along with hot end and bed temperatures to serial. The format is just like that used for hot end and bed temperatures, but using 'C' prefix. As there is no heater, target is always 0. Is this appropriate, is there a better way to report chamber temperatures? Chamber temperatures are not reported on the LCD in any way. When auto chamber fan is enabled, it currently just uses the same temperature threshold as the other auto controlled fans. As the chamber temperature is not connected to any heater, it doesn't undergo mintemp/maxtemp monitoring. This would need to change in the future if chamber heating became a feature.
This commit is contained in:
@ -47,6 +47,10 @@
|
||||
#define HEATER_BED_RAW_HI_TEMP 16383
|
||||
#define HEATER_BED_RAW_LO_TEMP 0
|
||||
#endif
|
||||
#if THERMISTORCHAMBER == 20
|
||||
#define HEATER_CHAMBER_RAW_HI_TEMP 16383
|
||||
#define HEATER_CHAMBER_RAW_LO_TEMP 0
|
||||
#endif
|
||||
const short temptable_20[][2] PROGMEM = {
|
||||
{ OV( 0), 0 },
|
||||
{ OV(227), 1 },
|
||||
|
@ -28,7 +28,7 @@
|
||||
#define OVERSAMPLENR 16
|
||||
#define OV(N) int16_t((N) * (OVERSAMPLENR))
|
||||
|
||||
#define ANY_THERMISTOR_IS(n) (THERMISTORHEATER_0 == n || THERMISTORHEATER_1 == n || THERMISTORHEATER_2 == n || THERMISTORHEATER_3 == n || THERMISTORHEATER_4 == n || THERMISTORBED == n)
|
||||
#define ANY_THERMISTOR_IS(n) (THERMISTORHEATER_0 == n || THERMISTORHEATER_1 == n || THERMISTORHEATER_2 == n || THERMISTORHEATER_3 == n || THERMISTORHEATER_4 == n || THERMISTORBED == n || THERMISTORCHAMBER == n)
|
||||
|
||||
// Pt1000 and Pt100 handling
|
||||
//
|
||||
@ -190,6 +190,15 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef THERMISTORCHAMBER
|
||||
#define CHAMBERTEMPTABLE TT_NAME(THERMISTORCHAMBER)
|
||||
#define CHAMBERTEMPTABLE_LEN COUNT(CHAMBERTEMPTABLE)
|
||||
#else
|
||||
#ifdef CHAMBER_USES_THERMISTOR
|
||||
#error "No chamber thermistor table specified"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Set the high and low raw values for the heaters
|
||||
// For thermistors the highest temperature results in the lowest ADC value
|
||||
// For thermocouples the highest temperature results in the highest ADC value
|
||||
@ -247,5 +256,14 @@
|
||||
#define HEATER_BED_RAW_LO_TEMP 0
|
||||
#endif
|
||||
#endif
|
||||
#ifndef HEATER_CHAMBER_RAW_HI_TEMP
|
||||
#ifdef CHAMBER_USES_THERMISTOR
|
||||
#define HEATER_CHAMBER_RAW_HI_TEMP 0
|
||||
#define HEATER_CHAMBER_RAW_LO_TEMP 16383
|
||||
#else
|
||||
#define HEATER_CHAMBER_RAW_HI_TEMP 16383
|
||||
#define HEATER_CHAMBER_RAW_LO_TEMP 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif // THERMISTORS_H_
|
||||
|
Reference in New Issue
Block a user