diff options
author | David Crocker <dcrocker@eschertech.com> | 2020-09-26 22:09:43 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2020-09-26 22:09:43 +0300 |
commit | abe658215864d1abbbc5f9866e1c7292463e1091 (patch) | |
tree | a44c1122e248d0cb6e0f5fdb9fe0d52b28b2107a /src/Pccb | |
parent | 207b47f6ac82191ef38888e13ea1533a23b3fda8 (diff) |
Added definition of Vref series resistor to hardware definition
Diffstat (limited to 'src/Pccb')
-rw-r--r-- | src/Pccb/Pins_Pccb.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/Pccb/Pins_Pccb.h b/src/Pccb/Pins_Pccb.h index f63ac999..72d8766f 100644 --- a/src/Pccb/Pins_Pccb.h +++ b/src/Pccb/Pins_Pccb.h @@ -188,17 +188,11 @@ constexpr Pin TEMP_SENSE_PINS[NumThermistorInputs] = { PortAPin(20), PortCPin(13 constexpr Pin VssaSensePin = PortAPin(19); constexpr Pin VrefSensePin = PortBPin(1); -// Default thermistor parameters - on PCCB we default both thermistors to the same parameters -constexpr float BED_R25 = 100000.0; -constexpr float BED_BETA = 4388.0; -constexpr float BED_SHC = 0.0; -constexpr float EXT_R25 = 100000.0; -constexpr float EXT_BETA = 4388.0; -constexpr float EXT_SHC = 0.0; - // Thermistor series resistor value in Ohms constexpr float DefaultThermistorSeriesR = 2200.0; -constexpr float MinVrefLoadR = DefaultThermistorSeriesR / 2; // there are 2 temperature sensing channels +constexpr float MinVrefLoadR = (DefaultThermistorSeriesR / NumThermistorInputs) * 4700.0/((DefaultThermistorSeriesR / NumThermistorInputs) + 4700.0); + // there are 2 temperature sensing channels and a 4K7 load resistor +constexpr float VrefSeriesR = 15.0; // Number of SPI temperature sensors to support constexpr size_t MaxSpiTempSensors = 1; //TODO which SPI channels does PCCB route to the DueX? |