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
what`s wrong with my .inc file?
Moderator: LT401Vette
-
- Helpful MS/Extra'er
- Posts: 81
- Joined: Fri Jul 31, 2015 4:30 pm
-
- 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?
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?
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
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
-
- Helpful MS/Extra'er
- Posts: 81
- Joined: Fri Jul 31, 2015 4:30 pm
Re: what`s wrong with my .inc file?
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
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
-
- 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?
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...LT401Vette wrote: Are you using a table function that is passed in volts instead of ADC?
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
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