what`s wrong with my .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
red-racing
Helpful MS/Extra'er
Posts: 81
Joined: Fri Jul 31, 2015 4:30 pm

what`s wrong with my .inc file?

Post by red-racing »

Hi, I have configured my ADC7 to read OILTEMP in °C

The ADC is working correct, but the guage is stuck at 97°C, which also is my max in the inc file.

a test in the bench shows: 2.5v on ADC7 gives ADC=522,(correct) but still 97°C on guage(incorrect). I tried with 18ohm resistor, then I got 38ADC, then the guage shows 133°C. But all ADC above, even 1023 shows 97°C

I have attached the .inc file. please find something wrong with it.
thanks
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: what`s wrong with my .inc file?

Post by LT401Vette »

The entries should go from low volts to high as that is the look up key and it starts looking at the 1st row.

What does your ini entry look like? Are you using a table function that is passed in volts instead of ADC?
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
red-racing
Helpful MS/Extra'er
Posts: 81
Joined: Fri Jul 31, 2015 4:30 pm

Re: what`s wrong with my .inc file?

Post by red-racing »

Hi Phil
I have now turned my table, but the guage now dispalys 7c on 522ADC (2.500v)
so something must still be wrong.

I have no custom entry in the .ini file, I used the ass custom channel in TS 2.9
oil_temp.inc
LT401Vette
Super MS/Extra'er
Posts: 12733
Joined: Sat Jul 16, 2005 8:07 am
Location: Moorseville, NC
Contact:

Re: what`s wrong with my .inc file?

Post by LT401Vette »

LT401Vette wrote: Are you using a table function that is passed in volts instead of ADC?
I'm guessing you are using straight adc7 as the input. That would be doing the lookup based on ADC, meanwhile your inc file is volts. So you would need adc7 to read less than 5 before your oil pressure would ever read anything but the railed out 7...

One way to handle this is to convert your volts to ADC values in your inc file:

Code: Select all

; ; DRE oil/water temp sensor
; Use w. 470 Ohm pullup resistor (VREF)
; Volts	Temp

221.5	97
259.8	90
315.9	80
382	70
463.8	60
542.1	50
628.9	40
717.1	30
778.9	21
875.9	7

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