本帖最後由 Offer 於 2015-1-21 20:17 編輯
在Configuration.h內,要依控制板的型號設定對應 MOTHERBOARD 的參數- // 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
- // This determines the communication speed of the printer
- #define BAUDRATE 250000
- //#define BAUDRATE 115200
- //// 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
- // 3 = MEGA/RAMPS up to 1.2 = 3
- // 33 = RAMPS 1.3 / 1.4 (Power outputs: Extruder, Bed, Fan)
- // 34 = RAMPS 1.3 / 1.4 (Power outputs: Extruder0, Extruder1, Bed)
- // 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
- // 7 = Ultimaker
- // 71 = Ultimaker (Older electronics. Pre 1.5.4. This is rare)
- // 8 = Teensylu
- // 80 = Rumba
- // 81 = Printrboard (AT90USB1286)
- // 82 = Brainwave (AT90USB646)
- // 9 = Gen3+
- // 70 = Megatronics
- // 701= Megatronics v2.0
- // 702= Minitronics v1.0
- // 90 = Alpha OMCA board
- // 91 = Final OMCA board
- // 301 = Rambo
- #ifndef MOTHERBOARD
- #define MOTHERBOARD 7
- #endif
複製代碼 改 MOTHERBOARD 由 7 成為 34, 因為我是使用RAMPS1.4- #ifndef MOTHERBOARD
- #define MOTHERBOARD 34
- #endif
複製代碼 因為用上了LCD & SD Card 模組所以亦要改下面呢段//LCD and SD support- //#define ULTRA_LCD //general lcd support, also 16x2
- //#define DOGLCD // Support for SPI LCD 128x64 (Controller ST7565R graphic Display Family)
- //#define SDSUPPORT // Enable SD Card Support in Hardware Console
- //#define SDSLOW // Use slower SD transfer mode (not normally needed - uncomment if you're getting volume init error)
- //#define ULTIMAKERCONTROLLER //as available from the ultimaker online store.
- //#define ULTIPANEL //the ultipanel as on thingiverse
- // The RepRapDiscount Smart Controller (white PCB)
- // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
- //#define REPRAP_DISCOUNT_SMART_CONTROLLER
- // The GADGETS3D G3D LCD/SD Controller (blue PCB)
- // http://reprap.org/wiki/RAMPS_1.3/1.4_GADGETS3D_Shield_with_Panel
- //#define G3D_PANEL
- // The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB)
- // http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller
- //
- // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: http://code.google.com/p/u8glib/wiki/u8glib
- //#define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
- // The RepRapWorld REPRAPWORLD_KEYPAD v1.1
- // http://reprapworld.com/?products_details&products_id=202&cPath=1591_1626
- //#define REPRAPWORLD_KEYPAD
- //#define REPRAPWORLD_KEYPAD_MOVE_STEP 10.0 // how much should be moved when a key is pressed, eg 10.0 means 10mm per click
複製代碼 把 //#define REPRAP_DISCOUNT_SMART_CONTROLLER前的"//" delete- // The RepRapDiscount Smart Controller (white PCB)
- // http://reprap.org/wiki/RepRapDiscount_Smart_Controller
- #define REPRAP_DISCOUNT_SMART_CONTROLLER
複製代碼 溫度探頭的設定要改#define TEMP_SENSOR_0,#define TEMP_SENSOR_1,#define TEMP_SENSOR_2,TEMP_SENSOR_BED- //===========================================================================
- //=============================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) (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)
- // 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)
- //
- // 1k ohm pullup tables - This is not normal, you would have to have changed out your 4.7k for 1k
- // (but gives greater accuracy and more stable PID)
- // 51 is 100k thermistor - EPCOS (1k pullup)
- // 52 is 200k thermistor - ATC Semitec 204GT-2 (1k pullup)
- // 55 is 100k thermistor - ATC Semitec 104GT-2 (Used in ParCan) (1k pullup)
- #define TEMP_SENSOR_0 -1
- #define TEMP_SENSOR_1 0
- #define TEMP_SENSOR_2 0
- #define TEMP_SENSOR_BED 0
複製代碼 我會使用TEMP_SENSOR_0及TEMP_SENSOR_BED所以改為100k熱敏電阻(NTC)- #define TEMP_SENSOR_0 10
- #define TEMP_SENSOR_1 0
- #define TEMP_SENSOR_2 0
- #define TEMP_SENSOR_BED 10
複製代碼 除左LCD不能作中文顯示其實在language.h 內的"#define LANGUAGE_CHOICE 1"改其他相應的數字便可- // Languages
- // 1 English
- // 2 Polish
- // 3 French (awaiting translation!)
- // 4 German
- // 5 Spanish
- // 6 Russian
- // 7 Italian
- // 8 Portuguese
- // 9 Finnish
- #ifndef LANGUAGE_CHOICE
- #define LANGUAGE_CHOICE 1 // Pick your language from the list above
- #endif
複製代碼 這是最低溫度保護的設定,基本上是合香港使用不用改,就算在北方有雪的地方使用室內溫度也不會太低吧!主要是預防測溫線短路- // The minimal temperature defines the temperature below which the heater will not be enabled It is used
- // to check that the wiring to the thermistor is not broken.
- // Otherwise this would lead to the heater being powered on all the time.
- #define HEATER_0_MINTEMP 5
- #define HEATER_1_MINTEMP 5
- #define HEATER_2_MINTEMP 5
- #define BED_MINTEMP 5
複製代碼 這是最高溫度保護的設定,基本上是不用改,主要是預防測溫線開路或測溫元件移了位而不停加熱產生危險- // When temperature exceeds max temp, your heater will be switched off.
- // This feature exists to protect your hotend from overheating accidentally, but *NOT* from thermistor short/failure!
- // You should use MINTEMP for thermistor short/failure protection.
- #define HEATER_0_MAXTEMP 275
- #define HEATER_1_MAXTEMP 275
- #define HEATER_2_MAXTEMP 275
- #define BED_MAXTEMP 150
複製代碼 #define EXTRUDE_MINTEMP 170是防止在170度以下時用家把擠出機驅動,如果在測試時你真的想在溫度不足情況下要轉動擠出機可把它改低一點- //this prevents dangerous Extruder moves, i.e. if the temperature is under the limit
- //can be software-disabled for whatever purposes by
- #define PREVENT_DANGEROUS_EXTRUDE
- //if PREVENT_DANGEROUS_EXTRUDE is on, you can still disable (uncomment) very long bits of extrusion separately.
- #define PREVENT_LENGTHY_EXTRUDE
- #define EXTRUDE_MINTEMP 170
- #define EXTRUDE_MAXLENGTH (X_MAX_LENGTH+Y_MAX_LENGTH) //prevent extrusion of very large distances.
複製代碼 定義工作空間的參數 (單位為mm),如果你的heatbed不是205x205便要修改- // Travel limits after homing
- #define X_MAX_POS 205
- #define X_MIN_POS 0
- #define Y_MAX_POS 205
- #define Y_MIN_POS 0
- #define Z_MAX_POS 200
- #define Z_MIN_POS 0
複製代碼 由於編碼器順時針轉動時LCD游標向上走不是我的習慣所以pins.h要改#define BTN_EN1 33 及
#define BTN_EN2 31- #ifdef REPRAP_DISCOUNT_SMART_CONTROLLER
- #define BEEPER 37
- #define BTN_EN1 33
- #define BTN_EN2 31
- #define BTN_ENC 35
複製代碼 |