2016-06-27 21:35:20 +02:00
|
|
|
/**
|
|
|
|
* Marlin 3D Printer Firmware
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2019 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
|
2016-06-27 21:35:20 +02:00
|
|
|
*
|
|
|
|
* Based on Sprinter and grbl.
|
2019-06-28 06:57:50 +02:00
|
|
|
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
|
2016-06-27 21:35:20 +02:00
|
|
|
*
|
|
|
|
* 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 <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
*/
|
2019-07-05 05:44:12 +02:00
|
|
|
#pragma once
|
2016-06-27 21:35:20 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* RIGIDBOARD V2 Arduino Mega with RAMPS v1.4 pin assignments
|
|
|
|
*/
|
|
|
|
|
2019-08-21 02:08:58 +02:00
|
|
|
#define BOARD_INFO_NAME "RigidBoard V2"
|
2016-06-30 11:24:29 +02:00
|
|
|
|
2019-07-10 04:29:14 +02:00
|
|
|
#include "pins_RIGIDBOARD.h"
|
|
|
|
|
2016-10-08 22:27:04 +02:00
|
|
|
//
|
|
|
|
// Steppers
|
|
|
|
//
|
2017-04-27 17:58:46 +02:00
|
|
|
|
2016-06-27 21:35:20 +02:00
|
|
|
// I2C based DAC like on the Printrboard REVF
|
|
|
|
#define DAC_STEPPER_CURRENT
|
2017-04-27 17:58:46 +02:00
|
|
|
|
2016-06-27 21:35:20 +02:00
|
|
|
// Channels available for DAC, For Rigidboard there are 4
|
2016-09-14 02:01:04 +02:00
|
|
|
#define DAC_STEPPER_ORDER { 0, 1, 2, 3 }
|
2016-06-27 21:35:20 +02:00
|
|
|
|
2018-03-28 19:51:59 +02:00
|
|
|
#define DAC_STEPPER_SENSE 0.05 // sense resistors on rigidboard stepper chips are .05 value
|
2016-06-27 21:35:20 +02:00
|
|
|
#define DAC_STEPPER_ADDRESS 0
|
2018-03-28 19:51:59 +02:00
|
|
|
#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
|
2016-06-27 21:35:20 +02:00
|
|
|
#define DAC_OR_ADDRESS 0x01
|
2017-04-27 17:58:46 +02:00
|
|
|
|
|
|
|
#ifndef DAC_MOTOR_CURRENT_DEFAULT
|
|
|
|
#define DAC_MOTOR_CURRENT_DEFAULT { 70, 80, 90, 80 } // Default drive percent - X, Y, Z, E axis
|
|
|
|
#endif
|