aboutsummaryrefslogtreecommitdiff
path: root/Marlin/src/pins/ramps/pins_RIGIDBOARD_V2.h
blob: 1428de31a22b0af57a5f42a30cd3e7f7a9c7d9eb (plain) (blame)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
 * Marlin 3D Printer Firmware
 * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
 *
 * Based on Sprinter and grbl.
 * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */
#pragma once

/**
 * RIGIDBOARD V2 Arduino Mega with RAMPS v1.4 pin assignments
 */

#define BOARD_INFO_NAME "RigidBoard V2"

#include "pins_RIGIDBOARD.h"

//
// Steppers
//

// I2C based DAC like on the Printrboard REVF
#define HAS_MOTOR_CURRENT_DAC

// Channels available for DAC, For Rigidboard there are 4
#define DAC_STEPPER_ORDER { 0, 1, 2, 3 }

#define DAC_STEPPER_SENSE    0.05   // sense resistors on rigidboard stepper chips are .05 value
#define DAC_STEPPER_ADDRESS                   0
#define DAC_STEPPER_MAX                     4096  // was 5000 but max allowable value is actually 4096
#define DAC_STEPPER_VREF                      1   // internal Vref, gain 2x = 4.096V
#define DAC_STEPPER_GAIN                      1   // value of 1 here sets gain of 2
#define DAC_DISABLE_PIN                      42   // set low to enable DAC
#define DAC_OR_ADDRESS 0x01

#ifndef DAC_MOTOR_CURRENT_DEFAULT
  #define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
#endif