Where do I store a custom thermistor table November 17, 2013 05:44PM |
Registered: 10 years ago Posts: 219 |
Re: Where do I store a custom thermistor table January 15, 2014 01:33PM |
Registered: 11 years ago Posts: 1,277 |
Re: Where do I store a custom thermistor table January 15, 2014 02:53PM |
Registered: 11 years ago Posts: 1,320 |
Re: Where do I store a custom thermistor table January 15, 2014 03:14PM |
Registered: 11 years ago Posts: 1,277 |
Do I go ahead and use every value in the pdf? Someone mentioned every other one.Quote
jbernardis
The thermistor tables themselves are, oddly enough, in a file named thermistortables.h.
You can actually over-write any table that is there, or add your own. Just make sure then the variable name agrees with the number you specify in configuration.h - that is if you specify 99 in config.h, name your table temptable_99. You might also want to surround it with the #if - #endif statements you see checking for your table numbers, but if you are never going to distribute the file, it's probably a bit easier to make the compilation unconditional by omitting these lines.
If you are going to over-write a table, make sure it is not the same number table that you might be using for some other thermistor
EDIT - I see the code you have already is written to replace table 1. This is fine as long as 1) you do not use the original table 1 for any other heater, and 2) you remove the original table 1 so that you don't end up with 2 temptable_1 declarations in the code. This will cause a compilation error.
Re: Where do I store a custom thermistor table January 15, 2014 05:47PM |
Registered: 11 years ago Posts: 1,320 |
Re: Where do I store a custom thermistor table January 15, 2014 05:51PM |
Registered: 11 years ago Posts: 1,277 |
I guess I could see how much the main one takes up but considering the Arduino will only be used for this memory may not be that much of an issue.Quote
jbernardis
I don't know the arguments on one over the other. I guess it comes down to a shorter table takes less memory and is faster to search. The tradeoff is a loss of resolution, but it might not be so bad.
Re: Where do I store a custom thermistor table January 24, 2014 12:48AM |
Registered: 12 years ago Posts: 258 |