Skip to content

Commit 6d57ded

Browse files
authored
Update btt_rodent_map.h (#154)
Corrected board map for proper function, changed SDcard CS pin and forced 4 axis
1 parent 234255f commit 6d57ded

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

main/boards/btt_rodent_map.h

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@
2121
along with grblHAL. If not, see <http://www.gnu.org/licenses/>.
2222
*/
2323

24-
#if N_ABC_MOTORS > 2
24+
#if N_ABC_MOTORS > 1
2525
#error "Axis configuration is not supported!"
2626
#endif
2727

28+
#if N_ABC_MOTORS == 0
29+
#error "Axis configuration is not supported! The A motor must be enabled for proper Trinamic communication"
30+
#endif
31+
32+
2833
#if KEYPAD_ENABLE == 1
2934
#error No free pins for I2C keypad!
3035
#endif
@@ -39,12 +44,15 @@
3944
#define BOARD_URL "https://github.com/bigtreetech/Rodent/tree/master"
4045
// https://bttwiki.com/Rodent.html
4146

42-
//#define TRINAMIC_MIXED_DRIVERS 0 Uncomment when board verified
4347

4448
#define I2S_OUT_BCK GPIO_NUM_22
4549
#define I2S_OUT_WS GPIO_NUM_17
4650
#define I2S_OUT_DATA GPIO_NUM_21
4751

52+
// General TMC settings
53+
#define TMC_STEALTHCHOP 0 // Disable stealthchop
54+
55+
4856
#define X_STEP_PIN I2SO(2)
4957
#define X_DIRECTION_PIN I2SO(1)
5058
#define X_ENABLE_PIN I2SO(0)
@@ -55,28 +63,20 @@
5563
#define Y_ENABLE_PIN I2SO(7)
5664
#define Y_LIMIT_PIN GPIO_NUM_34
5765

66+
5867
#define Z_STEP_PIN I2SO(10)
5968
#define Z_DIRECTION_PIN I2SO(9)
6069
#define Z_ENABLE_PIN I2SO(8)
6170
#define Z_LIMIT_PIN GPIO_NUM_33
6271

72+
6373
// Define ganged axis or A axis step pulse and step direction output pins.
64-
#if N_ABC_MOTORS >= 1
6574
#define M3_AVAILABLE
6675
#define M3_STEP_PIN I2SO(13)
6776
#define M3_DIRECTION_PIN I2SO(12)
6877
#define M3_ENABLE_PIN I2SO(15)
6978
#define M3_LIMIT_PIN GPIO_NUM_32
70-
#endif
7179

72-
// Define ganged axis or B axis step pulse and step direction output pins.
73-
#if N_ABC_MOTORS == 2
74-
#define M4_AVAILABLE
75-
#define M4_STEP_PIN I2SO(18)
76-
#define M4_DIRECTION_PIN I2SO(17)
77-
#define M4_ENABLE_PIN I2SO(16)
78-
#define M4_LIMIT_PIN GPIO_NUM_37
79-
#endif
8080

8181
#define AUXOUTPUT0_PIN GPIO_NUM_25 // Spindle enable
8282
#define AUXOUTPUT1_PIN GPIO_NUM_13 // Spindle PWM
@@ -125,9 +125,11 @@
125125
#define PIN_NUM_CLK GPIO_NUM_18
126126
#define MOTOR_CS_PIN GPIO_NUM_5
127127
#if SDCARD_ENABLE
128-
#define PIN_NUM_CS GPIO_NUM_2
128+
#define PIN_NUM_CS GPIO_NUM_0
129129
#endif
130130

131+
//#define TMC_ONE_SPI
132+
131133
// Define Modbus serial port pins
132134
#if MODBUS_ENABLE
133135
#if !(MODBUS_ENABLE & MODBUS_RTU_DIR_ENABLED)

0 commit comments

Comments
 (0)