Welcome! Log In Create A New Profile

Advanced

Gadget3D Printer updating to latest Marlin

Posted by ianch 
Gadget3D Printer updating to latest Marlin
November 02, 2020 04:51AM
Hi

I have had a Gadget3D printer for many years now but needed to change the Arduino Mega controller.

Looks like gadget3d have long since gone and therefore I can not download the firmware.

I gather (please correct me if I'm wrong) the Gadget3D is based on a Prusa i3 running Marlin.

So the heres the questions.

1) Do you think this printer would be able to take Marlin 2.x?
If no, then Marlin 1.0 or 1.1?

2) Does anyone have a configuration.h and adv files for a Gadget3D?

Many thanks
Re: Gadget3D Printer updating to latest Marlin
November 02, 2020 07:04AM
All mega2560 based controller can have marlin 2

looks like the ramps part is a little different though, so details here [reprap.org]

No preconfigured files for it though that I can find.
Re: Gadget3D Printer updating to latest Marlin
November 02, 2020 08:40AM
I have a G3D board and it works fine with Marlin, you just need to get the settings right. You can retrieve a lot of setting from the EEPROM so start there. Connect it through serial and type M503 to display the values.

Don't forget to set the G3D panel in the LCD section is you have that one, it's different from the normal Ramps and uses one more set of AUX pins.


http://www.marinusdebeer.nl/
Re: Gadget3D Printer updating to latest Marlin
November 02, 2020 08:51AM
Hi

From the M503 command, which of values marry up to the values in the configuration.h file.

Yes, I've got the Gadget3D display as well

Do you have configuration.h and configuration_adv.h files that you can share, please?
Re: Gadget3D Printer updating to latest Marlin
November 02, 2020 11:15AM
Quote
ianch
Hi

From the M503 command, which of values marry up to the values in the configuration.h file.

Yes, I've got the Gadget3D display as well

Do you have configuration.h and configuration_adv.h files that you can share, please?

I mean values such as acceleration, printbed dimensions, steps/mm, etc. These are machine-specific sadly and I only have the Ramps and LCD, not the entire machine they produced..


http://www.marinusdebeer.nl/
Re: Gadget3D Printer updating to latest Marlin
November 03, 2020 01:27PM
Argh!!!

I'm confused....

I'm looking at the page GADGET3D Shield

On that page it says to edit the file pins_RAMPS_14.h but on the latest version of Marlin 2 there is no such file.

So the question is where should I put all those #defines for the Gadget3D shield pins?
Re: Gadget3D Printer updating to latest Marlin
November 03, 2020 04:50PM
Quote
ianch
Argh!!!

I'm confused....

I'm looking at the page GADGET3D Shield

On that page it says to edit the file pins_RAMPS_14.h but on the latest version of Marlin 2 there is no such file.

So the question is where should I put all those #defines for the Gadget3D shield pins?

No worries, it's now called the 'pins_RAMPS.h' file. However, I do not remember having to specifically edit the pins file for the G3D shield. It worked out of the box when I selected as far as I can remember. I'm not sure if you should add the section. Maybe Dust can explain if this can damage anything.


http://www.marinusdebeer.nl/
Re: Gadget3D Printer updating to latest Marlin
November 03, 2020 08:43PM
The issue when you cross post the same thing to different areas you get different parts of the answer in different areas and you need to check all of them!

From Prusa i3 and variants

Quote
Roberts_Clif
GADGETS3D
Technical specifications:

Build Volume (L | W | H - mm) 200 x 200 x 200
Precise laser cut acrylic frame
Wade style Extruder
G3D Hot-End for 1.75mm/3mm PLA/ABS (pre-assembled)
Nozzle diameter 0.4mm/0.5mm
Material: 1.75mm/3mm PLA, ABS, Nylon, Laybrick, Laywood
High power RAMPS 1.4 electronics (pre-configured)
G3D Stepper Motor drivers
High torque NEMA 17 Steppers Motors
G3D LCD display with G3D Shield including SD card reader and SD Card for standalone operation
4-point platform leveling
Removable acrylic sheet for good adhesion and easy part removing
Recommended software: RepetierHost & Slic3r
Assembly manual
Marlin firmware (pre-configured)


After a little research I found this information

Marlin
Configuration.H

#define MOTHERBOARD 34 // Sets the Motherboard as Ramps 1.3/1.4 with two extruders = #define MOTHERBOARD BOARD_RAMPS_14_EFB
#define TEMP_SENSOR_0 1 // This defines the first temperature sensor as a 100k thermistor.
#define G3D_PANEL // Un-comment this line to enable the Gadgets3d LCD and SD panel.

Edited 1 time(s). Last edit at 11/03/2020 09:55PM by Dust.
Re: Gadget3D Printer updating to latest Marlin
November 04, 2020 07:50AM
Thank you DUST

All of you have covered most of the important information, that should be able to get his firmware started.

I found github.com GADGETS3D sorry to report that it is empty.

Edited 2 time(s). Last edit at 11/04/2020 07:52AM by Roberts_Clif.


Computer Programmer / Electronics Technician
Re: Gadget3D Printer updating to latest Marlin
November 09, 2020 09:39AM
Hi all,

Many thanks for your help and assistance on this.

I have now got Marlin 2 running on my Gadget3D printer, yay!!!

I did run into another problem on the way, which was I couldn't get Marlin to compile using the latest Ardiuno IDE.
In the end, I gave up and switched to PlatformIO with VSCode. Compiles no problems in PlatformIO

Anyhow my Gadget3D printer....

I started with version 2.0.7.2 of Marlin, downloaded from MarlinFW

I took the configuration from an old Gadget3D zip file that originally came with the printer and then made the following changes to the configuration.h file.

#ifndef MOTHERBOARD
  #define MOTHERBOARD BOARD_RAMPS_14_EFB
#endif

#define TEMP_SENSOR_0 1
#define TEMP_SENSOR_BED 0   // Change to 1 if you've added a hot bed

#if ENABLED(PIDTEMP)
  #if ENABLED(PID_PARAMS_PER_HOTEND)
    // ....
  #else
    // G3D HotEnd v1.2  -  Taken from my V1.0 Marlin supplied with the G3D
    #define DEFAULT_Kp  31.43
    #define DEFAULT_Ki   2.34
    #define DEFAULT_Kd 105.57
  #endif
#endif

// Mechanical endstop 
#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.

// Changed from default because the Z axis was moving at double the distance. 
#define DEFAULT_AXIS_STEPS_PER_UNIT   { 80, 80, 2000, 746 }

// Changed to match the V1.0 Marlin supplied with the G3D
#define DEFAULT_MAX_FEEDRATE          { 400, 400, 3, 20 }

// Changed to match the V1.0 Marlin supplied with the G3D
#define DEFAULT_MAX_ACCELERATION      { 7000, 7000, 25, 10000 }

// Changed to match the V1.0 Marlin supplied with the G3D
#define DEFAULT_ACCELERATION          2000    // X, Y, Z and E acceleration for printing moves
#define DEFAULT_RETRACT_ACCELERATION  2000    // E acceleration for retracts
#define DEFAULT_TRAVEL_ACCELERATION   2000    // X, Y, Z acceleration for travel (non printing) moves

// Changed to match the V1.0 Marlin supplied with the G3D
#define CLASSIC_JERK   // uncomment
#if ENABLED(CLASSIC_JERK)
  #define DEFAULT_XJERK 15.0
  #define DEFAULT_YJERK  0.3
  #define DEFAULT_ZJERK  3.0
  
  // ....
#endif  

#define INVERT_X_DIR true
#define INVERT_Y_DIR false
#define INVERT_Z_DIR true

// The size of the print bed on Gadget3D
#define X_BED_SIZE 180
#define Y_BED_SIZE 180

#define Z_MAX_POS 170

/**
 * EEPROM
 * ....
 */
#define EEPROM_SETTINGS     // Persistent storage with M500 and M501 - Uncomment this line

// Changed to match the V1.0 Marlin supplied with the G3D
#define PREHEAT_1_FAN_SPEED   255
#define PREHEAT_2_FAN_SPEED   255

#define SDSUPPORT

// Changed to match the V1.0 Marlin supplied with the G3D
#define REVERSE_ENCODER_DIRECTION
#define REVERSE_MENU_DIRECTION

//#define G3D_PANEL
#define G3D_PANEL

// I found the below settings from [reprap.org]
// But they don't seem to be needed
// So left commented out
//#define BEEPER 33           // Beeper and is Connected into GADGETS3D shield MEGA_18BEEPER
//#define LCD_PINS_RS 16      // LCD control and is connected into GADGETS3D  shield LCDRS
//#define LCD_PINS_ENABLE 17  // LCD enable pin and is connected into GADGETS3D shield LCDE
//#define LCD_PINS_D4 23      // LCD signal pin, connected to Gadgets3D shield LCD4
//#define LCD_PINS_D5 25      // LCD signal pin, connected to Gadgets3D shield LCD5
//#define LCD_PINS_D6 27      // LCD signal pin, connected to Gadgets3D shield LCD6
//#define LCD_PINS_D7 29      // LCD signal pin, connected to Gadgets3D shield LCD7
//#define BTN_EN1 37          // Encoder left direction, connected to Gadgets3D shield S_E1
//#define BTN_EN2 35          // Encoder right direction, connected to Gadgets3D shield S_E2
//#define BTN_ENC 31          // Encoder Click, connected to Gadgets3D shield S_EC

So far so good, and the printer is back up and printing again.

grinning smiley
Re: Gadget3D Printer updating to latest Marlin
November 09, 2020 11:26AM
Thank you ianch

This will be really good information for anyone who decides to convert to marlin with a GADGETS3D


Computer Programmer / Electronics Technician
Sorry, only registered users may post in this forum.

Click here to login