Prusa MINI Firmware overview
pins_OMCA_A.h
Go to the documentation of this file.
1 /**
2  * Marlin 3D Printer Firmware
3  * Copyright (c) 2019 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 #pragma once
23 
24 /**
25  * Open Motion controller with enable based extruders (Alpha!)
26  *
27  * ATmega644
28  *
29  * +---\/---+
30  * (D 0) PB0 1| |40 PA0 (AI 0 / D31)
31  * (D 1) PB1 2| |39 PA1 (AI 1 / D30)
32  * INT2 (D 2) PB2 3| |38 PA2 (AI 2 / D29)
33  * PWM (D 3) PB3 4| |37 PA3 (AI 3 / D28)
34  * PWM (D 4) PB4 5| |36 PA4 (AI 4 / D27)
35  * MOSI (D 5) PB5 6| |35 PA5 (AI 5 / D26)
36  * MISO (D 6) PB6 7| |34 PA6 (AI 6 / D25)
37  * SCK (D 7) PB7 8| |33 PA7 (AI 7 / D24)
38  * RST 9| |32 AREF
39  * VCC 10| |31 GND
40  * GND 11| |30 AVCC
41  * XTAL2 12| |29 PC7 (D 23)
42  * XTAL1 13| |28 PC6 (D 22)
43  * RX0 (D 8) PD0 14| |27 PC5 (D 21) TDI
44  * TX0 (D 9) PD1 15| |26 PC4 (D 20) TDO
45  * INT0 RX1 (D 10) PD2 16| |25 PC3 (D 19) TMS
46  * INT1 TX1 (D 11) PD3 17| |24 PC2 (D 18) TCK
47  * PWM (D 12) PD4 18| |23 PC1 (D 17) SDA
48  * PWM (D 13) PD5 19| |22 PC0 (D 16) SCL
49  * PWM (D 14) PD6 20| |21 PD7 (D 15) PWM
50  * +--------+
51  *
52  */
53 
54 /**
55  * Rev B 26 DEC 2016
56  *
57  * added pointer to a current Arduino IDE extension
58  *
59  */
60 
61 /**
62  * A useable Arduino IDE extension (board manager) can be found at
63  * https://github.com/Lauszus/Sanguino
64  *
65  * This extension has been tested on Arduino 1.6.12 & 1.8.0
66  *
67  * Here's the JSON path:
68  * https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json
69  *
70  * When installing select 1.0.2
71  *
72  * Installation instructions can be found at https://learn.sparkfun.com/pages/CustomBoardsArduino
73  * Just use the above JSON URL instead of Sparkfun's JSON.
74  *
75  * Once installed select the Sanguino board and then select the CPU.
76  *
77  */
78 
79 #ifndef __AVR_ATmega644__
80  #error "Oops! Select 'Sanguino' in 'Tools > Board' and ATmega644 in 'Tools > Processor.'"
81 #endif
82 
83 #define BOARD_INFO_NAME "Alpha OMCA"
84 
85 //
86 // Limit Switches
87 //
88 #define X_STOP_PIN 0
89 #define Y_STOP_PIN 1
90 #define Z_STOP_PIN 2
91 
92 //
93 // Steppers
94 //
95 #define X_STEP_PIN 21
96 #define X_DIR_PIN 20
97 #define X_ENABLE_PIN 24
98 
99 #define Y_STEP_PIN 23
100 #define Y_DIR_PIN 22
101 #define Y_ENABLE_PIN 24
102 
103 #define Z_STEP_PIN 26
104 #define Z_DIR_PIN 25
105 #define Z_ENABLE_PIN 24
106 
107 #define E0_STEP_PIN 28
108 #define E0_DIR_PIN 27
109 #define E0_ENABLE_PIN 24
110 
111 #define E1_STEP_PIN -1 // 19
112 #define E1_DIR_PIN -1 // 18
113 #define E1_ENABLE_PIN 24
114 
115 #define E2_STEP_PIN -1 // 17
116 #define E2_DIR_PIN -1 // 16
117 #define E2_ENABLE_PIN 24
118 
119 //
120 // Temperature Sensors
121 //
122 #define TEMP_0_PIN 0 // Analog Input (D27)
123 
124 //
125 // Heaters / Fans
126 //
127 #define HEATER_0_PIN 4
128 
129 #ifndef FAN_PIN
130  #define FAN_PIN 3
131 #endif
132 
133 //
134 // Misc. Functions
135 //
136 #define SDSS 11
137 
138 /* Unused (1) (2) (3) 4 5 6 7 8 9 10 11 12 13 (14) (15) (16) 17 (18) (19) (20) (21) (22) (23) 24 (25) (26) (27) 28 (29) (30) (31) */