sambuls / MarlinOnTrinus

All files needed to port Marlin to the Trinus 3D printer
29 stars 7 forks source link

Optimal PID Values for Hotend and Heated Bed #6

Open wildseyed opened 5 years ago

wildseyed commented 5 years ago

The following values will provide much tighter temperature controls.

Kp 20.52 Ki 0.96 Kd 110.08

To enable PID control for the heated bed, uncomment line 399 in Configuration.h:

define PIDTEMPBED

bedKp 26.25 bedKi 1.55 bedKd 111.28

Teslastellar commented 4 years ago

Is your heated bed the original with a MOSFET on the underside of the bed together with a bunch of LEDs? If so could you please let me know the pin configuration you used? The MOSFET on my bed starts getting hot and smoking the second Marlin boots if I use the configurations given here. Works fine with the original firmware so I have to be something wrong with the pin config. Thanks :)

ingmaniac commented 4 years ago

If you want your heated Bed to work, you have to change as follows:

configuration.h line 302 edit to "#define TEMP_SENSOR_BED 70"

pins_TRINUS.h line 61 uncomment "#define TEMP_BED_PIN 14 // Analog Input" line 67 add new line under "#define HEATER_0_PIN 9 // H6" with "#define HEATER_BED_PIN 8"

save compile and enjoy!

worked for me!

wildseyed commented 4 years ago

A couple of other lines to uncomment while you are in there

Line 1129 #define EEPROM_SETTINGS // Enable for M500 and M501 commands Line 399 #define PIDTEMPBED

Teslastellar commented 4 years ago

Worked out fine this time. Thank you guys. I have no idea what caused the MOSFET under the bed to smoke the first couple of times I tried.

Boavartii commented 4 years ago

Are these PID settings better than the default ones found in s-imphead/MarlinForTrinus?

wildseyed commented 4 years ago

Are these PID settings better than the default ones found in s-imphead/MarlinForTrinus?

Kp 30 Ki 2.01 K d125.47

These are my revised values. The previous values I posted were the result of an auto-tune. Don't put too much trust in other's PID values since there are several factors that can affect results. The bed is so thin that the filament cooling fan can throw things off if it's too aggressive. I'm considering putting an aluminum plate on there to add some thermal mass.

For anyone wanting to go this route, I recommend painting the bottom of the plate flat black, and leaving the top polished. This improves radiant absorption on the bottom, and keeps emissivity low on top, keeping the heat in better, if only slightly. And don't just use any old plate. Get some milled aluminum sheet. May as well be as flat as possible,

wildseyed commented 4 years ago

At 55°C I get a +/- 2°C oscillation with a period of 12 seconds. I think with a thermal mass it can get much tighter.

wildseyed commented 4 years ago

At 65°C it is very stable.

Boavartii commented 4 years ago

Kp 30 Ki 2.01 K d125.47

These are my revised values.

Are these your revised bed, or hotend values? Or do you use the same for both now?

wildseyed commented 4 years ago

Just the bed. Do you want the hot end values as well?

scepterr commented 3 years ago

Hi I just setup the skr mini e3 2.0 on the trinus, got mostly everything working except the bed, can somebody tell me which wires coming from the bed correspond to the thermistor and heater, thanks