SPINDLE/LASER pins changes
This commit is contained in:
committed by
Scott Lahteine
parent
99c4900a98
commit
ffe0e2d19a
@ -43,6 +43,8 @@
|
||||
#define RAMPS_D9_PIN 8
|
||||
#define MOSFET_D_PIN 12
|
||||
|
||||
#define CASE_LIGHT_PIN -1 // MUST BE HARDWARE PWM but one is not available on expansion header
|
||||
|
||||
#include "pins_RAMPS.h"
|
||||
|
||||
//
|
||||
@ -104,3 +106,58 @@
|
||||
#define BEEPER_PIN 33
|
||||
|
||||
#endif // ULTRA_LCD && NEWPANEL
|
||||
|
||||
/**
|
||||
* M3/M4/M5 - Spindle/Laser Control
|
||||
*
|
||||
* If you want to control the speed of your spindle then you'll have
|
||||
* have to sacrifce the Extruder and pull some signals off the Z stepper
|
||||
* driver socket.
|
||||
*
|
||||
* The following assumes:
|
||||
* - the Z stepper driver socket is empty
|
||||
* - the extruder driver socket has a driver board plugged into it
|
||||
* - the Z stepper wires are attached the the extruder connector
|
||||
*
|
||||
* If you want to keep the extruder AND don't have a LCD display then
|
||||
* you can still control the power on/off and spindle direction.
|
||||
*
|
||||
* Where to get spindle signals
|
||||
*
|
||||
* stepper signal socket name socket name
|
||||
* -------
|
||||
* SPINDLE_LASER_ENABLE_PIN /ENABLE O| |O VMOT
|
||||
* MS1 O| |O GND
|
||||
* MS2 O| |O 2B
|
||||
* MS3 O| |O 2A
|
||||
* /RESET O| |O 1A
|
||||
* /SLEEP O| |O 1B
|
||||
* SPINDLE_LASER_PWM_PIN STEP O| |O VDD
|
||||
* SPINDLE_DIR_PIN DIR O| |O GND
|
||||
* -------
|
||||
*
|
||||
* Note: Socket names vary from vendor to vendor
|
||||
*/
|
||||
#undef SPINDLE_LASER_PWM_PIN // Definitions in pins_RAMPS.h are not good with 3DRAG
|
||||
#undef SPINDLE_LASER_ENABLE_PIN
|
||||
#undef SPINDLE_DIR_PIN
|
||||
|
||||
#if ENABLED(SPINDLE_LASER_ENABLE)
|
||||
#if !EXTRUDERS
|
||||
#undef E0_DIR_PIN
|
||||
#undef E0_ENABLE_PIN
|
||||
#undef E0_STEP_PIN
|
||||
#undef Z_DIR_PIN
|
||||
#undef Z_ENABLE_PIN
|
||||
#undef Z_STEP_PIN
|
||||
#define Z_DIR_PIN 28
|
||||
#define Z_ENABLE_PIN 24
|
||||
#define Z_STEP_PIN 26
|
||||
#define SPINDLE_LASER_PWM_PIN 46 // MUST BE HARDWARE PWM
|
||||
#define SPINDLE_LASER_ENABLE_PIN 62 // Pin should have a pullup!
|
||||
#define SPINDLE_DIR_PIN 48
|
||||
#elif !(ENABLED(ULTRA_LCD) && ENABLED(NEWPANEL)) // use expansion header if no LCD in use
|
||||
#define SPINDLE_LASER_ENABLE_PIN 16 // Pin should have a pullup/pulldown!
|
||||
#define SPINDLE_DIR_PIN 17
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user