Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MarlinKimbra
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
MarlinKimbra
Commits
20661668
Commit
20661668
authored
Nov 03, 2014
by
MagoKimbra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Megatronics V3
parent
a0b64f01
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
165 additions
and
32 deletions
+165
-32
Configuration.h
MarlinKimbra/Configuration.h
+6
-5
Configuration_Cartesian.h
MarlinKimbra/Configuration_Cartesian.h
+2
-2
Marlin_main.cpp
MarlinKimbra/Marlin_main.cpp
+1
-1
pins.h
MarlinKimbra/pins.h
+156
-24
No files found.
MarlinKimbra/Configuration.h
View file @
20661668
...
...
@@ -13,8 +13,8 @@
#define SERIAL_PORT 0
// This determines the communication speed of the printer
//
#define BAUDRATE 115000
#define BAUDRATE 250000
#define BAUDRATE 115000
//
#define BAUDRATE 250000
// This enables the serial port associated to the Bluetooth interface
//#define BTENABLED // Enable BT interface on AT90USB devices
...
...
@@ -97,7 +97,8 @@
// 9 = Gen3+
// 70 = Megatronics
// 701= Megatronics v2.0
// 702= Minitronics v1.0
// 702= Minitronics v1.0 / v1.1
// 703= Megatronics v3.0
// 90 = Alpha OMCA board
// 91 = Final OMCA board
// 301= Rambo
...
...
@@ -247,7 +248,7 @@
// is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
#define PID_INTEGRAL_DRIVE_MAX 255 //limit for the integral term
#define K1 0.95 //smoothing factor within the PID
#define PID_dT ((OVERSAMPLENR *
8
.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine
#define PID_dT ((OVERSAMPLENR *
10
.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine
// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
// IeC HotEnd
...
...
@@ -590,7 +591,7 @@
//define BlinkM/CyzRgb Support
//#define BLINKM
//
define LASERBEAM
//
define LASERBEAM support
//#define LASERBEAM
/**********************************************************************\
...
...
MarlinKimbra/Configuration_Cartesian.h
View file @
20661668
...
...
@@ -142,9 +142,9 @@ const bool Z_MAX_ENDSTOP_INVERTING = false; // set to true to invert the logic o
// these are the offsets to the probe relative to the extruder tip (Hotend - Probe)
#define X_PROBE_OFFSET_FROM_EXTRUDER 0
#define Y_PROBE_OFFSET_FROM_EXTRUDER 20
#define Z_PROBE_OFFSET_FROM_EXTRUDER -3.
7
5
#define Z_PROBE_OFFSET_FROM_EXTRUDER -3.
6
5
#define Z_RAISE_BEFORE_HOMING
2
0 // (in mm) Raise Z before homing (G28) for Probe Clearance.
#define Z_RAISE_BEFORE_HOMING
1
0 // (in mm) Raise Z before homing (G28) for Probe Clearance.
// Be sure you have this distance over your Z_MAX_POS in case
#define XY_TRAVEL_SPEED 10000 // X and Y axis travel speed between probes, in mm/min
...
...
MarlinKimbra/Marlin_main.cpp
View file @
20661668
...
...
@@ -2959,7 +2959,7 @@ void process_commands()
}
break
;
case
05
:
// M05 - Setting laser beam off
digitalWrite
(
LASERBEAM_PIN
,
0
);
digitalWrite
(
LASERBEAM_PIN
,
0
);
break
;
#endif // LASERBEAM
...
...
MarlinKimbra/pins.h
View file @
20661668
...
...
@@ -2573,7 +2573,12 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define HEATER_0_PIN 9 // EXTRUDER 1
#define HEATER_1_PIN 8 // EXTRUDER 2
#define HEATER_2_PIN -1
#define SHIFT_CLK 63
#define SHIFT_LD 42
#define SHIFT_OUT 17
#define SHIFT_EN 17
#if TEMP_SENSOR_0 == -1
#define TEMP_0_PIN 4 // ANALOG NUMBERING
#else
...
...
@@ -2612,7 +2617,134 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define BTN_EN1 61
#define BTN_EN2 59
#define BTN_ENC 43 //the click
#define BLEN_C 2
#define BLEN_B 1
#define BLEN_A 0
#define SDCARDDETECT -1 // Megatronics does not use this port
//encoder rotation values
#define encrot0 0
#define encrot1 2
#define encrot2 3
#define encrot3 1
#endif
/****************************************************************************************
* MegaTronics v3.0
*
****************************************************************************************/
#if MOTHERBOARD == 703
#define KNOWN_BOARD 1
#ifndef __AVR_ATmega2560__
#error Oops! Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu.
#endif
#define LARGE_FLASH true
#define X_STEP_PIN 58
#define X_DIR_PIN 57
#define X_ENABLE_PIN 59
#define X_MIN_PIN 37
#define X_MAX_PIN 40 //2 //Max endstops default to disabled "-1", set to commented value to enable.
#define Y_STEP_PIN 5 // A6
#define Y_DIR_PIN 17 // A0
#define Y_ENABLE_PIN 4
#define Y_MIN_PIN 41
#define Y_MAX_PIN 38 //15
#define Z_STEP_PIN 16 // A2
#define Z_DIR_PIN 11 // A6
#define Z_ENABLE_PIN 3 // A1
#define Z_MIN_PIN 18
#define Z_MAX_PIN 19
#define E0_STEP_PIN 28
#define E0_DIR_PIN 27
#define E0_ENABLE_PIN 29
#define E1_STEP_PIN 25
#define E1_DIR_PIN 24
#define E1_ENABLE_PIN 26
#define E2_STEP_PIN 22
#define E2_DIR_PIN 60
#define E2_ENABLE_PIN 23
#define SDPOWER -1
#define SDSS 53
#define LED_PIN 13
#ifdef NUM_SERVOS
#define SERVO0_PIN 46
#endif
#define PS_ON_PIN 12
#define KILL_PIN -1
#define HEATER_0_PIN 2
#define HEATER_1_PIN 8
#define HEATER_2_PIN 9
#define HEATER_BED_PIN 10
#define FAN_PIN 6
#define FAN2_PIN 7
#if TEMP_SENSOR_0 == -1
#define TEMP_0_PIN 11 // ANALOG NUMBERING
#else
#define TEMP_0_PIN 15 // ANALOG NUMBERING
#endif
#if TEMP_SENSOR_1 == -1
#define TEMP_1_PIN 10 // ANALOG NUMBERING
#else
#define TEMP_1_PIN 13 // ANALOG NUMBERING
#endif
#if TEMP_SENSOR_2 == -1
#define TEMP_2_PIN 9 // ANALOG NUMBERING
#else
#define TEMP_2_PIN 12 // ANALOG NUMBERING
#endif
#if TEMP_SENSOR_BED == -1
#define TEMP_BED_PIN 8 // ANALOG NUMBERING
#else
#define TEMP_BED_PIN 14 // ANALOG NUMBERING
#endif
#define BEEPER 61
#define LCD_PINS_RS 32
#define LCD_PINS_ENABLE 31
#define LCD_PINS_D4 14
#define LCD_PINS_D5 30
#define LCD_PINS_D6 39
#define LCD_PINS_D7 15
#define SHIFT_CLK 43
#define SHIFT_LD 35
#define SHIFT_OUT 34
#define SHIFT_EN 44
//buttons are directly attached using keypad
#define BTN_EN1 44
#define BTN_EN2 45
#define BTN_ENC 33 //the click
#define BLEN_C 2
#define BLEN_B 1
#define BLEN_A 0
...
...
@@ -2629,7 +2761,7 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
/****************************************************************************************
* Minitronics v1.0
* Minitronics v1.0
/ v1.1
*
****************************************************************************************/
#if MOTHERBOARD == 702
...
...
@@ -2671,50 +2803,54 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#define E2_STEP_PIN -1
#define E2_DIR_PIN -1
#define E2_ENABLE_PIN -1
#define SDPOWER -1
#define SDSS 16
#define LED_PIN 46
#define SDSS 53
#define LED_PIN 46
#define FAN_PIN 9
#define FAN2_PIN -1
#define PS_ON_PIN -1
#define KILL_PIN -1
#define HEATER_0_PIN 7 // EXTRUDER 1
#define HEATER_1_PIN 8 // EXTRUDER 2
#define HEATER_2_PIN -1
#define TEMP_0_PIN 7 // ANALOG NUMBERING
#define HEATER_2_PIN 9 // thermo couple
#if TEMP_SENSOR_0 == -1
#define TEMP_0_PIN 5 // ANALOG NUMBERING
#else
#define TEMP_0_PIN 7 // ANALOG NUMBERING
#endif
#define TEMP_1_PIN 6 // ANALOG NUMBERING
#define TEMP_2_PIN -1 // ANALOG NUMBERING
#define HEATER_BED_PIN 3 // BED
#define TEMP_BED_PIN 6 // ANALOG NUMBERING
#define BEEPER -1
#define BEEPER -1
#define LCD_PINS_RS -1
#define LCD_PINS_ENABLE -1
#define LCD_PINS_D4 -1
#define LCD_PINS_D5 -1
#define LCD_PINS_D6 -1
#define LCD_PINS_D7 -1
//buttons are directly attached using keypad
#define BTN_EN1 -1
#define BTN_EN2 -1
#define BTN_ENC -1 //the click
#define BLEN_C 2
#define BLEN_B 1
#define BLEN_A 0
#define SDCARDDETECT -1 // Megatronics does not use this port
//encoder rotation values
#define encrot0 0
#define encrot1 2
...
...
@@ -2920,10 +3056,6 @@ DaveX plan for Teensylu/printrboard-type pinouts (ref teensylu & sprinter) for a
#endif // END DELTA
#endif // END NPR2
#ifdef LASERBEAM
#define LASERBEAM_PIN 6
#endif
#ifdef FILAMENT_END_SWITCH
#define PAUSE_PIN 5
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment