Created
August 27, 2020 03:59
-
-
Save jschoch/3a91342eea46d0d3ae31f7a29331e730 to your computer and use it in GitHub Desktop.
step signals leaking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18LTS schoch@xeon:/mnt/c/Users/jesse/Documents/Arduino/i2s_grbl/Grbl_Esp32/Grbl_Esp32/src/Machines$ cat jesse_6pack.h | |
#pragma once | |
// clang-format off | |
/* | |
6_pack_stepstick_v1.h | |
Covers all V1 versions V1p0, V1p1, etc | |
Part of Grbl_ESP32 | |
Pin assignments for the ESP32 I2S 6-axis board | |
2018 - Bart Dring | |
2020 - Mitch Bradley | |
2020 - Michiyasu Odaki | |
Grbl_ESP32 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. | |
Grbl 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 Grbl_ESP32. If not, see <http://www.gnu.org/licenses/>. | |
*/ | |
#define MACHINE_NAME "6 Pack Controller V1 (StepStick)" | |
#ifdef N_AXIS | |
#undef N_AXIS | |
#endif | |
#define N_AXIS 4 | |
#ifdef ENABLE_SD_CARD | |
#undef ENABLE_SD_CARD | |
#endif | |
// === Special Features | |
// I2S (steppers & other output-only pins) | |
#define USE_I2S_OUT | |
#define USE_I2S_STEPS | |
//#define DEFAULT_STEPPER ST_I2S_STATIC | |
#define USE_STEPSTICK // makes sure MS1,2,3 !reset and !sleep are set | |
#define I2S_OUT_BCK GPIO_NUM_22 | |
#define I2S_OUT_WS GPIO_NUM_17 | |
#define I2S_OUT_DATA GPIO_NUM_21 | |
#define X_STEPPER_MS3 I2SO(3) // X_CS | |
#define Y_STEPPER_MS3 I2SO(6) // Y_CS | |
#define Z_STEPPER_MS3 I2SO(11) // Z_CS | |
#define A_STEPPER_MS3 I2SO(14) // A_CS | |
#define B_STEPPER_MS3 I2SO(19) // B_CS | |
#define C_STEPPER_MS3 I2SO(22) // C_CS | |
#define STEPPER_RESET GPIO_NUM_19 | |
#define X_DISABLE_PIN I2SO(0) | |
#define X_DIRECTION_PIN I2SO(1) | |
#define X_STEP_PIN I2SO(2) | |
#define Y_DIRECTION_PIN I2SO(4) | |
#define Y_STEP_PIN I2SO(5) | |
#define Y_DISABLE_PIN I2SO(7) | |
#define Z_DISABLE_PIN I2SO(8) | |
#define Z_DIRECTION_PIN I2SO(9) | |
#define Z_STEP_PIN I2SO(10) | |
#define A_DIRECTION_PIN I2SO(12) | |
#define A_STEP_PIN I2SO(13) | |
#define A_DISABLE_PIN I2SO(15) | |
#define B_DISABLE_PIN I2SO(16) | |
#define B_DIRECTION_PIN I2SO(17) | |
#define B_STEP_PIN I2SO(18) | |
#define C_DIRECTION_PIN I2SO(20) | |
#define C_STEP_PIN I2SO(21) | |
#define C_DISABLE_PIN I2SO(23) | |
/* | |
Socket I/O reference | |
The list of modules is here... | |
https://github.com/bdring/6-Pack_CNC_Controller/wiki/CNC-I-O-Module-List | |
Click on each module to get example for using the modules in the sockets | |
*/ | |
// Socket #1 | |
// #1 GPIO_NUM_33 | |
// #2 GPIO_NUM_32 | |
// #3 GPIO_NUM_35 (input only) | |
// #4 GPIO_NUM_34 (input only) | |
// Socket #2 | |
// #1 GPIO_NUM_2 | |
// #2 GPIO_NUM_25 | |
// #3 GPIO_NUM_39 (input only) | |
// #4 GPIO_NUM_36 (input only) | |
// Socket #3 | |
// #1 GPIO_NUM_26 | |
// #2 GPIO_NUM_4 | |
// #3 GPIO_NUM_16 | |
// #4 GPIO_NUM_27 | |
// Socket #4 | |
// #1 GPIO_NUM_14 | |
// #2 GPIO_NUM_13 | |
// #3 GPIO_NUM_15 | |
// #4 GPIO_NUM_12 | |
// Socket #5 | |
// #1 GPIO_NUM_24 (output only) | |
// #2 GPIO_NUM_25 (output only) | |
// #3 GPIO_NUM_26 (output only) | |
// #4 GPIO_NUM_27 (output only) | |
#define X_LIMIT_PIN GPIO_NUM_33 | |
#define Y_LIMIT_PIN GPIO_NUM_32 | |
#define Z_LIMIT_PIN GPIO_NUM_35 | |
//#define A_LIMIT_PIN GPIO_NUM_34 | |
//#define B_LIMIT_PIN GPIO_NUM_39 | |
//#define C_LIMIT_PIN GPIO_NUM_36 | |
#define PROBE_PIN GPIO_NUM_34 | |
// 5V output CNC module in socket #3 | |
#define SPINDLE_TYPE SPINDLE_TYPE_PWM | |
#define SPINDLE_OUTPUT_PIN GPIO_NUM_26 | |
#define SPINDLE_ENABLE_PIN GPIO_NUM_4 | |
#define SPINDLE_DIR_PIN GPIO_NUM_16 | |
#define COOLANT_MIST_PIN GPIO_NUM_27 | |
// === Default settings | |
#define DEFAULT_STEP_PULSE_MICROSECONDS I2S_OUT_USEC_PER_PULSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Radio/Mode=BT | |
$Bluetooth/Name=btgrblesp | |
$Report/StallGuard= | |
$Spindle/Type=PWM | |
$Stepper/Pulse=8 | |
$Stepper/IdleTime=250 | |
$Stepper/StepInvert=XYZ | |
$Stepper/DirInvert= | |
$Stepper/EnableInvert=Off | |
$Limits/Invert=On | |
$Probe/Invert=Off | |
$Report/Status=1 | |
$GCode/JunctionDeviation=0.010 | |
$GCode/ArcTolerance=0.002 | |
$Report/Inches=Off | |
$Limits/Soft=Off | |
$Limits/Hard=Off | |
$Homing/Enable=Off | |
$Homing/DirInvert=XY | |
$Homing/Squared= | |
$Homing/Feed=200.000 | |
$Homing/Seek=2000.000 | |
$Homing/Debounce=250.000 | |
$Homing/Pulloff=1.000 | |
$GCode/MaxS=1000.000 | |
$GCode/MinS=0.000 | |
$GCode/LaserMode=Off | |
$GCode/Line1= | |
$GCode/Line0= | |
$Spindle/Enable/Invert=Off | |
$Spindle/Enable/OffWithSpeed=Off | |
$Spindle/Delay/SpinDown=0.000 | |
$Spindle/Delay/SpinUp=0.000 | |
$Spindle/PWM/Invert=Off | |
$Spindle/PWM/Frequency=5000.000 | |
$Spindle/PWM/Off=0.000 | |
$Spindle/PWM/Min=0.000 | |
$Spindle/PWM/Max=100.000<Idle|MPos:4.970,3.900,2.000,0.000|FS:0,0|Pn:XYZ> | |
$X/StepsPerMm=100.000 | |
$Y/StepsPerMm=100.000 | |
$Z/StepsPerMm=100.000 | |
$A/StepsPerMm=100.000 | |
$X/MaxRate=1000.000 | |
$Y/MaxRate=1000.000 | |
$Z/MaxRate=1000.000 | |
$A/MaxRate=1000.000 | |
$X/Acceleration=200.000 | |
$Y/Acceleration=200.000 | |
$Z/Acceleration=200.000 | |
$A/Acceleration=200.000 | |
$X/MaxTravel=300.000 | |
$Y/MaxTravel=300.000 | |
$Z/MaxTravel=300.000 | |
$A/MaxTravel=300.000 | |
$X/Current/Run=0.250 | |
$Y/Current/Run=0.250 | |
$Z/Current/Run=0.250 | |
$A/Current/Run=0.250 | |
$X/Current/Hold=0.125 | |
$Y/Current/Hold=0.125 | |
$Z/Current/Hold=0.125 | |
$A/Current/Hold=0.125 | |
$X/Microsteps=16 | |
$Y/Microsteps=16 | |
$Z/Microsteps=16 | |
$A/Microsteps=16 | |
$X/StallGuard=16 | |
$Y/StallGuard=16 | |
$Z/StallGuard=16 | |
$A/StallGuard=16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment