Marlin 2.0 Marlin-MPCNC_Ramps_T8_16T_LCD_32step

New Home Forum Mostly Printed CNC – MPCNC Troubleshooting – MPCNC Marlin 2.0 Marlin-MPCNC_Ramps_T8_16T_LCD_32step

This topic contains 15 replies, has 3 voices, and was last updated by  Peter M Zielinski 4 months, 1 week ago.

Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #86316

    Peter M Zielinski
    Participant

    So now that I know it moves I want to update the firmware to the newest one Marlin 2.0 Marlin-MPCNC_Ramps_T8_16T_LCD_32step, but I need to set it for the LCD2004_GLCD, Enable min and max end stops, and swap Y axis and E1.

    I’m not great at this firmware stuff and the new one is set up a little different with folders etc.

    I found the pins_ramps and did the Y axis and E1 swap.

    could use an assist on the others

    other than the pins change everything is just as I downloaded from Ryan’s github.

    Thanks

    #86377

    Ryan
    Keymaster

    You did the hard part! The other changes are just in configuration.h. You will comment out the LCD I have and choose the other LCD. Flash and test.

    The endstops you have to enable and choose the logic you want (normally open, normally closed), flash test with M119.

    #86768

    Peter M Zielinski
    Participant

    ok so I partially figured it out. wouldn’t compile at first because of the graphical splash screen stuff, but end stops are not working at all. no min, no max. my switches are normally open and there is the touch plate.

    //============================== Endstop Settings ===========================
    //===========================================================================

    // @section homing

    // Specify here all the endstop connectors that are connected to any endstop or probe.
    // Almost all printers will be using one per axis. Probes will use one or more of the
    // extra connectors. Leave undefined any used for non-endstop and non-probe purposes.
    #define USE_XMIN_PLUG
    #define USE_YMIN_PLUG
    #define USE_ZMIN_PLUG
    #define USE_XMAX_PLUG
    #define USE_YMAX_PLUG
    #define USE_ZMAX_PLUG

    // Enable pullup for all endstops to prevent a floating state
    #define ENDSTOPPULLUPS
    #if DISABLED(ENDSTOPPULLUPS)
    // Disable ENDSTOPPULLUPS to set pullups individually
    //#define ENDSTOPPULLUP_XMAX
    //#define ENDSTOPPULLUP_YMAX
    //#define ENDSTOPPULLUP_ZMAX
    //#define ENDSTOPPULLUP_XMIN
    //#define ENDSTOPPULLUP_YMIN
    //#define ENDSTOPPULLUP_ZMIN
    //#define ENDSTOPPULLUP_ZMIN_PROBE
    #endif

    // Enable pulldown for all endstops to prevent a floating state
    //#define ENDSTOPPULLDOWNS
    #if DISABLED(ENDSTOPPULLDOWNS)
    // Disable ENDSTOPPULLDOWNS to set pulldowns individually
    //#define ENDSTOPPULLDOWN_XMAX
    //#define ENDSTOPPULLDOWN_YMAX
    //#define ENDSTOPPULLDOWN_ZMAX
    //#define ENDSTOPPULLDOWN_XMIN
    //#define ENDSTOPPULLDOWN_YMIN
    //#define ENDSTOPPULLDOWN_ZMIN
    //#define ENDSTOPPULLDOWN_ZMIN_PROBE
    #endif

    // Mechanical endstop with COM to ground and NC to Signal uses “false” here (most common setup).
    #define X_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
    #define Y_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
    #define Z_MIN_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
    #define X_MAX_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
    #define Y_MAX_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
    #define Z_MAX_ENDSTOP_INVERTING true // set to true to invert the logic of the endstop.
    #define Z_MIN_PROBE_ENDSTOP_INVERTING true // set to true to invert the logic of the probe.

    /**
    * Stepper Drivers
    *
    * These settings allow Marlin to tune stepper driver timing and enable advanced options for
    * stepper drivers that support them. You may also override timing options in Configuration_adv.h.
    *
    * A4988 is assumed for unspecified drivers.
    *
    * Options: A4988, A5984, DRV8825, LV8729, L6470, TB6560, TB6600, TMC2100,
    * TMC2130, TMC2130_STANDALONE, TMC2208, TMC2208_STANDALONE,
    * TMC26X, TMC26X_STANDALONE, TMC2660, TMC2660_STANDALONE,
    * TMC5130, TMC5130_STANDALONE
    * :[‘A4988’, ‘A5984’, ‘DRV8825’, ‘LV8729’, ‘L6470’, ‘TB6560’, ‘TB6600’, ‘TMC2100’, ‘TMC2130’, ‘TMC2130_STANDALONE’, ‘TMC2208’, ‘TMC2208_STANDALONE’, ‘TMC26X’, ‘TMC26X_STANDALONE’, ‘TMC2660’, ‘TMC2660_STANDALONE’, ‘TMC5130’, ‘TMC5130_STANDALONE’]
    */
    #define X_DRIVER_TYPE DRV8825
    #define Y_DRIVER_TYPE DRV8825
    #define Z_DRIVER_TYPE DRV8825
    #define X2_DRIVER_TYPE DRV8825
    #define Y2_DRIVER_TYPE DRV8825
    #define Z2_DRIVER_TYPE DRV8825
    //#define Z3_DRIVER_TYPE A4988
    #define E0_DRIVER_TYPE DRV8825
    #define E1_DRIVER_TYPE DRV8825
    #define E2_DRIVER_TYPE DRV8825
    //#define E3_DRIVER_TYPE A4988
    //#define E4_DRIVER_TYPE A4988
    //#define E5_DRIVER_TYPE A4988

    // Enable this feature if all enabled endstop pins are interrupt-capable.
    // This will remove the need to poll the interrupt pins, saving many CPU cycles.
    //#define ENDSTOP_INTERRUPTS_FEATURE

    /**
    * Endstop Noise Threshold
    *
    * Enable if your probe or endstops falsely trigger due to noise.
    *
    * – Higher values may affect repeatability or accuracy of some bed probes.
    * – To fix noise install a 100nF ceramic capacitor inline with the switch.
    * – This feature is not required for common micro-switches mounted on PCBs
    * based on the Makerbot design, which already have the 100nF capacitor.
    *
    * :[2,3,4,5,6,7]
    */
    //#define ENDSTOP_NOISE_THRESHOLD 2

    #86786

    Ryan
    Keymaster

    What does m119 say?

    #86938

    Peter M Zielinski
    Participant

    at rest

    18:45:57.117 : Reporting endstop status
    18:45:57.117 : x_min: open
    18:45:57.117 : x_max: open
    18:45:57.117 : y_min: open
    18:45:57.117 : y_max: open
    18:45:57.117 : z_min: open
    18:45:57.117 : z_max: open

    with each switch activated

    18:47:33.864 : Reporting endstop status
    18:47:33.864 : x_min: TRIGGERED
    18:47:33.864 : x_max: open
    18:47:33.864 : y_min: open
    18:47:33.864 : y_max: open
    18:47:33.864 : z_min: open
    18:47:33.864 : z_max: open
    18:47:50.489 : Reporting endstop status
    18:47:50.489 : x_min: open
    18:47:50.489 : x_max: open
    18:47:50.489 : y_min: open
    18:47:50.489 : y_max: TRIGGERED
    18:47:50.489 : z_min: open
    18:47:50.489 : z_max: open
    18:48:15.586 : Reporting endstop status
    18:48:15.586 : x_min: open
    18:48:15.586 : x_max: open
    18:48:15.586 : y_min: TRIGGERED
    18:48:15.586 : y_max: open
    18:48:15.586 : z_min: open
    18:48:15.586 : z_max: open
    18:48:51.380 : Reporting endstop status
    18:48:51.380 : x_min: open
    18:48:51.380 : x_max: TRIGGERED
    18:48:51.380 : y_min: open
    18:48:51.380 : y_max: open
    18:48:51.380 : z_min: open
    18:48:51.380 : z_max: open
    18:49:25.524 : Reporting endstop status
    18:49:25.524 : x_min: open
    18:49:25.524 : x_max: open
    18:49:25.524 : y_min: open
    18:49:25.524 : y_max: open
    18:49:25.524 : z_min: open
    18:49:25.524 : z_max: TRIGGERED
    18:49:50.191 : Reporting endstop status
    18:49:50.191 : x_min: open
    18:49:50.191 : x_max: open
    18:49:50.191 : y_min: open
    18:49:50.191 : y_max: open
    18:49:50.191 : z_min: TRIGGERED
    18:49:50.191 : z_max: open

    #87022

    Peter M Zielinski
    Participant

    So basically the switches all work as they should so why doesn’t it stop moving when they are triggered? I’m more confused now.

    #87024

    Ryan
    Keymaster

    I only have the firmware set for trigger activation when homing (g28) they are off all other times to prevent false triggers.

    1 user thanked author for this post.
    #87252

    Peter M Zielinski
    Participant

    Thanks for the tip Ryan. I found the setting in the configuration.adv.h. All endstops now functioning.  Motion is smooth. next test tomorrow I hope.

    #87689

    Peter M Zielinski
    Participant

    Tried to use sad card to run crown won’t read SD card Ug!

    #87698

    Peter M Zielinski
    Participant

    That’s SD but it did make me sad

    #87873

    Barry
    Participant

    Smaller sd cards work best, need to be fat32.

    #88098

    Peter M Zielinski
    Participant

    Thanks Barry, tried 1GB fat32 still not reading can’t find smaller

    #88131

    Barry
    Participant

    Mine is 4gb.  Make sure the gcode is .gcode and not .nc .

    2 users thanked author for this post.
    #88389

    Peter M Zielinski
    Participant

    well I figured the SD problem out today my cards were too old and slow – 1gb was the “big one” got an new 8gb and it works fine.

    ran the crown with a sharpie zip tide to the leg of the z cam out well enough to know I’m good. thanks guys.

    #88464

    Ryan
    Keymaster

    Wow, really? I had no idea that could be a thing. It is almost always the bigger faster cards causing a problem for some reason.

    I think it is time for a new LCD design with some updated components…V1 MPLCD…a kid can dream right?

    #88670

    Peter M Zielinski
    Participant

    Sounds good.

Viewing 16 posts - 1 through 16 (of 16 total)

You must be logged in to reply to this topic.