Who's got a mapdaddy? - 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 10-20-2007, 11:32 PM   #1
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default Who's got a mapdaddy?

If you have a mapdaddy sensor, please post your kpafactor.inc file for me. I believe it will be called kpafactor6400.inc and will be found in the megasquirt folder/your car/ mtCfg. It's in there somewhere, please search for it. It should open in notepad and you can simply copy and paste here. Thanks.

<edit>
I believe that the barofactor.inc file will contain the same information that I need if you can post that file alternatively. either file should work. thx

Last edited by Ben; 10-20-2007 at 11:55 PM.
Ben is offline   Reply With Quote
Old 10-20-2007, 11:36 PM   #2
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

It will look simmilar to this, but will be scaled differently for the MPX6400A sensor

Quote:
; genmap 1.0 Motorola MPX4250A
KPAFACTOR: ; KPA ADC Volts (* = out of sensor range)
DB 100T ; 0 - 0.000*
DB 100T ; 1 - 0.020*
DB 100T ; 2 - 0.039*
DB 12T ; 3 - 0.059
DB 13T ; 4 - 0.078
~~~~~~~SNIP~~~~~~
DB 252T ; 252 - 4.941
DB 253T ; 253 - 4.961
DB 100T ; 254 - 4.980*
DB 100T ; 255 - 5.000*
Ben is offline   Reply With Quote
Old 10-20-2007, 11:55 PM   #3
Supporting Vendor
iTrader: (31)
 
Savington's Avatar
 
Join Date: Nov 2006
Location: Sunnyvale, CA
Posts: 14,372
Total Cats: 1,339
Default

Ben, I have one called kpafactor4115 and one called kpafactor4250, both in the src folder. I am almost certain Jerry installed a 4-bar MAP in my MSPNP before he shipped it to me. Nothing called 6400.
Savington is offline   Reply With Quote
Old 10-21-2007, 12:00 AM   #4
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

well it's absolutely not the 4250 file, that's the 2.5bar sensor.
Let's peak at the 4115 then, if it's a table like the one I posted that references ADC counts to MAP (in kPa) and sensor voltage output.
Ben is offline   Reply With Quote
Old 10-21-2007, 01:22 AM   #5
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

I've got no such file on any of my mtcfg files other than the 250 sensor one. I am using the 4bar though and it is reading correctly.
neogenesis2004 is offline   Reply With Quote
Old 10-21-2007, 01:36 AM   #6
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

http://www.msefi.com/viewtopic.php?t=28880

the guy who wrote palmtune thinks it should be there. I don't have it, but I was thinking that my MS was initially set up on Jerry @ DIY's notebook, not mine. the utility that he mentions exisits, but doesn't look like it is programmed for the 4 bar.

so...I'm pretty much out of ideas, but there has to be some way to find correlate MS ADC values with MAP readings with this sensor.
Ben is offline   Reply With Quote
Old 10-21-2007, 01:44 AM   #7
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

I dunno what to tell you bro, my MS works perfectly without the file and MT displays values correctly.
neogenesis2004 is offline   Reply With Quote
Old 10-21-2007, 02:00 AM   #8
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

Quote:
http://www.msefi.com/viewtopic.php?p...xh6400a#181482
#elif MPXH6400A
mapBins1 = array, U08, 170, [ 12], "kPa", 1.6197783, 2.147, 20.0, 400.0, 0
I would bet someone else's left ******** that the 1.6197783 is the sensor's scale, and 20 and 400 are the minimum and maximum readings.
Ben is offline   Reply With Quote
Old 10-21-2007, 02:10 AM   #9
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

I'm not exactly sure how the adc is calculatedm but 20-400 is correct, it said that in the datasheet I linked you. So you own me half of that ********
neogenesis2004 is offline   Reply With Quote
Old 10-21-2007, 02:34 AM   #10
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

Right, 380/255 = 1.49...I'd bet they get that 1.62 because the sensor's real world output is not 0-5V, but something more like .2-4.8V or whatever, so you miss out on some potential resolution there. I'll try it tomorrow and see what happens.
Ben is offline   Reply With Quote
Old 10-21-2007, 04:33 AM   #11
Supporting Vendor
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,441
Total Cats: 200
Default

0-5V depends on how 5 (AKA full scale) is your power supply voltage (usually around 4.92V with a LM7805 voltage reg) and how 0 is your ground (usually 0.02 to 0.05V). So you may have to compensate for that.

Jim
Reverant is offline   Reply With Quote
Old 10-23-2007, 04:11 PM   #12
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

OK, I believe I've got the scale value of 1.62 figured out.

The sensor range is 20-400 kPa, or span of 380kPa. It's output range is .2-4.8 VDC, meaning it has a span of 4.6VDC.
The MS has an ADC count of 255 over 5V.

4.6VDC/5VDC = .92
.92 x 255ADC = 234.6ADC

380 kPa
------- = 1.6197783 kPa/ADC = the scale =
234.6 ADC

Last edited by Ben; 10-23-2007 at 04:23 PM.
Ben is offline   Reply With Quote
Old 10-24-2007, 12:19 AM   #13
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Thumbs down Pitfall!

I sent my solution to the gentleman who wrote PalmLog. He noted that his base values were indeed inaccurate, but
Quote:
When displaying map in PalmTune, it's critical that the map displayed = MS internally calculated map, regardless of accuracy.
Essentially, it looks like MegaTune's kpafactor code is inaccurate!
So my solution, while correct, is wrong! Ugh.
Ben is offline   Reply With Quote
Old 10-24-2007, 12:37 AM   #14
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

I calculate my map in realtime with my abacus. eat that!
neogenesis2004 is offline   Reply With Quote
Old 10-24-2007, 12:40 AM   #15
Elite Member
iTrader: (13)
 
cjernigan's Avatar
 
Join Date: Oct 2006
Location: Atlanta, GA
Posts: 8,147
Total Cats: 6
Default

I want a mapdaddy, but i'm a cheapass and didn't do it the first time around. Didn't know better.
cjernigan is offline   Reply With Quote
Old 10-24-2007, 12:55 AM   #16
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

I believe that my slope is correct, but the offset value will be wrong, with my solution erring high. I was 9.9kPa high with my calculation for the 2.5bar sensor (with the correct slope). I do not know if that same 9.9 translates over to the 4 bar, or if the value is somehow completely different, as frankly I am having a hard time figuring out the code for the 4 bar. I seem to be missing a critical part of how MT handles the 4 bar. The kpafactor.inc file for the 2.5 bar makes it pretty friggin clear, however. So at this point, I am assuming that MT makes the 4 bar calculation by multiplying a value in the 2.5bar kpafactor file by a constant.

So now I'm basing assumptions on assumptions. It's a big house of cards, and if a card on the bottom falls, then the whole thing crashes down.

I'm going to nail this, or I'm going to slit my wrists. Or both. We'll see.
Ben is offline   Reply With Quote
Old 10-24-2007, 12:59 AM   #17
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

Just remember, down the road not across the street.
neogenesis2004 is offline   Reply With Quote
Old 10-25-2007, 02:21 PM   #18
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

Matt Cramer confirms there is no mapfactor file for the 4bar. MS uses interpolation, not a look up table, for this sensor.

So if my scale is right, then the offset value I have working is 4. This was derived from guess & check, and unfortunately is prone to a larger margin of error than I would have wanted. I believe that this margin of error is within 3kPa, or less than .5psi, and relates to the MAP value displayed on the palm only. It does not affect the values generated in a datalog.

Good news is at least we were able to produce exactly accurate values for the 2.5 bar sensor.
Ben is offline   Reply With Quote
Old 10-25-2007, 04:44 PM   #19
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Thumbs up Success

MapDaddy MAP Sensor Settings for PalmLog Environment Setup:
Scale: 1.62
Offset: 4

These settings are accurate in my car within a couple kPa.
Ben is offline   Reply With Quote
Old 10-25-2007, 04:48 PM   #20
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

Dang, who's your MapDaddy now?!
neogenesis2004 is offline   Reply With Quote
 
 
Reply

Related Topics
Thread Thread Starter Forum Replies Last Post
Rev built MS2 baro correction not working Dlaitini MEGAsquirt 3 01-08-2015 10:51 PM
MapDaddy vs. GM sensor Schuyler MEGAsquirt 11 05-15-2014 12:43 PM
MPX4250AP or MapDaddy? bryanlow MEGAsquirt 7 04-20-2012 12:15 AM
Running very rich after MapDaddy install shooterschmidty MEGAsquirt 4 07-10-2011 01:26 AM
MapDaddy ADC values? Ben MEGAsquirt 23 10-23-2007 04:36 PM


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 06:38 PM.