How to create custom thermistor inc file?

For discussion of Phil Tobin's Tuner Studio software (Only about the tuning software itself, not about how to tune or firmware features)

Moderator: LT401Vette

Post Reply
hobieboy
Master MS/Extra'er
Posts: 687
Joined: Mon Jun 27, 2005 1:13 pm
Location: Up North

How to create custom thermistor inc file?

Post by hobieboy »

Hi,
Sorry about newbie question as I upgrade from MS1-extra to MS3 and from Megatune to Tunerstudio.
As title says - how do I do that if I don't want to create a linear table using TS's built-in 3 point them generator?
TS allows me to import a custom inc file but what format? How to create that?

I had an old file created by Easytherm then I hand modified some values but that doesn't work.

thanks.
jsmcortina
Site Admin
Posts: 39612
Joined: Mon May 03, 2004 1:34 am
Location: Birmingham, UK
Contact:

Re: How to create custom thermistor inc file?

Post by jsmcortina »

hobieboy wrote:Hi,
Sorry about newbie question as I upgrade from MS1-extra to MS3 and from Megatune to Tunerstudio.
As title says - how do I do that if I don't want to create a linear table using TS's built-in 3 point them generator?
TS does not create a linear table, as far as I'm aware it uses the same algorithm as not-so-Easytherm did.

James
I can repair or upgrade Megasquirts in UK. http://www.jamesmurrayengineering.co.uk

My Success story: http://www.msextra.com/forums/viewtopic ... 04&t=34277
MSEXTRA documentation at: http://www.msextra.com/doc/index.html
New users, please read the "Forum Help Page".
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: How to create custom thermistor inc file?

Post by LT401Vette »

Yes, same algorithm.
You can see the resultant table data in the log file created in you project folder when you write the table.
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
hobieboy
Master MS/Extra'er
Posts: 687
Joined: Mon Jun 27, 2005 1:13 pm
Location: Up North

Re: How to create custom thermistor inc file?

Post by hobieboy »

Is there a way to download the .inc file currently used by MS3 then hand craft the changes then re-download it back?
Or do you mind pointing me to what field structure I need to use to create the customer .inc file so TS can import then download to MS3?

thanks!
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: How to create custom thermistor inc file?

Post by LT401Vette »

You could write the table with the 3 points, then use the data in std_ms2gentherm.log to make an inc file.

The inc file should have 1024 rows, one for each ADC.

Code: Select all

	DB	210T	;   0 - sensor failure.
	DB	475T	;   1 -  435.4
	DB	409T	;   2 -  369.4
	DB	375T	;   3 -  334.8
	DB	351T	;   4 -  311.7
...
...
Then tweak your values in that, load it as a custom.inc
You can look at the thermfactor.inc file in the TS install for an example, but that is only 255 ADC's
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
hobieboy
Master MS/Extra'er
Posts: 687
Joined: Mon Jun 27, 2005 1:13 pm
Location: Up North

Re: How to create custom thermistor inc file?

Post by hobieboy »

Hi Phil,
Thanks for the pointers. I tried what you suggested, but want to confirm that I did it right.
I unlocked the calibrate tap and select Coolant Temperature Sensor using the 3-point Therm Generator method.
I didn't select any sensor type (left it as blank). Then entered the 3 custom temp/resistance values I have.
After written to controller I looked at the std_ms2gentherm.log file. The comment section of the file still shows 3 different resistance/temperature pair than what I entered.

Is this correct behaviour? I did check the file modified date and it is correct.

thanks.
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: How to create custom thermistor inc file?

Post by Alfagta »

LT401Vette wrote:Yes, same algorithm.
You can see the resultant table data in the log file created in you project folder when you write the table.
Hello,
would it possible to add the A,B,C Constants to the log File which are used for the Calculation?

Best regards
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: How to create custom thermistor inc file?

Post by LT401Vette »

Alfagta wrote:
LT401Vette wrote:Yes, same algorithm.
You can see the resultant table data in the log file created in you project folder when you write the table.
Hello,
would it possible to add the A,B,C Constants to the log File which are used for the Calculation?

Best regards
It is.

Code: Select all

//------------------------------------------------------------------------------
//--  Generated by TunerStudio 
//--  Date: 4-14-2014
//--  Time: 7:59
//--  This file merely records what was sent to your Controller,        
//--  and may be deleted at any time.                                                    
//--  Selected type: Coolant Temperature Sensor 
//------------------------------------------------------------------------------

//-- generated using refTable Generator:thermGenerator
//-- Table Identifier:000//--    Generated by ThermTableGenerator using user input values. 
//--    Bias Resistor value: 2490.0 Ohms
//--    Temperature1: -40.0(C), 	Resistance 1: 100700.0 Ohms 
//--    Temperature2: 30.0(C), 	Resistance 2: 2238.0 Ohms 
//--    Temperature3: 99.0(C), 	Resistance 3: 177.0 Ohms 
//-- 

//----------------------------------------------------------//
ADC 	Value 	MSVal 	volts
0	180.00	1800 	0.000
1	180.00	1800 	0.005
2	180.00	1800 	0.010
...
...
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Alfagta
Experienced MS/Extra'er
Posts: 239
Joined: Wed Aug 21, 2013 2:54 am

Re: How to create custom thermistor inc file?

Post by Alfagta »

What i mean with A,B,C are the used Steinhart Hart Coefficients.
Easytherm did Saved the Coefficients to the file.
Alfa 156 GTA
Alfa 75 Race Car MS III -- alway latest FW
Alfa 164 V6 Turbo
Alfa 155 2,5TD RIP
Test MS II --always latest FW
Tunerstudio V2.6.11 Registered
MegaLog Viewer V3.4.04 Registered
LT401Vette
Super MS/Extra'er
Posts: 12731
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: How to create custom thermistor inc file?

Post by LT401Vette »

Ah, ok..
Phil Tobin
EFI Analytics, helping to simplify EFI
Next Generation tuning software.
Supporting all MegaSquirt versions and firmwares.
http://www.TunerStudio.com
http://www.efiAnalytics.com/MegaLogViewer/
Support the firmware running your engine:
http://www.msextra.com/doc/donations.html
Post Reply