如何为 PT100/PT1000 温度传感器配置 Marlin

要为 PT1000 温度传感器配置 Marlin,你需要对配置文件进行一些更改,你可以在 Configuration.h 中找到该文件。

在该文件中,搜索以下部分:

marlin_thermal_settings.cpp
//===========================================================================
//============================= Thermal Settings ============================
//===========================================================================
// @section temperature

在该部分中,你首先会找到一个表格,显示哪个温度传感器类型 ID 属于哪种类型的温度传感器。

表格中 PT100/PT1000 RTD 的重要部分如下:

marlin_rtd_table.cpp
/*  Analog RTDs (Pt100/Pt1000)
 *  -------
 *   110 : Pt100  with 1kΩ pullup (atypical)
 *   147 : Pt100  with 4.7kΩ pullup
 *  1010 : Pt1000 with 1kΩ pullup (atypical)
 *  1047 : Pt1000 with 4.7kΩ pullup (E3D)
 *    20 : Pt100  with circuit in the Ultimainboard V2.x with mainboard ADC reference voltage = INA826 amplifier-board supply voltage.
 *                NOTE: (1) Must use an ADC input with no pullup. (2) Some INA826 amplifiers are unreliable at 3.3V so consider using sensor 147, 110, or 21.
 *    21 : Pt100  with circuit in the Ultimainboard V2.x with 3.3v ADC reference voltage (STM32, LPC176x....) and 5V INA826 amplifier board supply.
 *                NOTE: ADC pins are not 5V tolerant. Not recommended because it's possible to damage the CPU by going over 500°C.
 *   201 : Pt100  with circuit in Overlord, similar to Ultimainboard V2.x
 */

第一步是为你的板选择正确的数字。对于大多数板,PT100 选择 147,PT1000 选择 1047

现在你需要告诉 Marlin 哪些温度传感器应使用 PT100/PT1000。相关部分就在表格下方。

marlin_temp_sensor_config.cpp
#define TEMP_SENSOR_0 1047
#define TEMP_SENSOR_1 1047
#define TEMP_SENSOR_2 0
#define TEMP_SENSOR_3 0
#define TEMP_SENSOR_4 0
#define TEMP_SENSOR_5 0
#define TEMP_SENSOR_6 0
#define TEMP_SENSOR_7 0
#define TEMP_SENSOR_BED 5
#define TEMP_SENSOR_PROBE 0
#define TEMP_SENSOR_CHAMBER 0
#define TEMP_SENSOR_COOLER 0
#define TEMP_SENSOR_REDUNDANT 0

在上面的示例中,我为 TEMP_SENSOR_0TEMP_SENSOR_1(分别是挤出机 0 和挤出机 1 的温度传感器)配置了带 4.7kΩ 上拉电阻的 PT1000(ID 1047)。加热床的温度传感器保持 ID 5,这是某种标准热敏电阻。

更改这些值后,你需要构建并将 Marlin 烧录到你的板。具体如何操作取决于你使用的板。请参阅专门为你的 3D 打印机板编写的其他文章了解详情。


Check out similar posts by category: 3D Printers