MEGAsquirt A place to collectively sort out this megasquirt gizmo

How To: Custom Thermistor Tables

Thread Tools
 
Search this Thread
 
Old 06-20-2017, 01:51 PM
  #1  
SADFab Destructive Testing Engineer
Thread Starter
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default How To: Custom Thermistor Tables

Came across this when curly was trying to use an AEM temperature sensor, that wasn't the standard built in temperature sensor.

Turns out megasquirt has the ability to do one custom table, but the values need to be saved in a lookup table for ADC value and temperature. So some simple math, yet time consuming.

Well I found the program that was used to generate the GM curve that we all use, and was able to generate a new .inc file.

Some links and pictures.

Tools: Index of /megasquirt/tools/win32_bin (gentherm2.exe is what we need)



That command generated the .inc file for a 2490Ohm pickup, using 3 resistance/temp pairs to generate the curve.

Then, unlock your calibrations, and go to calibrate thermistor tables, and select Custom #1 Temperature Sensor, and custom inc file.



Browse to your file, select it, and write to controller.

Here are 2 .inc files. One for a 2.2k pullup AEM temp sensor, and the other for the 2.49k pullup AEM temp sensor.
2.49k AEM
2.2k AEM
aidandj is offline  
Old 06-20-2017, 03:26 PM
  #2  
Cpt. Slow
iTrader: (25)
 
curly's Avatar
 
Join Date: Oct 2005
Location: Oregon City, OR
Posts: 14,227
Total Cats: 1,147
Default

Thank you so much for going through the annoying process, I'll be trying this out in a few minutes.
curly is offline  
Old 06-20-2017, 04:01 PM
  #3  
SADFab Destructive Testing Engineer
Thread Starter
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

Side note. We just found out this only works in 1.5.0+ firmware.
aidandj is offline  
Old 06-21-2017, 09:10 AM
  #4  
Retired Mech Design Engr
iTrader: (3)
 
DNMakinson's Avatar
 
Join Date: Jan 2013
Location: Seneca, SC
Posts: 5,009
Total Cats: 857
Default

I may be missing something. Is it not possible to input sets of (3) values in TS and it generates the curve. That's what I did a few years back with my CLT probe. Put it in a chamber and read the resistance at -40, 70, and 250*, or something close to that and plugged numbers into TS and burned to MS.

Or is this in lieu of the above process when one has a published table of values? Still, one should be able to simply choose (3) sets from the table and enter them.
DNMakinson is offline  
Old 06-21-2017, 09:14 AM
  #5  
SADFab Destructive Testing Engineer
Thread Starter
iTrader: (5)
 
aidandj's Avatar
 
Join Date: Apr 2014
Location: Beaverton, USA
Posts: 18,642
Total Cats: 1,866
Default

I think you are right. But I'm not totally sure. I may be just overcomplicating things
aidandj is offline  
Old 12-12-2020, 11:05 PM
  #6  
Newb
 
Djovani_jr's Avatar
 
Join Date: Apr 2020
Location: Sakhalin Island
Posts: 8
Total Cats: 0
Question

Originally Posted by aidandj
Came across this when curly was trying to use an AEM temperature sensor, that wasn't the standard built in temperature sensor.

Turns out megasquirt has the ability to do one custom table, but the values need to be saved in a lookup table for ADC value and temperature. So some simple math, yet time consuming.

Well I found the program that was used to generate the GM curve that we all use, and was able to generate a new .inc file.

Some links and pictures.

Tools: Index of /megasquirt/tools/win32_bin (gentherm2.exe is what we need)



That command generated the .inc file for a 2490Ohm pickup, using 3 resistance/temp pairs to generate the curve.

Then, unlock your calibrations, and go to calibrate thermistor tables, and select Custom #1 Temperature Sensor, and custom inc file.



Browse to your file, select it, and write to controller.

Here are 2 .inc files. One for a 2.2k pullup AEM temp sensor, and the other for the 2.49k pullup AEM temp sensor.
2.49k AEM
2.2k AEM
Hi.
I downloaded gentherm2.exe.
I can't figure out how to use it. I start the application, some process happens and the window closes ...
Where do I need to enter 3 points, where does the new file appear?
Djovani_jr is offline  
Old 12-14-2020, 12:14 PM
  #7  
Junior Member
iTrader: (4)
 
irodd's Avatar
 
Join Date: Apr 2014
Location: Toronto, Canada
Posts: 173
Total Cats: 16
Default



irodd is offline  




All times are GMT -4. The time now is 07:13 AM.