您好,欢迎访问三七文档
当前位置:首页 > 行业资料 > 国内外标准规范 > marlin固件配置
来自:Ranko2014-05-1523:41:53Marlin固件是reprap3d打印机中比较常用的固件。但是并不是所有的打印机参数都是一样的,所以在使用之前需要做好配置才能让打印机工作正确。更详尽的介绍见:源代码,下载地址是:下载后用ArduinoIDE打开拓展名为ino或pde的文件,文件名应当是Marlin.pde。打开后,IDE会同时打开同文件夹下的所有文件,包括最重要的文件之一:Configuration.h文件。通过IDE上的TAB切换的Configuration.h文件。下面我会对最常用的参数进行解释和说明,请根据自己的情况进行修改。以下为代码部分#ifndefCONFIGURATION_H#defineCONFIGURATION_H//Thisconfigurtionfilecontainsthebasicsettings.//AdvancedsettingscanbefoundinConfiguration_adv.h//BASICSETTINGS:selectyourboardtype,temperaturesensortype,axisscaling,andendstopconfiguration//最常见的配置参数包括:1、板子类型;2、温度传感器类型;3、轴设置;4、限位开关配置//Userspecifiedversioninfoofthisbuildtodisplayin[Pronterface,etc]terminalwindowduringstartup.//ImplementationofanideabyProfBrainotoinformuserthatanychangesmade//tothisbuildbytheuserhavebeensuccessfullyuploadedintofirmware.#defineSTRING_VERSION_CONFIG_HDATETIME//builddateandtime#defineSTRING_CONFIG_H_AUTHOR(MakerLab,defaultconfig)//Whomadethechanges.//SERIAL_PORTselectswhichserialportshouldbeusedforcommunicationwiththehost.//Thisallowstheconnectionofwirelessadapters(forinstance)tonon-defaultportpins.//Serialport0isstillusedbytheArduinobootloaderregardlessofthissetting.#defineSERIAL_PORT0//Thisdeterminesthecommunicationspeedoftheprinter#defineBAUDRATE250000//#defineBAUDRATE115200//波特率的配置,默认配置为250000,这个需要与你的上位机想匹配,否则无法通讯//下面开始配置板子的类型,如果你使用的是ramps1.4版本,这个参数需要配置为33(一个挤出头)或34(两个挤出头)////Thefollowingdefineselectswhichelectronicsboardyouhave.Pleasechoosetheonethatmatchesyoursetup//10=Gen7custom(Alfons3Version)=Gen7v1.1,v1.2=11//12=Gen7v1.3//13=Gen7v1.4//3=MEGA/RAMPSupto1.2=3//33=RAMPS1.3/1.4(Poweroutputs:Extruder,Bed,Fan)//34=RAMPS1.3/1.4(Poweroutputs:Extruder0,Extruder1,Bed)//4=Duemilanovew/ATMega328Ppinassignment//5=Gen6//51=Gen6deluxe//6=Sanguinololu1.2//62=Sanguinololu1.2andabove//63=Melzi//64=STBV1.1//7=Ultimaker//71=Ultimaker(Olderelectronics.Pre1.5.4.Thisisrare)//8=Teensylu//80=Rumba//81=Printrboard(AT90USB1286)//82=Brainwave(AT90USB646)//9=Gen3+//70=Megatronics//701=Megatronicsv2.0//702=Minitronicsv1.0//90=AlphaOMCAboard//91=FinalOMCAboard//301=Rambo#ifndefMOTHERBOARD#defineMOTHERBOARD33//如果你的板子为其它类型,请做相应修改#endif//配置挤出头的个数//Thisdefinesthenumberofextruders#defineEXTRUDERS1////Thefollowingdefineselectswhichpowersupplyyouhave.Pleasechoosetheonethatmatchesyoursetup//1=ATX//2=X-Box360203Watts(thebluewireconnectedtoPS_ONandtheredwiretoVCC)#definePOWER_SUPPLY1//温度传感器设置,最常用的是100K热敏电阻,选择1即可//===========================================================================//=============================ThermalSettings============================//===========================================================================////--NORMALIS4.7kohmPULLUP!--1kohmpullupcanbeusedonhotendsensor,usingcorrectresistorandtable//////Temperaturesensorsettings://-2isthermocouplewithMAX6675(onlyforsensor0)//-1isthermocouplewithAD595//0isnotused//1is100kthermistor-bestchoiceforEPCOS100k(4.7kpullup)//2is200kthermistor-ATCSemitec204GT-2(4.7kpullup)//3ismendel-partsthermistor(4.7kpullup)//4is10kthermistor!!donotuseitforahotend.Itgivesbadresolutionathightemp.!!//5is100Kthermistor-ATCSemitec104GT-2(UsedinParCan)(4.7kpullup)//6is100kEPCOS-Notasaccurateastable1(createdusingaflukethermocouple)(4.7kpullup)//7is100kHoneywellthermistor135-104LAG-J01(4.7kpullup)//8is100k0603SMDVishayNTCS0603E3104FXT(4.7kpullup)//9is100kGESensingAL03006-58.2K-97-G1(4.7kpullup)//10is100kRSthermistor198-961(4.7kpullup)////1kohmpulluptables-Thisisnotnormal,youwouldhavetohavechangedoutyour4.7kfor1k//(butgivesgreateraccuracyandmorestablePID)//51is100kthermistor-EPCOS(1kpullup)//52is200kthermistor-ATCSemitec204GT-2(1kpullup)//55is100kthermistor-ATCSemitec104GT-2(UsedinParCan)(1kpullup)//更改相应的配置,如果没有,填0#defineTEMP_SENSOR_01#defineTEMP_SENSOR_10#defineTEMP_SENSOR_20#defineTEMP_SENSOR_BED1//ActualtemperaturemustbeclosetotargetforthislongbeforeM109returnssuccess#defineTEMP_RESIDENCY_TIME10//(seconds)#defineTEMP_HYSTERESIS3//(degC)rangeof+/-temperaturesconsideredclosetothetargetone#defineTEMP_WINDOW1//(degC)WindowaroundtargettostarttherecidencytimerxdegCearly.//下面的配置是为了保护打印机而做的参数,一般情况不需要修改。//TheminimaltemperaturedefinesthetemperaturebelowwhichtheheaterwillnotbeenabledItisused//tocheckthatthewiringtothethermistorisnotbroken.//Otherwisethiswouldleadtotheheaterbeingpoweredonallthetime.#defineHEATER_0_MINTEMP5#defineHEATER_1_MINTEMP5#defineHEATER_2_MINTEMP5#defineBED_MINTEMP5//以上几个配置是在温度低于5度时,打印机将不能启动,表现为报错,并且加热头和热床的加热无法打开//下面的最高温度的配置,防止将打印机烧坏//Whentemperatureexceedsmaxtemp,yourheaterwillbeswitchedoff.//Thisfeatureexiststoprotectyourhotendfromoverheatingaccidentally,butNOTfromthermistorshort/failure!//YoushoulduseMINTEMPforthermistorshort/failureprotection.#defineHEATER_0_MAXTEMP275#defineHEATER_1_MAXTEMP275#defineHEATER_2_MAXTEMP275#defineBED_MAXTEMP150//此配置是为了防止加热床电阻太小,长时间加热容易烧mos管,增加这个数字,防止mos管太热,但加热时间会增长//Ifyourbedhaslowresistancee.g..6ohmandthrowsthefuseyoucandutycycleittoreducethe//averagec
本文标题:marlin固件配置
链接地址:https://www.777doc.com/doc-1433592 .html