hello there forum
I am battling with my ramps 1.4 (reprap discount), marlin 2.0,
functionality/triggering is hard. why doesn’t M3 / M5 seem to trigger. I can confirm that the code is error free according to Arduino complier.
in this important section in configuration_adv.h, the seemingly key code is uncommented and compiles.
#define SPINDLE_FEATURE
//#define LASER_FEATURE
#if EITHER(SPINDLE_FEATURE, LASER_FEATURE)
#define SPINDLE_LASER_ACTIVE_STATE true // Set to “HIGH” if the on/off function is active HIGH
#define SPINDLE_LASER_PWM true // Set to “true” if your controller supports setting the speed/power
#define SPINDLE_LASER_PWM_INVERT false // Set to “true” if the speed/power goes up when you want it to go slower
and according to the file at marlin-2.0.x/marlin/src/pins/ramps/pins_RAMPS.h
(There are mentions in several files referring to “pins_MYBOARD.h” but this file doesn’t really exist or something, please wtf!)
//
// M3/M4/M5 - Spindle/Laser Control
//
#if HAS_CUTTER && !defined(SPINDLE_LASER_ENA_PIN)
#if !NUM_SERVOS // Use servo connector if possible
#define SPINDLE_LASER_ENA_PIN 4 // Pullup or pulldown!
#define SPINDLE_LASER_PWM_PIN 6 // Hardware PWM
#define SPINDLE_DIR_PIN 5
#elif HAS_FREE_AUX2_PINS
#define SPINDLE_LASER_ENA_PIN 40 // Pullup or pulldown!
#define SPINDLE_LASER_PWM_PIN 44 // Hardware PWM
#define SPINDLE_DIR_PIN 65
#else
#error “No auto-assignable Spindle/Laser pins available.”
#endif
#endif
the important pin in question is pin #4, which is (D4) supposedly. a PWM pin.
the top-right pin in the SERVOS area with 4 sets of 3-pin outs.
so I should be able to use
M3 S1300
to turn on the D4 pin.
the Gcodes can tell marlin to perform arcs successfully via Arduino serial monitor, but it reads error back that M commands are “unknown”
also it sends back the “m3: unknown” when I’m watching via serial monitor and marlin is running code from an sd card.
there is a spindle dropdown menu in marlin now that spindle is enabled in configuration_adv.h
the menu option for on/off won’t toggle when selected, and the speed of 193 is displaying when I’m running a gcode via sdcard. yet I can “turn off” spindle with select when running code program, though no actual change in running program. when speed: 193 is selected it reverts to 0 when attempted adjust.
and of course nothing gets triggered in D4, my relay doesn’t turn on via signal, I’m using a grove 1.2 relay, Pins are: ground,5+,signal input. there is no power or signals coming from D4 and accompanying GND&5+ pins either.
my marlin does a very dark reset when its done with running any gcode now. I remember that it used to send me back to the main screen when its complete.
if anyone has the link to the GCODE / hardware test file for ramps or marlin w/e then that might help some.
otherwise if anybody has any ideas as to what is failing… also, should I do something different besides M3 S1300 to get my signal to the relay to be solid on, no on/off dancing?
Im triggering a plasma cutter signal, it needs a solid on no PWM. thank you in advance, thank you for taking the time to read this. have a great day if possible.