Welcome! Log In Create A New Profile

Advanced

Wrong temperature

Posted by alfadex 
Wrong temperature
April 29, 2013 03:24PM
Could somebody make the table for the extruder , because i can not understand how to do this table please.
My extruder is this
[www.ebay.com]
and the thermistor is this
EPCOS 100K Thermistor B57560G104F
Attachments:
open | download - ThermistorTable.h (3.3 KB)
Re: Wrong temperature
April 29, 2013 04:28PM
This is what I use in my fork of Marlin for Mendel90

#if (THERMISTORHEATER_0 == 8) || (THERMISTORHEATER_1 == 8) || (THERMISTORHEATER_2 == 8) || (THERMISTORBED == 8) // Epcos B57560G104F 100K on JHeadMKV
const short temptable_8[][2] PROGMEM = {
    {     344,       300     }, // r=   101 adc=21.47
    {     369,       295     }, // r=   108 adc=23.08
    {     397,       290     }, // r=   117 adc=24.83
    {     428,       285     }, // r=   126 adc=26.75
    {     461,       280     }, // r=   136 adc=28.84
    {     498,       275     }, // r=   147 adc=31.12
    {     538,       270     }, // r=   160 adc=33.63
    {     582,       265     }, // r=   173 adc=36.37
    {     630,       260     }, // r=   188 adc=39.38
    {     683,       255     }, // r=   205 adc=42.69
    {     741,       250     }, // r=   223 adc=46.32
    {     805,       245     }, // r=   243 adc=50.31
    {     875,       240     }, // r=   266 adc=54.71
    {     953,       235     }, // r=   290 adc=59.55
    {    1038,       230     }, // r=   318 adc=64.88
    {    1132,       225     }, // r=   349 adc=70.77
    {    1236,       220     }, // r=   384 adc=77.26
    {    1351,       215     }, // r=   423 adc=84.42
    {    1477,       210     }, // r=   466 adc=92.32
    {    1617,       205     }, // r=   515 adc=101.05
    {    1771,       200     }, // r=   570 adc=110.68
    {    1941,       195     }, // r=   632 adc=121.30
    {    2128,       190     }, // r=   702 adc=133.01
    {    2335,       185     }, // r=   782 adc=145.91
    {    2562,       180     }, // r=   872 adc=160.11
    {    2811,       175     }, // r=   975 adc=175.70
    {    3085,       170     }, // r=  1092 adc=192.81
    {    3384,       165     }, // r=  1225 adc=211.53
    {    3711,       160     }, // r=  1378 adc=231.95
    {    4066,       155     }, // r=  1554 adc=254.15
    {    4451,       150     }, // r=  1756 adc=278.21
    {    4866,       145     }, // r=  1989 adc=304.15
    {    5312,       140     }, // r=  2258 adc=331.99
    {    5787,       135     }, // r=  2570 adc=361.68
    {    6290,       130     }, // r=  2934 adc=393.15
    {    6820,       125     }, // r=  3357 adc=426.25
    {    7373,       120     }, // r=  3852 adc=460.80
    {    7945,       115     }, // r=  4433 adc=496.54
    {    8531,       110     }, // r=  5116 adc=533.16
    {    9125,       105     }, // r=  5921 adc=570.31
    {    9722,       100     }, // r=  6875 adc=607.60
    {   10314,        95     }, // r=  8007 adc=644.61
    {   10895,        90     }, // r=  9356 adc=680.92
    {   11458,        85     }, // r= 10968 adc=716.13
    {   11998,        80     }, // r= 12903 adc=749.86
    {   12509,        75     }, // r= 15234 adc=781.80
    {   12987,        70     }, // r= 18051 adc=811.66
    {   13428,        65     }, // r= 21469 adc=839.27
    {   13832,        60     }, // r= 25635 adc=864.50
    {   14197,        55     }, // r= 30732 adc=887.30
    {   14523,        50     }, // r= 36995 adc=907.68
    {   14811,        45     }, // r= 44725 adc=925.72
    {   15064,        40     }, // r= 54309 adc=941.52
    {   15284,        35     }, // r= 66249 adc=955.23
    {   15472,        30     }, // r= 81195 adc=967.02
    {   15633,        25     }, // r=100000 adc=977.08
    {   15769,        20     }, // r=123783 adc=985.58
    {   15883,        15     }, // r=154025 adc=992.71
    {   15978,        10     }, // r=192694 adc=998.64
    {   16057,         5     }, // r=242427 adc=1003.54
    {   16121,         0     }, // r=306773 adc=1007.56
};
#endif


[www.hydraraptor.blogspot.com]
Re: Wrong temperature
April 29, 2013 06:52PM
Or heres one suitable for teacup and generated for the 10K sense resistors on your Gen7.

{      11,       300     }, // r=   108 adc=10.92
    {      12,       295     }, // r=   116 adc=11.69
    {      13,       290     }, // r=   124 adc=12.53
    {      13,       285     }, // r=   133 adc=13.45
    {      14,       280     }, // r=   143 adc=14.45
    {      16,       275     }, // r=   154 adc=15.54
    {      17,       270     }, // r=   166 adc=16.74
    {      18,       265     }, // r=   180 adc=18.04
    {      19,       260     }, // r=   194 adc=19.48
    {      21,       255     }, // r=   210 adc=21.05
    {      23,       250     }, // r=   228 adc=22.78
    {      25,       245     }, // r=   247 adc=24.69
    {      27,       240     }, // r=   269 adc=26.79
    {      29,       235     }, // r=   293 adc=29.11
    {      32,       230     }, // r=   319 adc=31.67
    {      34,       225     }, // r=   349 adc=34.50
    {      38,       220     }, // r=   382 adc=37.63
    {      41,       215     }, // r=   419 adc=41.11
    {      45,       210     }, // r=   460 adc=44.97
    {      49,       205     }, // r=   506 adc=49.26
    {      54,       200     }, // r=   558 adc=54.03
    {      59,       195     }, // r=   616 adc=59.34
    {      65,       190     }, // r=   681 adc=65.26
    {      72,       185     }, // r=   756 adc=71.87
    {      79,       180     }, // r=   840 adc=79.24
    {      87,       175     }, // r=   935 adc=87.46
    {      97,       170     }, // r=  1043 adc=96.65
    {     107,       165     }, // r=  1167 adc=106.92
    {     118,       160     }, // r=  1309 adc=118.38
    {     131,       155     }, // r=  1471 adc=131.18
    {     145,       150     }, // r=  1657 adc=145.44
    {     161,       145     }, // r=  1872 adc=161.33
    {     179,       140     }, // r=  2121 adc=179.00
    {     199,       135     }, // r=  2409 adc=198.60
    {     220,       130     }, // r=  2744 adc=220.27
    {     244,       125     }, // r=  3135 adc=244.16
    {     270,       120     }, // r=  3592 adc=270.37
    {     299,       115     }, // r=  4129 adc=298.97
    {     330,       110     }, // r=  4762 adc=330.00
    {     363,       105     }, // r=  5510 adc=363.42
    {     399,       100     }, // r=  6397 adc=399.11
    {     437,        95     }, // r=  7454 adc=436.90
    {     476,        90     }, // r=  8718 adc=476.47
    {     517,        85     }, // r= 10235 adc=517.44
    {     559,        80     }, // r= 12064 adc=559.34
    {     602,        75     }, // r= 14278 adc=601.62
    {     644,        70     }, // r= 16970 adc=643.69
    {     685,        65     }, // r= 20258 adc=684.91
    {     725,        60     }, // r= 24295 adc=724.70
    {     763,        55     }, // r= 29274 adc=762.52
    {     798,        50     }, // r= 35447 adc=797.90
    {     830,        45     }, // r= 43140 adc=830.49
    {     860,        40     }, // r= 52782 adc=860.06
    {     886,        35     }, // r= 64935 adc=886.48
    {     910,        30     }, // r= 80344 adc=909.77
    {     930,        25     }, // r=100000 adc=930.00
    {     947,        20     }, // r=125236 adc=947.35
    {     962,        15     }, // r=157852 adc=962.05
    {     974,        10     }, // r=200296 adc=974.35
    {     985,         5     }, // r=255930 adc=984.53
    {     993,         0     }, // r=329399 adc=992.86

And, if I can remember my C syntax this time, theres a thermistortables.h with both this and your bed thermistor table ready to go.
Attachments:
open | download - alfadexthermistortable.h (6.7 KB)
Re: Wrong temperature
April 30, 2013 04:37PM
thanks,
Andrew my extruder thermistor is 100K

I place this file you upload but says this


Re: Wrong temperature
April 30, 2013 05:38PM
The '10K' refers to the value of RT1 on your gen7. Admittedly, 10K is a strange value for that resistor, the standard 4.7K thermistor pullup is generally considered to be higher than optimal, 10K is definitely hurting resolution at the top end of the table. Compare mine with nophead's and, after dividing all the ADC values by 16 to suit teacup, you'll see that the ADC values for high temperatures are much further apart than in mine, which only gives 5C resolution above 260C, this might not be good enough, particularly when printing ABS.

You are sure that those are 10K resistors? If not, post the actual value.

As for fixing it, put a comma after the closing bracking on line 151 while I kick myself for posting comma separated lists without commas.

Edited 1 time(s). Last edit at 04/30/2013 06:17PM by Andrew Smith.
Re: Wrong temperature
May 01, 2013 03:28AM
Ah i see, so i am changing now RT1 to 4.7K .


I place comma on line 151 and now it says something at line 214



I place a comma at line 214 instead of ( ; ) and now says


Re: Wrong temperature
May 01, 2013 07:05AM
Sorry. These compile.
Attachments:
open | download - alfadexthermistortables10k.h (6.5 KB)
open | download - alfadexthermistortables4k7.h (6.5 KB)
Re: Wrong temperature
May 01, 2013 11:27AM
Andrew, i notice here at the board that RT2 refers to the extruder temperature ,so I change RT2 to 4.7 K.
But now , bed temperature is about 10 degrees more than normal and extruder temperature is 16383 .


Re: Wrong temperature
May 01, 2013 11:59AM
If you only changed one of the RT resistors, you'll need to combine the bed table from the 10K file and the extruder table from the 4k7 file.

As for the extruder, did you adjust config.h to read the thermistor from pin AI01? The last I saw of your config.h, it was set for a thermocouple. Heres the correct line 305:

DEFINE_TEMP_SENSOR(extruder,       TT_THERMISTOR,  AIO1,      THERMISTOR_EXTRUDER)
Attachments:
open | download - alfadexthermistortable.h (6.7 KB)
Re: Wrong temperature
May 01, 2013 12:41PM
ok tnx Andrew ,i think now everything is working ok ,line 305 was wrong ,now it is correct.

And for the bed, do you thing it would be better to change RT1 to 4.7 K ?
Re: Wrong temperature
May 01, 2013 12:56PM
You'd get better resolution at high temperatures, but the 10K table you're using is good enough for bed control, so I wouldn't bother.

The file I included last post has a bed table for a 10K sense resistor and an extruder table for a 4k7 resistor.
Re: Wrong temperature
May 01, 2013 01:05PM
yes yes i see, i really appreciate your patience ,if i need something else i'll be back smileys with beer
Re: Wrong temperature
May 02, 2013 09:31AM
Quote

And for the bed, do you thing it would be better to change RT1 to 4.7 K ?

Maybe this answers your question: [reprap.org] 4K7 is pretty ideal for beds, 1K is close to ideal for extruders. The lower the resistor value, the higher the temperature of the area with the highest resolution. Higher resolution means better accuracy of the measurements.

If you wonder why there isn't a 1K resistor by default: only very few people take the efforts to make their own thermistor table, so such a change would confuse people more than it would help.


Generation 7 Electronics Teacup Firmware RepRap DIY
     
Re: Wrong temperature
May 02, 2013 12:39PM
i see what is happening when a lower resistance is placed there, thank you
And one of these people that is confusing of making that table is me, i have read many times about that table,byt i cannot understand how to make that. But as Andrew said ,because bed temperature is not high enough as extruder ,wrong will be small enough
Sorry, only registered users may post in this forum.

Click here to login