Subversion Repositories Tronxy-X3A-Marlin

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 ron 1
/**
2
 * Marlin 3D Printer Firmware
3
 * Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
4
 *
5
 * Based on Sprinter and grbl.
6
 * Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
7
 *
8
 * This program is free software: you can redistribute it and/or modify
9
 * it under the terms of the GNU General Public License as published by
10
 * the Free Software Foundation, either version 3 of the License, or
11
 * (at your option) any later version.
12
 *
13
 * This program is distributed in the hope that it will be useful,
14
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 * GNU General Public License for more details.
17
 *
18
 * You should have received a copy of the GNU General Public License
19
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
 *
21
 */
22
 
23
/**
24
 * Cheaptronic v2.0 pin assignments
25
 * Built and sold by Michal Dyntar - RRO
26
 *          www.reprapobchod.cz
27
 */
28
 
29
#ifndef __AVR_ATmega2560__
30
  #error "Oops!  Make sure you have 'Arduino Mega' selected from the 'Tools -> Boards' menu."
31
#endif
32
 
33
#define BOARD_NAME         "Cheaptronic v2.0"
34
 
35
//
36
// Limit Switches
37
//
38
#define X_MIN_PIN          30
39
#define X_MAX_PIN          31
40
#define Y_MIN_PIN          32
41
#define Y_MAX_PIN          33
42
#define Z_MIN_PIN          34
43
#define Z_MAX_PIN          35
44
 
45
//
46
// Steppers
47
//
48
#define X_STEP_PIN         17
49
#define X_DIR_PIN          16
50
#define X_ENABLE_PIN       48
51
 
52
#define Y_STEP_PIN         54
53
#define Y_DIR_PIN          47
54
#define Y_ENABLE_PIN       55
55
 
56
#define Z_STEP_PIN         57
57
#define Z_DIR_PIN          56
58
#define Z_ENABLE_PIN       62
59
 
60
#define E0_STEP_PIN        23
61
#define E0_DIR_PIN         22
62
#define E0_ENABLE_PIN      24
63
 
64
#define E1_STEP_PIN        26
65
#define E1_DIR_PIN         25
66
#define E1_ENABLE_PIN      27
67
 
68
#define E2_STEP_PIN        29
69
#define E2_DIR_PIN         28
70
#define E2_ENABLE_PIN      39
71
 
72
//
73
// Temperature sensors
74
//
75
#define TEMP_0_PIN         15
76
#define TEMP_1_PIN         13
77
#define TEMP_2_PIN         14
78
#define TEMP_3_PIN         11   // should be used for chamber temperature control
79
#define TEMP_BED_PIN       12
80
 
81
//
82
// Heaters / Fans
83
//
84
#define HEATER_0_PIN        6
85
#define HEATER_1_PIN        7
86
#define HEATER_2_PIN        8
87
#define HEATER_BED_PIN      9
88
#ifndef FAN_PIN
89
  #define FAN_PIN           3
90
#endif
91
#define FAN2_PIN           58   // additional fan or light control output
92
 
93
//
94
// Other board specific pins
95
//
96
#ifndef FIL_RUNOUT_PIN
97
  #define FIL_RUNOUT_PIN   37   // board input labeled as F-DET
98
#endif
99
#define Z_MIN_PROBE_PIN    36   // additional external board input labeled as E-SENS (should be used for Z-probe)
100
#define LED_PIN            13
101
#define SPINDLE_ENABLE_PIN  4   // additional PWM pin 1 at JP1 connector - should be used for laser control too
102
#define EXT_2               5   // additional PWM pin 2 at JP1 connector
103
#define EXT_3               2   // additional PWM pin 3 at JP1 connector
104
#define PS_ON_PIN          45
105
#define KILL_PIN           46
106
 
107
#ifndef FILWIDTH_PIN
108
  #define FILWIDTH_PIN     11   // shared with TEMP_3 analog input
109
#endif
110
 
111
//
112
// LCD
113
//
114
#define LCD_PINS_RS        19
115
#define LCD_PINS_ENABLE    42
116
#define LCD_PINS_D4        18
117
#define LCD_PINS_D5        38
118
#define LCD_PINS_D6        41
119
#define LCD_PINS_D7        40
120
 
121
//
122
// SD CARD, ROTARY ENCODER, BEEPER
123
//
124
#define SDPOWER            -1
125
#define SDSS               53
126
#define SD_DETECT_PIN      49
127
#define BEEPER_PIN         44
128
#define BTN_EN1            11
129
#define BTN_EN2            12
130
#define BTN_ENC            43