Prusa MINI Firmware overview
Main Page
Modules
Classes
Files
File List
File Members
pins_MKS_ROBIN_MINI.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
* MKS Robin MINI (STM32F130VET6) board pin assignments
26
*/
27
28
#ifndef __STM32F1__
29
#error "Oops! Select an STM32F1 board in 'Tools > Board.'"
30
#elif HOTENDS > 1 || E_STEPPERS > 1
31
#error "MKS Robin mini supports up to 1 hotends / E-steppers. Comment out this line to continue."
32
#endif
33
34
#define BOARD_INFO_NAME "MKS Robin mini"
35
36
//
37
// Release PB4 (Y_ENABLE_PIN) from JTAG NRST role
38
//
39
#define DISABLE_DEBUG
40
41
//
42
// Note: MKS Robin mini board is using SPI2 interface.
43
//
44
#define SPI_MODULE 2
45
46
//
47
// Limit Switches
48
//
49
#define X_MIN_PIN PA15
50
#define X_MAX_PIN PA15
51
#define Y_MIN_PIN PA12
52
#define Y_MAX_PIN PA12
53
#define Z_MIN_PIN PA11
54
#define Z_MAX_PIN PC4
55
56
#ifndef FIL_RUNOUT_PIN
57
#define FIL_RUNOUT_PIN PF11 // MT_DET
58
#endif
59
60
//
61
// Steppers
62
//
63
#define X_ENABLE_PIN PE4
64
#define X_STEP_PIN PE3
65
#define X_DIR_PIN PE2
66
67
#define Y_ENABLE_PIN PE1
68
#define Y_STEP_PIN PE0
69
#define Y_DIR_PIN PB9
70
71
#define Z_ENABLE_PIN PB8
72
#define Z_STEP_PIN PB5
73
#define Z_DIR_PIN PB4
74
75
#define E0_ENABLE_PIN PB3
76
#define E0_STEP_PIN PD6
77
#define E0_DIR_PIN PD3
78
79
//
80
// Temperature Sensors
81
//
82
#define TEMP_0_PIN PC1 // TH1
83
#define TEMP_BED_PIN PC0 // TB1
84
85
//
86
// Heaters / Fans
87
//
88
#define HEATER_0_PIN PC3 // HEATER1
89
#define HEATER_BED_PIN PA0 // HOT BED
90
91
#define FAN_PIN PB1 // FAN
92
93
//
94
// Thermocouples
95
//
96
//#define MAX6675_SS_PIN PE5 // TC1 - CS1
97
//#define MAX6675_SS_PIN PE6 // TC2 - CS2
98
99
//
100
// Misc. Functions
101
//
102
#define POWER_LOSS_PIN PA2 // PW_DET
103
#define PS_ON_PIN PA3 // PW_OFF
104
105
//#define LED_PIN PB2
106
107
//
108
// LCD / Controller
109
//
110
#define BEEPER_PIN PC5
111
#define SD_DETECT_PIN PD12
112
113
/**
114
* Note: MKS Robin TFT screens use various TFT controllers.
115
* If the screen stays white, disable 'LCD_RESET_PIN'
116
* to let the bootloader init the screen.
117
*/
118
#if ENABLED(FSMC_GRAPHICAL_TFT)
119
#define FSMC_CS_PIN PD7 // NE4
120
#define FSMC_RS_PIN PD11 // A0
121
122
#define LCD_RESET_PIN PF6
123
#define NO_LCD_REINIT // Suppress LCD re-initialization
124
125
#define LCD_BACKLIGHT_PIN PD13
126
127
#if ENABLED(TOUCH_BUTTONS)
128
#define TOUCH_CS_PIN PC2
129
#endif
130
#endif
131
132
// Motor current PWM pins
133
#define MOTOR_CURRENT_PWM_XY_PIN PA6
134
#define MOTOR_CURRENT_PWM_Z_PIN PA7
135
#define MOTOR_CURRENT_PWM_E_PIN PB0
136
#define MOTOR_CURRENT_PWM_RANGE 1500 // (255 * (1000mA / 65535)) * 257 = 1000 is equal 1.6v Vref in turn equal 1Amp
137
#define DEFAULT_PWM_MOTOR_CURRENT { 1030, 1030, 1030 } // 1.05Amp per driver, here is XY, Z and E. This values determined empirically.
138
139
// This is a kind of workaround in case native marlin "digipot" interface won't work.
140
// Required to enable related code in STM32F1/HAL.cpp
141
//#ifndef MKS_ROBIN_MINI_VREF_PWM
142
// #define MKS_ROBIN_MINI_VREF_PWM
143
//#endif
144
145
//#define VREF_XY_PIN PA6
146
//#define VREF_Z_PIN PA7
147
//#define VREF_E1_PIN PB0
Prusa-Firmware-Buddy-Private1
lib
Marlin
Marlin
src
pins
stm32
pins_MKS_ROBIN_MINI.h
Generated by
1.8.16