MEGAsquirt A place to collectively sort out this megasquirt gizmo

MapDaddy ADC values?

Thread Tools
 
Search this Thread
 
Old 10-17-2007, 06:01 PM
  #1  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
Default MapDaddy ADC values?

Anyone know how to get ADC values for 0V and 5V for the mapdaddy 4 bar? Thanks
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-17-2007, 06:19 PM
  #2  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
Default

like the kpa and its corresponding V?
neogenesis2004 is offline  
Leave a poscat 0 Leave a negcat
Old 10-17-2007, 06:21 PM
  #3  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
Default

http://www.freescale.com/files/senso.../MPXH6400A.pdf
neogenesis2004 is offline  
Leave a poscat 0 Leave a negcat
Old 10-17-2007, 07:03 PM
  #4  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
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
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-17-2007, 08:22 PM
  #5  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
Default

What do you mean by Total ADC? Thats the part I dont follow.
neogenesis2004 is offline  
Leave a poscat 0 Leave a negcat
Old 10-17-2007, 08:59 PM
  #6  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
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.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-17-2007, 09:26 PM
  #7  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
Default

You just need the slope? Thats what it sounds like.
neogenesis2004 is offline  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 01:35 AM
  #8  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
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  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 09:41 AM
  #9  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
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.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 09:55 AM
  #10  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
Default

You can't change the scale in the software for the 400kpa sensor?
neogenesis2004 is offline  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 10:07 AM
  #11  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
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.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 10:26 AM
  #12  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
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  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 10:29 AM
  #13  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
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  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 10:31 AM
  #14  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
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.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 10:45 AM
  #15  
Elite Member
iTrader: (12)
 
neogenesis2004's Avatar
 
Join Date: Aug 2006
Posts: 4,413
Total Cats: 20
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  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 05:25 PM
  #16  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
Default

I doubt it's computational error. I messaged the creator of the software in the Palm subforum at MSEFI.com.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 05:34 PM
  #17  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
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  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 05:53 PM
  #18  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
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.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 06:32 PM
  #19  
Elite Member
iTrader: (5)
 
Atlanta93LE's Avatar
 
Join Date: Sep 2006
Location: Marietta, GA
Posts: 2,195
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  
Leave a poscat 0 Leave a negcat
Old 10-18-2007, 08:15 PM
  #20  
Ben
Supporting Vendor
Thread Starter
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
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.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Leave a poscat 0 Leave a negcat


Quick Reply: MapDaddy ADC values?



All times are GMT -4. The time now is 11:19 PM.