Welcome! Log In Create A New Profile

Advanced

Marlin Firmware

Posted by ztodd1 
Marlin Firmware
February 05, 2015 07:05AM
Purchased a used 3d printer from craigslist. I installed the Repetier and I am able to manually move the extruder around with no problem. My question. Is there anyway to extract the existing marlin settings off the printer so I can tweak those settings or will I have to start from scratch with my settings? I recently changed extruders and want to put the PID settings in.
Re: Marlin Firmware
February 05, 2015 12:43PM
Hi,

i asked the exact same thing, and the post is still on page one.

Anyway, here is the Link:
http://forums.reprap.org/read.php?146,456233
Re: Marlin Firmware
February 05, 2015 04:13PM
Yea I tried that already and no go. I was afraid that it was a lost cause.
Re: Marlin Firmware
February 05, 2015 05:09PM
O.k.
then i guess you have to start over.
There is this Calculator http://prusaprinters.org/calculator/ that make it a lot easier.
With some Values you have to experiment a bit thou. Like Accelaration and the Jerk settings. I suggest to try the default Values first.

Hope this helps.
Re: Marlin Firmware
February 05, 2015 10:06PM
You can autotune the PID smiling smiley

Just run M303 E0 S200 C8 at a G-Code prompt.

Here's what it means:
M303 = start PID auto tune
E0 = first extruder
S200 = heat to 200C
C8 = cycle the heat on/off 8 times

The debug window will provide your PID parameters!


-David

Find me online at:
Thingiverse
Instructables.com
LinkedIn
Facebook

Check out my FolgerTech Prusa i3 (plexi) at MindRealm.net
Re: Marlin Firmware
February 06, 2015 04:07PM
I did the PID autotune. That why I wanted to get the settings that was already on the board so all I had to do was key the values in. I just know with my luck, I will end up with a paperweight!
Re: Marlin Firmware
February 06, 2015 04:49PM
Oh... here's the extruder PID section from Marlin's Configuration.h file:

//===========================================================================
//============================= PID Settings ================================
//===========================================================================
// PID Tuning Guide here: [reprap.org]

// Comment the following line to disable PID and enable bang-bang.
#define PIDTEMP
#define BANG_MAX 255 // limits current to nozzle while in bang-bang mode; 255=full current
#define PID_MAX BANG_MAX // limits current to nozzle while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
#ifdef PIDTEMP
  //#define PID_DEBUG // Sends debug data to the serial port.
  //#define PID_OPENLOOP 1 // Puts PID in open loop. M104/M140 sets the output power from 0 to PID_MAX
  //#define SLOW_PWM_HEATERS // PWM with very low frequency (roughly 0.125Hz=8s) and minimum state time of approximately 1s useful for heaters driven by a relay
  //#define PID_PARAMS_PER_EXTRUDER // Uses separate PID parameters for each extruder (useful for mismatched extruders)
                                    // Set/get with gcode: M301 E[extruder number, 0-2]
  #define PID_FUNCTIONAL_RANGE 10 // If the temperature difference between the target temperature and the actual temperature
                                  // is more then PID_FUNCTIONAL_RANGE then the PID will be shut off and the heater will be set to min/max.
  #define PID_INTEGRAL_DRIVE_MAX PID_MAX  //limit for the integral term
  #define K1 0.95 //smoothing factor within the PID
  #define PID_dT ((OVERSAMPLENR * 10.0)/(F_CPU / 64.0 / 256.0)) //sampling period of the temperature routine

// If you are using a pre-configured hotend then you can use one of the value sets by uncommenting it
// Ultimaker
    #define  DEFAULT_Kp 22.2
    #define  DEFAULT_Ki 1.08
    #define  DEFAULT_Kd 114

// MakerGear
//    #define  DEFAULT_Kp 7.0
//    #define  DEFAULT_Ki 0.1
//    #define  DEFAULT_Kd 12

// Mendel Parts V9 on 12V
//    #define  DEFAULT_Kp 63.0
//    #define  DEFAULT_Ki 2.25
//    #define  DEFAULT_Kd 440
#endif // PIDTEMP


-David

Find me online at:
Thingiverse
Instructables.com
LinkedIn
Facebook

Check out my FolgerTech Prusa i3 (plexi) at MindRealm.net
Re: Marlin Firmware
February 13, 2015 08:36AM
Hi,
I have a unique problem my extruder One (E0) temperature constantly reads at 255 the other two extruders are at room temperature(E1, E2), does anybody have a solution.
I have already changed all the parts few times i.e the resistor thermistor etc are all fin.
I had PID on unitl now i have disabled it and BAng Bang is on.
Sorry, only registered users may post in this forum.

Click here to login