Browse Source

support for GEN7 1.1,1.2 and 1.3

Christian Thalhammer 12 years ago
parent
commit
e661578c84
2 changed files with 83 additions and 5 deletions
  1. 7
    5
      Marlin/Configuration.h
  2. 76
    0
      Marlin/pins.h

+ 7
- 5
Marlin/Configuration.h View File

@@ -9,7 +9,7 @@
9 9
 //Implementation of an idea by Prof Braino to inform user that any changes made
10 10
 //to THIS file by the user have been successfully uploaded into firmware.
11 11
 #define STRING_VERSION_CONFIG_H "2012-02-08j" //Personal revision number for changes to THIS file.
12
-#define STRING_CONFIG_H_AUTHOR "username" //Who made the changes.
12
+#define STRING_CONFIG_H_AUTHOR "scuba82" //Who made the changes.
13 13
 
14 14
 // This determines the communication speed of the printer
15 15
 //#define BAUDRATE 250000
@@ -21,7 +21,9 @@
21 21
 // Gen6 = 5,
22 22
 // Sanguinololu 1.2 and above = 62
23 23
 // Ultimaker = 7,
24
-// Gen7 = 77,
24
+// Gen7 custom (Alfons3 Version) = 77, "https://github.com/Alfons3/Generation_7_Electronics"
25
+// Gen7 v1.1, v1.2 = 78
26
+// Gen7 v1.3 = 79
25 27
 // Teensylu = 8,
26 28
 // Gen3+ =9
27 29
 #define MOTHERBOARD 77
@@ -49,7 +51,7 @@
49 51
 
50 52
 // Actual temperature must be close to target for this long before M109 returns success
51 53
 #define TEMP_RESIDENCY_TIME 30  // (seconds)
52
-#define TEMP_HYSTERESIS 3       // (C°) range of +/- temperatures considered "close" to the target one
54
+#define TEMP_HYSTERESIS 3       // (C�) range of +/- temperatures considered "close" to the target one
53 55
 
54 56
 // The minimal temperature defines the temperature below which the heater will not be enabled It is used
55 57
 // to check that the wiring to the thermistor is not broken. 
@@ -127,7 +129,7 @@ const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of t
127 129
 
128 130
 #define INVERT_X_DIR false    // for Mendel set to false, for Orca set to true
129 131
 #define INVERT_Y_DIR false    // for Mendel set to true, for Orca set to false
130
-#define INVERT_Z_DIR true     // for Mendel set to false, for Orca set to true
132
+#define INVERT_Z_DIR false     // for Mendel set to false, for Orca set to true
131 133
 #define INVERT_E0_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
132 134
 #define INVERT_E1_DIR false    // for direct drive extruder v9 set to true, for geared extruder set to false
133 135
 #define INVERT_E2_DIR false   // for direct drive extruder v9 set to true, for geared extruder set to false
@@ -138,7 +140,7 @@ const bool Z_ENDSTOPS_INVERTING = false; // set to true to invert the logic of t
138 140
 #define Y_HOME_DIR -1
139 141
 #define Z_HOME_DIR -1
140 142
 
141
-#define min_software_endstops true //If true, axis won't move to coordinates less than zero.
143
+#define min_software_endstops false //If true, axis won't move to coordinates less than zero.
142 144
 #define max_software_endstops true  //If true, axis won't move to coordinates greater than the defined lengths below.
143 145
 #define X_MAX_LENGTH 205
144 146
 #define Y_MAX_LENGTH 205

+ 76
- 0
Marlin/pins.h View File

@@ -567,6 +567,82 @@
567 567
 
568 568
 #endif
569 569
 
570
+/****************************************************************************************
571
+* Gen7 v1.1, v1.2, v1.3 pin assignment
572
+*
573
+****************************************************************************************/
574
+
575
+#if MOTHERBOARD == 79
576
+#define MOTHERBOARD 78
577
+#define GEN7_V_1_3
578
+#endif
579
+
580
+#if MOTHERBOARD == 78
581
+#define KNOWN_BOARD
582
+
583
+#if !defined(__AVR_ATmega644P__) && !defined(__AVR_ATmega644__) && !defined(__AVR_ATmega1284P__)
584
+#error Oops! Make sure you have 'Gen7' selected from the 'Tools -> Boards' menu.
585
+
586
+#endif
587
+
588
+//x axis pins
589
+#define X_STEP_PIN 19
590
+#define X_DIR_PIN 18
591
+#define X_ENABLE_PIN 24
592
+#define X_MIN_PIN 7
593
+#define X_MAX_PIN -1
594
+
595
+//y axis pins
596
+#define Y_STEP_PIN 23
597
+#define Y_DIR_PIN 22
598
+#define Y_ENABLE_PIN 24
599
+#define Y_MIN_PIN 5
600
+#define Y_MAX_PIN -1
601
+
602
+//z axis pins
603
+#define Z_STEP_PIN 26
604
+#define Z_DIR_PIN 25
605
+#define Z_ENABLE_PIN 24
606
+#define Z_MIN_PIN 1
607
+#define Z_MAX_PIN -1
608
+
609
+//extruder pins
610
+#define E0_STEP_PIN 28
611
+#define E0_DIR_PIN 27
612
+#define E0_ENABLE_PIN 24
613
+
614
+#define TEMP_0_PIN 1
615
+#define TEMP_1_PIN -1
616
+#define TEMP_2_PIN -1
617
+#define TEMP_BED_PIN 2
618
+
619
+#define HEATER_0_PIN 4
620
+#define HEATER_1_PIN -1
621
+#define HEATER_2_PIN -1
622
+#define HEATER_BED_PIN 3
623
+
624
+
625
+#define SDPOWER -1
626
+#define SDSS -1 // SCL pin of I2C header
627
+#define LED_PIN -1
628
+
629
+#ifdef GEN7_V_1_3
630
+// Gen7 v1.3 removed the fan pin
631
+#define FAN_PIN -1
632
+#else
633
+#define FAN_PIN 31
634
+#endif
635
+#define PS_ON_PIN 15
636
+
637
+//our pin for debugging.
638
+#define DEBUG_PIN 0
639
+
640
+//our RS485 pins
641
+#define TX_ENABLE_PIN 12
642
+#define RX_ENABLE_PIN 13
643
+
644
+#endif
645
+
570 646
 /*******************************************************************************
571 647
 *********
572 648
 * Gen7 Alfons3  pin assignment

Loading…
Cancel
Save