Stap 36: Software: Marlin configuratie
Dit is waar u de firmware draait op de Arduino aan de printerconfiguratie van uw wilt configureren. De instellingen misschien wel een beetje overweldigend in deze header-bestanden, maar de meesten van hen zijn optioneel en de secties zijn vrij goed gedocumenteerd met opmerkingen. (U kunt zoekwoorden in de IDE vinden door te drukken op Control + F om de 'Find'-dialoogvenster te openen)
Zoniet al open, opnieuw lanceren de Arduino IDE en open de Marlin-project zoals beschreven in de vorige stap.
Uitvoeringen instellingen:
Ga naar het tabblad van de Configuration_adv.h in de IDE en wijzig de ' MICROSTEP_MODES instelling weerspiegelen uw jumperinstellingen op de hellingen 1.4 stuurprogramma bestuur - we 8 microsteps gebruikt op alle stappenmotoren:
// Microstep setting (Only functional when stepper driver microstep pins are connected to MCU. #define MICROSTEP_MODES {8,8,8,8,8} // [1,2,4,8,16]
De volgende instellingen in het headerbestand Configuration.h bevinden en onze printerconfiguratie weerspiegelen. U kunt deze als uitgangspunt, maar zul je afhankelijk van je setup aanpassen, bijvoorbeeld of u gebruikt 'Normaal Open' of 'Normaal gesloten' einde stopt, de grootte en het aantal tanden in je versnellingen, thermistor selectie enz.
(De instellingen die hier vermeld alleen geeft de waarden afwijken van de standaardwaarden van de installatie)
Bestuur de selectie:
// The following define selects which electronics board you have. // Please choose the name from boards.h that matches your setup #ifndef MOTHERBOARD #define MOTHERBOARD BOARD_RAMPS_13_EFB // EFB=Extruder, Fan & Bed #endif
Thermistor selectie:
We gebruikten de ' 10 = RS thermistor 198-961' op de extruder en een ' 1 = EPCOS 100k ' op het verwarmde afdrukken bed.
//============================= Thermal Settings ============================ #define TEMP_SENSOR_0 10 #define TEMP_SENSOR_1 0 #define TEMP_SENSOR_2 0 #define TEMP_SENSOR_3 0 #define TEMP_SENSOR_BED 1
Endstops:
Merk op dat de MAX endstops zijn gedefinieerd in eerste instantie, maar uitgeschakeld met de laatste #define DISABLE_MAX_ENDSTOPS post.
//=========================================================================== //=============================Mechanical Settings=========================== //=========================================================================== // coarse Endstop Settings #define ENDSTOPPULLUPS // Comment this out (using // at the start of the line) to disable the endstop pullup resistors #ifdef ENDSTOPPULLUPS #define ENDSTOPPULLUP_XMAX #define ENDSTOPPULLUP_YMAX #define ENDSTOPPULLUP_ZMAX #define ENDSTOPPULLUP_XMIN #define ENDSTOPPULLUP_YMIN #define ENDSTOPPULLUP_ZMIN #endif // The pullups are needed if you directly connect a mechanical endswitch between the signal and ground pins. const bool X_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Y_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Z_MIN_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool X_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Y_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. const bool Z_MAX_ENDSTOP_INVERTING = true; // set to true to invert the logic of the endstop. #define DISABLE_MAX_ENDSTOPS //#define DISABLE_MIN_ENDSTOPS
Endstop instellingen:
// ENDSTOP SETTINGS: // Sets direction of endstops when homing; 1=MAX, -1=MIN #define X_HOME_DIR -1 #define Y_HOME_DIR -1 #define Z_HOME_DIR -1 #define min_software_endstops true // If true, axis won't move to coordinates less than HOME_POS. #define max_software_endstops true // If true, axis won't move to coordinates greater than the defined lengths below. // Travel limits after homing #define X_MAX_POS 200 #define X_MIN_POS 0 #define Y_MAX_POS 200 #define Y_MIN_POS 0 #define Z_MAX_POS 200 #define Z_MIN_POS 0
Verkeer-instellingen:
De DEFAULT_AXIS_STEPS_PER_UNIT-waarden moeten worden verfijnd na het afdrukken van uw kalibratie-blok. U kunt ook om de instellingen van de versnelling, vooral bij gebruik van een handgemaakte extruder (E-waarde).
// default settings #define DEFAULT_AXIS_STEPS_PER_UNIT {45.5,45.9,4042,485} #define DEFAULT_MAX_FEEDRATE {500, 500, 5, 25} // (mm/sec) #define DEFAULT_MAX_ACCELERATION {9000,9000,100,10000} // X, Y, Z, E maximum start speed for accelerated moves. E default values are good for Skeinforge 40+, for older versions raise them a lot. #define DEFAULT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for printing moves #define DEFAULT_RETRACT_ACCELERATION 3000 // X, Y, Z and E max acceleration in mm/s^2 for retracts
LCD-instellingen:
Zorg ervoor u de juiste (Arduino en niet AVR) bibliotheek download van https://bintray.com/olikraus/u8glib en haal het aan uw omslag van de bibliotheken van Arduino.
// The RepRapDiscount FULL GRAPHIC Smart Controller (quadratic white PCB) // <a href="http://reprap.org/wiki/RepRapDiscount_Full_Graphic_Smart_Controller" rel="nofollow"> http://reprap.org/wiki/RepRapDiscount_Full_Graphi...</a> // // ==> REMEMBER TO INSTALL U8glib to your ARDUINO library folder: <a href="http://code.google.com/p/u8glib/wiki/u8glib" rel="nofollow"> http://reprap.org/wiki/RepRapDiscount_Full_Graphi...</a> #define REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER
U kunt nu de code compileren door te klikken op de knop 'Controleren' op de werkbalk. Fouten corrigeren als om het even welk, vervolgens zorgen Repetier-host wordt losgekoppeld van de seriële poort en klik op de 'Upload' knop de hexadecimaal bestand kopiëren naar de Arduino.