marlin固件烧录教程_3D打印机——Marlin固件全中文解析

本文档详细介绍了Marlin固件的基本设置,包括主板类型选择、波特率配置、温度传感器类型设置等关键参数。适用于3D打印机用户进行固件烧录和定制。同时,提供了关于如何选择和配置主板、温度传感器、通信速度等的指导,旨在帮助用户顺利进行Marlin固件的烧录过程。
摘要由CSDN通过智能技术生成

#ifndef CONFIGURATION_H

#define CONFIGURATION_H

// This configuration file contains the basic settings.

// Advanced settings can be found in Configuration_adv.h

// BASIC SETTINGS: select your board type, temperature sensor type, axis scaling, and endstop configuration

//基本设置包括:主板类型,温度传感器类型,轴设置,限位开关配置

//===========================================================================

//============================= DELTA Printer ===============================

//===========================================================================

// For a Delta printer replace the configuration files with the files in the

// example_configurations/delta directory.

//

//对于三角洲并联打印机,请找到固件里“example_configurations”文件夹下的“delta”子文件夹,并将其中的Configuration.h和Configuration_adv.h两个头文件拷贝到固件文件夹下,替换原先固件里的这两个头文件,并针对delta打印机作相应参数配置。

// User-specified version info of this build to display in [Pronterface, etc] terminal window during

// startup. Implementation of an idea by Prof Braino to inform user that any changes made to this

// build by the user have been successfully uploaded into firmware.

#define STRING_VERSION_CONFIG_H __DATE__ " " __TIME__ // build date and time

#define STRING_CONFIG_H_AUTHOR "(none, default config)" // Who made the changes.

// SERIAL_PORT selects which serial port should be used for communication with the host.

// This allows the connection of wireless adapters (for instance) to non-default port pins.

// Serial port 0 is still used by the Arduino bootloader regardless of this setting.

#define SERIAL_PORT 0

//选择用于和上位机通讯的串口,该值请保持0不动

// This determines the communication speed of the printer

// This determines the communication speed of the printer

#define BAUDRATE 250000

//波特率配置,该值必须和你的上位机波特率相匹配,否则无法通讯。常用波特率有115200和250000

// This enables the serial port associated to the Bluetooth interface

//#define BTENABLED              // Enable BT interface on AT90USB devices

The following define selects which electronics board you have. Please choose the one that matches your setup

// 10 = Gen7 custom (Alfons3 Version) "https://github.com/Alfons3/Generation_7_Electronics"

// 11 = Gen7 v1.1, v1.2 = 11

// 12 = Gen7 v1.3

// 13 = Gen7 v1.4

// 2  = Cheaptronic v1.0

// 20 = Sethi 3D_1

// 3  = MEGA/RAMPS up to 1.2 = 3

// 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Bed)

// 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)

// 35 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Fan, Fan)

// 4  = Duemilanove w/ ATMega328P pin assignment

// 5  = Gen6

// 51 = Gen6 deluxe

// 6  = Sanguinololu < 1.2

// 62 = Sanguinololu 1.2 and above

// 63 = Melzi

// 64 = STB V1.1

// 65 = Azteeg X1

// 66 = Melzi with ATmega1284 (MaKr3d version)

// 67 = Azteeg X3

// 68 = Azteeg X3 Pro

// 7  = Ultimaker

// 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)

// 72 = Ultimainboard 2.x (Uses TEMP_SENSOR 20)

// 77 = 3Drag Controller

// 8  = Teensylu

// 80 = Rumba

// 81 = Printrboard (AT90USB1286)

// 82 = Brainwave (AT90USB646)

// 83 = SAV Mk-I (AT90USB1286)

// 9  = Gen3+

// 70 = Megatronics

// 701= Megatronics v2.0

// 702= Minitronics v1.0

// 90 = Alpha OMCA board

// 91 = Final OMCA board

// 301= Rambo

// 21 = Elefu Ra Board (v3)

// 88 = 5DPrint D8 Driver Board

#ifndef MOTHERBOARD

#define MOTHERBOARD 33

//主板类型选择,请按以上各主板相应代号选择你个人的主板类型。33是ramps1.3/1.4(一个挤出机),34是ramps1.3/1.4(两个挤出机)

#endif

// Define this to set a custom name for your generic Mendel,

// #define CUSTOM_MENDEL_NAME "This Mendel"

// Define this to set a unique identifier for this printer, (Used by some programs to differentiate between machines)

// You can use an online service to generate a random UUID. (eg http://www.uuidgenerator.net/version4)

// #define MACHINE_UUID "00000000-0000-0000-0000-000000000000"

// This defines the number of extruders

#define EXTRUDERS 1

The following define selects which power supply you have. Please choose the one that matches your setup

// 1 = ATX

// 2 = X-Box 360 203Watts (the blue wire connected to PS_ON and the red wire to VCC)

#define POWER_SUPPLY 1

// Define this to have the electronics keep the power supply off on startup. If you don't know what this is leave it.

// #define PS_DEFAULT_OFF

//===========================================================================

//=============================Thermal Settings  ============================

//===========================================================================

//

//--NORMAL IS 4.7kohm PULLUP!-- 1kohm pullup can be used on hotend sensor, using correct resistor and table

//

Temperature sensor settings:

// -2 is thermocouple with MAX6675 (only for sensor 0)

// -1 is thermocouple with AD595

// 0 is not used

// 1 is 100k thermistor - best choice for EPCOS 100k (4.7k pullup)

// 2 is 200k thermistor - ATC Semitec 204GT-2 (4.7k pullup)

// 3 is Mendel-parts thermistor (4.7k pullup)

// 4 is 10k thermistor !! do not use it for a hotend. It gives bad resolution at high temp. !!

// 5 is 100K thermistor - ATC Semitec 104GT-2 (Used in ParCan & J-Head) (4.7k pullup)

// 6 is 100k EPCOS - Not as accurate as table 1 (created using a fluke thermocouple) (4.7k pullup)

// 7 is 100k Honeywell thermistor 135-104LAG-J01 (4.7k pullup)

// 71 is 100k Honeywell thermistor 135-104LAF-J01 (4.7k pullup)

// 8 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup)

// 9 is 100k GE Sensing AL03006-58.2K-97-G1 (4.7k pullup)

// 10 is 100k RS thermistor 198-961 (4.7k pullup)

// 11 is 100k beta 3950 1% thermistor (4.7k pullup)

// 12 is 100k 0603 SMD Vishay NTCS0603E3104FXT (4.7k pullup) (calibrated for Makibox hot bed)

// 20 is the PT100 circuit found in the Ultimainboard V2.x

// 60 is 100k Maker's Tool Works Kapton Bed Thermistor beta=3950

//

//    1k ohm pullup tables - This

很高兴为您解答问题。首先,Marlin固件烧录教程可以参考以下步骤: 1. 下载并解压Marlin固件代码包 2. 打开Arduino IDE软件,并在菜单栏中选择“文件”->“打开”,选择Marlin固件代码包中的.ino文件 3. 在IDE中选择正确的开发板和端口,如Arduino Mega2560开发板和COM3端口 4. 修改配置文件,包括机器型号、步进电机、温度传感器等参数,根据自己的实际情况进行修改 5. 编译并上传固件 对于步进电机控制代码的解析Marlin固件采用了非常灵活的方式来控制步进电机,主要涉及以下几个方面: 1. 步进电机模式:Marlin固件支持多种步进电机模式,包括常用的步进、脉冲/方向和SPI等模式。用户可以根据实际需要选择不同的模式,以满足不同的应用场景。 2. 步进电机驱动器:Marlin固件支持多种步进电机驱动器,包括A4988、DRV8825、TMC2100等。用户可以根据自己的实际情况选择不同的驱动器,以满足不同的需求。 3. 步进电机参数:Marlin固件支持多种步进电机参数设置,包括步进角度、步数、加速度、最大速度等。用户可以根据自己的实际情况进行设置,以达到最佳的打印效果。 4. 步进电机控制命令:Marlin固件支持多种步进电机控制命令,包括移动、停止、加速、减速、回原点等命令。用户可以根据自己的实际情况选择不同的命令,以实现不同的功能。 希望以上内容能够对您有所帮助。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值