Skip to content

Commit b509c58

Browse files
ribblesDarred
authored andcommitted
✨ Protoneer CNC-Shield 3.00 (MarlinFirmware#22715)
1 parent c8bd923 commit b509c58

File tree

3 files changed

+80
-0
lines changed

3 files changed

+80
-0
lines changed

Marlin/src/core/boards.h

+1
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@
161161
#define BOARD_INTAMSYS40 1326 // Intamsys 4.0 (Funmat HT)
162162
#define BOARD_MALYAN_M180 1327 // Malyan M180 Mainboard Version 2 (no display function, direct gcode only)
163163
#define BOARD_GT2560_V4_A20 1328 // Geeetech GT2560 Rev B for A20(M/T/D)
164+
#define BOARD_PROTONEER_CNC_SHIELD_V3 1329 // Mega controller & Protoneer CNC Shield V3.00
164165

165166
//
166167
// ATmega1281, ATmega2561
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
/**
2+
* Marlin 3D Printer Firmware
3+
* Copyright (c) 2021 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 <https://www.gnu.org/licenses/>.
20+
*
21+
*/
22+
#pragma once
23+
24+
/**
25+
* Protoneer v3.00 pin assignments
26+
*
27+
* This CNC shield has an UNO pinout and fits all Arduino-compatibles.
28+
*
29+
* Referenced docs:
30+
* - https://blog.protoneer.co.nz/arduino-cnc-shield-v3-00-assembly-guide/
31+
* - https://blog.protoneer.co.nz/arduino-cnc-shield/
32+
*/
33+
34+
#include "env_validate.h"
35+
36+
#define BOARD_INFO_NAME "Protoneer CNC Shield v3.00"
37+
38+
//
39+
// Limit Switches
40+
//
41+
#define X_STOP_PIN 9
42+
#define Y_STOP_PIN 10
43+
#define Z_STOP_PIN 11
44+
45+
//
46+
// Steppers
47+
//
48+
#define X_STEP_PIN 2
49+
#define X_DIR_PIN 5
50+
#define X_ENABLE_PIN 8 // Shared enable pin
51+
52+
#define Y_STEP_PIN 3
53+
#define Y_DIR_PIN 6
54+
#define Y_ENABLE_PIN X_ENABLE_PIN
55+
56+
#define Z_STEP_PIN 4
57+
#define Z_DIR_PIN 7
58+
#define Z_ENABLE_PIN X_ENABLE_PIN
59+
60+
// Designated with letter "A" on BOARD
61+
#define E0_STEP_PIN 12
62+
#define E0_DIR_PIN 13
63+
#define E0_ENABLE_PIN X_ENABLE_PIN
64+
65+
//
66+
// Temperature sensors - These could be any analog output not hidden by board
67+
//
68+
#define TEMP_0_PIN 8 // Analog Input
69+
//#define TEMP_1_PIN 9 // Analog Input
70+
//#define TEMP_BED_PIN 10 // Analog Input
71+
72+
//
73+
// Heaters / Fans - These could be any digital input not hidden by board
74+
//
75+
//#define HEATER_0_PIN 22 // EXTRUDER 1
76+
//#define HEATER_1_PIN 23 // EXTRUDER 2
77+
//#define HEATER_BED_PIN 24

Marlin/src/pins/pins.h

+2
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,8 @@
269269
#include "mega/pins_INTAMSYS40.h" // ATmega2560 env:mega2560
270270
#elif MB(MALYAN_M180)
271271
#include "mega/pins_MALYAN_M180.h" // ATmega2560 env:mega2560
272+
#elif MB(PROTONEER_CNC_SHIELD_V3)
273+
#include "mega/pins_PROTONEER_CNC_SHIELD_V3.h"// ATmega2560 env:mega2560
272274

273275
//
274276
// ATmega1281, ATmega2561

0 commit comments

Comments
 (0)