Using AFR instead of Volts with AEM Wideband in AFR Target Table - Page 2 - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MEGAsquirt A place to collectively sort out this megasquirt gizmo

Reply
 
 
 
LinkBack Thread Tools
Old 01-06-2009, 02:03 PM   #21
Boost Pope
Thread Starter
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Delicious and Moist.
Posts: 26,328
Total Cats: 1,926
Default

I am puzzled by this.

In a standard MegaTune install, there is no \msns-extra\ subdirectory within the \mtCfg\ directory. There is only one copy of the msns-extra.ini file, and it is located in:
C:\Program Files\MegaSquirt\MegaTune2.25\mtCfg

I just tested this on a fresh PC, which has never had MT installed on it.

First, I went to MS-Extra Manual Index and downloaded MegaTune from the link provided in the first section. I installed it.

Next, I ran MTConfig, and set the Lambda Sensor to "AEM_Linear", under Car1 -> settings.ini -> Settings -> LAMBDA_SENSOR.

Next, I ran MegaTune, and turned on 8x8 target tables for VE1 under "More Settings" -> "Lambda AFR Settings". Then I opened the "AFR Targets for VE Table 1" screen, and viola! All cells are labeled in AFR instead of Volts.


Those of you who are finding a copy of the msns-extra.ini file in this \msns-extra\ subdirectory which I don't have, where did you get your copy of Megatune, and what have you changed?
Joe Perez is online now   Reply With Quote
Old 01-06-2009, 02:09 PM   #22
Elite Member
iTrader: (30)
 
Join Date: Aug 2007
Location: Va Beach
Posts: 7,282
Total Cats: 0
Default

Quote:
Originally Posted by Joe Perez View Post
I am puzzled by this.

In a standard MegaTune install, there is no \msns-extra\ subdirectory within the \mtCfg\ directory. There is only one copy of the msns-extra.ini file, and it is located in:
C:\Program Files\MegaSquirt\MegaTune2.25\mtCfg

I just tested this on a fresh PC, which has never had MT installed on it.

First, I went to MS-Extra Manual Index and downloaded MegaTune from the link provided in the first section. I installed it.

Next, I ran MTConfig, and set the Lambda Sensor to "AEM_Linear", under Car1 -> settings.ini -> Settings -> LAMBDA_SENSOR.

Next, I ran MegaTune, and turned on 8x8 target tables for VE1 under "More Settings" -> "Lambda AFR Settings". Then I opened the "AFR Targets for VE Table 1" screen, and viola! All cells are labeled in AFR instead of Volts.


Those of you who are finding a copy of the msns-extra.ini file in this \msns-extra\ subdirectory which I don't have, where did you get your copy of Megatune, and what have you changed?

I copied everything for my MS off of a friend.

My files go like this....

Megasquirt main/Megasquirt/Megatune 2.25/mtCfg

and then I have both msns-extra.ini and I have msns-extra Configuration settings. I had to make the changes in the configuration settings in order to get it to work.
__________________
Best Car Insurance | Auto Protection Today | FREE Trade-In Quote
levnubhin is offline   Reply With Quote
Old 01-06-2009, 03:19 PM   #23
Boost Pope
Thread Starter
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Delicious and Moist.
Posts: 26,328
Total Cats: 1,926
Default

Ok, I think I see what's going on here.

I downloaded the setup package that DIY has for the MSPNP, and installed it. In that situation, I did have multiple copies of the msns-extra.ini file- one in the normal location, and one in each car subfolder. Editing the one in the usual location did nothing, while editing the one in the car subfolder (ie: C:\Program Files\MegaSquirt\MSPNP MM9093 without AFM\) made it work.

You guys must all be using renegade copies of MT.
Joe Perez is online now   Reply With Quote
Old 01-11-2009, 02:52 PM   #24
Senior Member
iTrader: (4)
 
Join Date: Oct 2006
Location: Tampa
Posts: 780
Total Cats: 0
Default

Great, I get to finally fix the table, and Vista, which is on my laptop, wont let me do it. I did a trial change on the MT software on the desktop with XP, and it worked like a charm. Vista gives me this message when I try to save the file.

Cannot create the C:\Program Files\Megasquirt\MSPNP MM9697 without MAF\msns-extra.ini file.

Make sure that the path and the file name are correct.

WTF? I hate Vista.
96rdstr is offline   Reply With Quote
Old 01-11-2009, 03:10 PM   #25
Boost Czar
iTrader: (61)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 72,900
Total Cats: 1,792
Default

you have to make changes outside the directory then overwrite the file. Vista does not let you change anything within the program files directory.
Braineack is offline   Reply With Quote
Old 01-11-2009, 03:33 PM   #26
Senior Member
iTrader: (4)
 
Join Date: Oct 2006
Location: Tampa
Posts: 780
Total Cats: 0
Default

Quote:
Originally Posted by Braineack View Post
you have to make changes outside the directory then overwrite the file. Vista does not let you change anything within the program files directory.
Sorry Brain, I am not sure I understand. How do you do that in Vista? I only use the laptop with Vista for the car. Everything else I own and use on a daily basis has XP on it. Sorry if I sound like a lame ***.

Do I need to save the file in say, my documents, and then copy it over to the directory? ****, I feel like a moron.

Edit: OK, so I successfully changed the files to reflect the change in multiple locations.
Under Megasquirt/Megatune/mtcfg/
I did the change in the regular msns-extra.ini
msns-extra config

nothing.

Then Megasquirt/MSPNP 9697 without MAF/msns-extra config

Nothing has changed. Voltage still shows instead of AFR. Still at a loss.

Last edited by 96rdstr; 01-11-2009 at 04:07 PM.
96rdstr is offline   Reply With Quote
Old 03-07-2009, 03:19 PM   #27
Junior Member
 
Join Date: Dec 2007
Posts: 159
Total Cats: 0
Default

I was wondering if anybody had figured this out for vista yet? I can get all the way to editing te file in notebook, but when I try to save the changes it tells me that the path and location are wrong. this is my first non apple computer so I'm pretty ignorant with this stuff, but it doesn't make sense that I can open a file make changes and then not be able to save the changes. anybody run across this?

edit: so can anybody tell me what these numbers represent? the reason I ask is; when looking at the other sensor in the ini. files these are very similar to this one #elif INNOVATE_0_5_LINEAR
00821 afrBins1 = array, U08, 0, [8x8], "AFR", 0.0392, 255.0, 10.0, 20.0, 1
Joe's numbers "AFR", 0.038666, 255.0, 10.0, 20.0, 1


my thinking was this( and please tell me if I'm way off base here) since these are so close can I just change my sensor type to the innovate_0_5_linear and get the same result? Or is that first number to far off to be in the same ball park?

Last edited by dynokiller90; 03-07-2009 at 03:43 PM.
dynokiller90 is offline   Reply With Quote
Old 03-08-2009, 12:54 AM   #28
Junior Member
 
Join Date: Dec 2007
Posts: 159
Total Cats: 0
Default

ok ,so after searching with google about the problems with ini. files and vista I came across a little golden nugget that is just to damn simple. so for you guys out there running vista just open megatune as "administrator" by right clicking and select run "as admin"

that will let you edit the configurator files. now if I can just figure out how to apply those changes to the specific vehicle sub file I'll be set.
dynokiller90 is offline   Reply With Quote
Old 04-30-2009, 03:05 AM   #29
Senior Member
iTrader: (2)
 
Join Date: Apr 2008
Location: Tallahassee, FL
Posts: 1,378
Total Cats: 0
Default

Why is mine still not working?
Attached Thumbnails
Using AFR instead of Volts with AEM Wideband in AFR Target Table-wtfmatemegasquirt.jpg  
naarleven is offline   Reply With Quote
Old 04-30-2009, 08:54 AM   #30
Junior Member
iTrader: (7)
 
Join Date: Mar 2007
Location: Texas Panhandle
Posts: 213
Total Cats: 0
Default

If you're using DIYs megatune package, you have to edit the msns-extra.ini inside the project folder. When megatune opens, if it asks you which project you want to use, find the folder that is associated with that project. I think it will have the same name, and be in the Megasquirt folder. Hope that's clear.
jsisco is offline   Reply With Quote
Old 04-30-2009, 09:40 AM   #31
Boost Czar
iTrader: (61)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 72,900
Total Cats: 1,792
Default

plus you have vista so you need to make sure you're actually changing the file inside the directory and it's not copying it to the compatibility files folder.
Braineack is offline   Reply With Quote
Old 07-21-2009, 10:48 PM   #32
Junior Member
iTrader: (1)
 
Join Date: Apr 2008
Location: Atlanta, GA
Posts: 293
Total Cats: -3
Default

I think I might give this a shot but how does this translate over to the settings in Megalogviewer? Does that run off the same config file and automatically change too?
jdmaddox88 is offline   Reply With Quote
Old 10-21-2009, 05:06 PM   #33
Elite Member
iTrader: (24)
 
chriscar's Avatar
 
Join Date: Dec 2007
Location: Carrollton TX
Posts: 1,702
Total Cats: 13
Default

Joe,

Please update post #1 to include the fact that if you're running an MSPNP you need to edit the .ini file within the project directory.

Thanks,
Chris
chriscar is offline   Reply With Quote
Old 01-13-2010, 12:45 AM   #34
Cpt. Slow
iTrader: (25)
 
curly's Avatar
 
Join Date: Oct 2005
Location: Oregon City, OR
Posts: 12,110
Total Cats: 518
Default

For those of you using TunerStudios, I had to make a new project for it to finally tell me there was an error. That error was that my .msq was using volts, while my configuration was using AFR. I clicked "ok" and it working fine now. I guess each project only reads the config file when you first make it, so any changes you make don't take effect after that.

Sorry for the necro post btw
curly is offline   Reply With Quote
Old 02-07-2010, 10:52 PM   #35
I EAT CUM
iTrader: (6)
 
Join Date: Sep 2008
Location: Redneck, Texas
Posts: 1,218
Total Cats: -1
Default

Any idea of what to do if the values are off? I finally got TS to work off of AFR's but now my wb gauge is 1 point lower than what TS is saying...Yes everything is selected correctly.
Turbo_4 is offline   Reply With Quote
Old 02-08-2010, 09:48 AM   #36
Junior Member
 
Join Date: Dec 2009
Location: Shelbina, MO (North East)
Posts: 335
Total Cats: 0
Default

Quote:
Originally Posted by Turbo_4 View Post
Any idea of what to do if the values are off? I finally got TS to work off of AFR's but now my wb gauge is 1 point lower than what TS is saying...Yes everything is selected correctly.
I have had the same problem for a while and have not had time to try fixing it. I'll let you know if I ever get it figured out.
rweatherford is offline   Reply With Quote
Old 02-08-2010, 11:40 AM   #37
I EAT CUM
iTrader: (6)
 
Join Date: Sep 2008
Location: Redneck, Texas
Posts: 1,218
Total Cats: -1
Default

Quote:
Originally Posted by rweatherford View Post
I have had the same problem for a while and have not had time to try fixing it. I'll let you know if I ever get it figured out.
I'm just not sure which to trust. Is my idle in the 12's or 13's, lol.
Turbo_4 is offline   Reply With Quote
Old 02-08-2010, 11:43 AM   #38
Elite Member
iTrader: (3)
 
Mach929's Avatar
 
Join Date: Oct 2004
Location: lansdale PA
Posts: 2,500
Total Cats: 0
Default

trust your gauge, i've been just tuning with my afr target table adjusted to give suitable results on my gauge
Mach929 is offline   Reply With Quote
Old 02-08-2010, 12:31 PM   #39
I EAT CUM
iTrader: (6)
 
Join Date: Sep 2008
Location: Redneck, Texas
Posts: 1,218
Total Cats: -1
Default

I was hoping TS would be more accurate...well damn. My gauge is definitely lower than I would like.
Turbo_4 is offline   Reply With Quote
Old 03-03-2010, 01:33 AM   #40
Junior Member
 
Join Date: Dec 2009
Location: Shelbina, MO (North East)
Posts: 335
Total Cats: 0
Default

I need some help with this again it seems. I am trying to come up with an excell graph that compares what MT or TS calculates for my AFR versus what my AEM gauge displays. However I am missing some information on how the AFR is calculated. When I substitute "egoADC" for volts in my calculations my MS/TS AFR calculation basically doesn't change and the AFR's only go from 9.72 to 9.91 from 0-5 volts. Obviously "egoADC" does not = volts.

What is "egoADC" and how do I calculate gauge volts into egoADC to input into my calculation. I figured I could play around in excell and find what value works best to get my AFR readings to match without guessing and trying in the car.

Thanks.

EDIT:

Never mind I think I found it.. I'll play some more and report back...

"As an example lets assume we have send the string "A" and received an array of 22 bytes. We want to know the exhaust gas oxygen sensor value. We read egoADC as a value of 142. This is the unscaled 'raw' value. To get the scaling we have to use the file msns-extra.ini Open msns-extra.ini (found along with the firmware) and search for egoADC. The first instance will be the listing of the above table. Do another Find and you'll find this:

egoVoltage = { egoADC / 255.0 * 5.0 } ; EGO sensor voltage.

To find the voltage input to MS1/Extra Voltage = (egoADC/255) * 5 or stated differently; the ego input voltage to MS1/Extra is represented by 0-255 for the voltage range of 0-5V."
rweatherford is offline   Reply With Quote
 
 
Reply

Related Topics
Thread Thread Starter Forum Replies Last Post
Back to Stock Part Out!! Turbo Parts, MS2 Enhanced 01-05, Suspension, and MOAR! StratoBlue1109 Miata parts for sale/trade 16 10-02-2015 10:39 AM
1996 Turbo Build Goldwar DIY Turbo Discussion 2 09-29-2015 10:20 AM
wiring wideband ground to battery terminal btabor ECUs and Tuning 10 09-28-2015 06:33 PM
why is my car running like pewp? (tune/datalog) itsMikey MSPNP 3 09-28-2015 07:40 AM


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -4. The time now is 01:55 PM.