MapDaddy ADC values? - Miata Turbo Forum - Boost cars, acquire cats.

Welcome to Miataturbo.net   Members
 


MEGAsquirt A place to collectively sort out this megasquirt gizmo

Closed Thread
 
 
 
LinkBack Thread Tools
Old 10-17-2007, 07:01 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 MapDaddy ADC values?

Anyone know how to get ADC values for 0V and 5V for the mapdaddy 4 bar? Thanks
Ben is offline  
Old 10-17-2007, 07:19 PM   #2
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

like the kpa and its corresponding V?
neogenesis2004 is offline  
Old 10-17-2007, 07:21 PM   #3
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

neogenesis2004 is offline  
Old 10-17-2007, 08:03 PM   #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

Thanks, that helps some. I'm kind of confused here, so I might get some terminology wrong. Looks like the minimum reading is 20kPa and max is 400kPa.

I'm trying to figure out my PalmLog offset and scale values. The manual doesn't explain it for the MAP sensor. It does explain it for the WB sensor, but there seems to be differences.

Offset is easy enough; looks like it's 20 from the datasheet you linked.
I'm THINKING that the calculation for scale for the MAP sensor is
Maximum Value -- Minimum Value
-------------------------------
Total ADC
In this case, (400-20)/255 = 1.490


For the WB calculation, it's expressly stated in the Palm Tune manual
Maximum Value -- Minimum Value
-----------------------------------
5V
Ben is offline  
Old 10-17-2007, 09:22 PM   #5
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

What do you mean by Total ADC? Thats the part I dont follow.
neogenesis2004 is offline  
Old 10-17-2007, 09:59 PM   #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

Well, if I understand it correctly, the ecu converts a 0-5V signal value from a sensor from voltage to a corresponding ADC value. The ADC values range from 0 to 255. So the ecu matches a linear signal to one of 256 values.

There's something else going on... I just am not finding it.
Ben is offline  
Old 10-17-2007, 10:26 PM   #7
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

You just need the slope? Thats what it sounds like.
neogenesis2004 is offline  
Old 10-18-2007, 02:35 AM   #8
Supporting Vendor
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,441
Total Cats: 198
Default

1.49 is correct, ie 1 ADC step = 1.49kpa, so 100 ADC raw value = 149+20 = 169kpa, 255 raw ADC = 379,95+20 =~ 400kpa.

Jim
Reverant is offline  
Old 10-18-2007, 10:41 AM   #9
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

Thanks Jim, that is what I was thinking. BUT here's the kicker. The default values for the standard 2.5 bar sensor are offset 9 and scale .984
(250-9)/255 = .945 =! .984


The 'real world' difference may only mean a couple kpa, but still.
Ben is offline  
Old 10-18-2007, 10:55 AM   #10
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

You can't change the scale in the software for the 400kpa sensor?
neogenesis2004 is offline  
Old 10-18-2007, 11:07 AM   #11
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

The scale is set by the sensor--I'm trying to tell the software what that scale is for my given sensor.

One would think the relationship is linear, and a simple y = mx + b equation would be appropriate.
Ben is offline  
Old 10-18-2007, 11:26 AM   #12
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

I understood that the sensor sets the scale, reread my question. I take it that there isn't an option in the software than to tell it what the scale is. The relationship is linear. On the datasheet there is a graph of Vout vs. KPa. On the top left it shows the formula for finding Vout. Just multiply Vin into the part in parentheses since you know it to be ~5V. As for modifying stuff for scale I'd need to see the software, and from looking at website I need a palm pilot to do that. I might be able to scan the source code if its well commented, but I don't have the right software to recomplie it if I found the variable that needed changing.
neogenesis2004 is offline  
Old 10-18-2007, 11:29 AM   #13
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

It looks like the complier suite the guy used has a free trial, I'll check it out once I get home from my adviser meeting.
neogenesis2004 is offline  
Old 10-18-2007, 11:31 AM   #14
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

Yes, you do enter the scale into the software. The software gets 2 variables:
the offset or minimum value "b"
the scale or slope "m"

I'm trying to figure out how the guy who wrote the software got a slope of .984 for the stock 2.5 bar, when the logical solution is .945. Then, I can apply those findings to settings for my 4 bar.
Ben is offline  
Old 10-18-2007, 11:45 AM   #15
Elite Member
iTrader: (12)
 
Join Date: Aug 2006
Location: Central-ish VA
Posts: 4,449
Total Cats: 16
Default

I would just account for it as computational error. Best bet it to email the guy if you want to know what he did. All I can do is guess.
neogenesis2004 is offline  
Old 10-18-2007, 06:25 PM   #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 doubt it's computational error. I messaged the creator of the software in the Palm subforum at MSEFI.com.
Ben is offline  
Old 10-18-2007, 06:34 PM   #17
Supporting Vendor
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,441
Total Cats: 198
Default

The default offset for the MPX4250AP is 20 and not 9, check the Freescale Datasheet. Maybe his specific part deviated a lot (check the % of deviation chart).

Jim
Reverant is offline  
Old 10-18-2007, 06:53 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

Yeah, that's interesting. As is my kpafactor.ini for the 4250 shows that it's 11.

Unfortunately, I can't find a kpafactor.ini for the 6400 that shows output vs adc ??

I have 11 and 1.49 plugged into the palm as offset and scale respectively. it seems to be accurate with the engine off, but off by 2-3 kPa high at idle. Can't really drive and compare between the laptop and palm.
Ben is offline  
Old 10-18-2007, 07:32 PM   #19
Elite Member
iTrader: (5)
 
Atlanta93LE's Avatar
 
Join Date: Sep 2006
Location: Marietta, GA
Posts: 2,198
Total Cats: 1
Default

Hey Ben; do you think the values I used for the regular sensor are off? I wouldn't be surprised...I don't think I screwed with them; I think I just left them as default (assuming default was for standard sensor).
Atlanta93LE is offline  
Old 10-18-2007, 09:15 PM   #20
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,689
Total Cats: 99
Default

yes, I think that the default values for the 2.5 bar are incorrect. but the calculation only affects the map display on the palm; it does not affect anything when your computer compiles the datalog.

I would probably try offset 11 and scale .937
I got those values from my mapfactor.ini file for the 2.5 bar sensor.

I wish I could find a mapfactor file for the 4 bar sensor. I'm kind of confused that I can't.
Ben is offline  
 
 
Closed Thread

Related Topics
Thread Thread Starter Forum Replies Last Post
My solution for Oiltemp and Oilpressure input into Megasuirt (MS3) Zaphod MEGAsquirt 41 01-24-2016 01:25 PM
FS/FT: 03.5 Mazdaspeed Protege leatherface24 Cars for sale/trade 15 10-16-2015 12:35 PM
MSPNPPro-MM0105: Coolant Temperature Output slomiata MEGAsquirt 5 10-07-2015 02:11 PM
Interpreting Deatchwerks Dead Times from Battery Wizard compuw22c MEGAsquirt 0 09-14-2015 07:08 PM
ME221 Now has Autotune and Long Term Fuel Trim Tables Motorsport-Electronics ECUs and Tuning 0 09-05-2015 09:02 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:11 PM.