Parts Catalog Accessories Catalog How To Articles Tech Forums
Call Pelican Parts at 888-280-7799
Shopping Cart Cart | Project List | Order Status | Help



Go Back   PeachParts Mercedes-Benz Forum > Mercedes-Benz Tech Information and Support > Diesel Discussion > Diesel Performance Tuning

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-20-2008, 11:36 PM
300SD81's Avatar
1981 Mercedes-Benz 300SD
 
Join Date: Aug 2006
Location: University of Georgia
Posts: 1,082
My new Boost/EGT Gauge

I've posted bits and pieces of this elsewhere, but here it is all together...

Presenting the homemade digital boost/exhaust/EGT gauge!



(Note Mercedes Star etched into circuit board)

Total cost was $10 with generous use of free samples available from almost every semiconductor company. The large chip on there is a PIC microcontroller programmed with Microchip's USB serial port library and about 300 lines of my own C code. It uses a MAX6675 0-1024C thermocouple to digital converter for EGT and 2 MPX4250GP 0-36psi pressure sensors for boost/exhaust.

The display,

(oil/transmission sensors are in the works, temperature sensor chip outputs full scale when no thermocouple is conneted)

written in C#, simply reads the serial port (raw binary ADC input from microcontroller), converts the data to PSI/degF and outputs it on the gauge.

I haven't installed it in the car yet, but will be installing the boost gauge function only first. Don't have the money for new manifold/turbo gaskets at the moment, or a tap to thread the manifold. For now its going to be read on a laptop in the passenger seat, but this is going to be mounted under the glovebox as soon as I can find a old flatscreen that can be taken apart and mounted in the drivers sun visor.




I also have parts on order for an accelerometer, which I should be able to program to give me 0-60 times fairly easily (velocity is the integral of acceleration, should be easy to calculate). I can't get the gauge design for it to look good, which is why its not shown.

__________________
Ich liebe meine Autos!

1991 Mercedes-Benz 560SEL | Megasquirt MS3-Pro | 722.6 transmission w/ AMG paddles | Feind Motorsports Sway Bar | Stinger VIP Radar | AntiLaser Priority | PLX Wideband O2 | 150A Alternator | Cat Delete
1981 Mercedes-Benz 300SD | Blown engine, rebuilding someday...
1981 Mercedes-Benz 300SD | Rear ended, retired in garage.
2009 Yamaha AR230HO | Das Boot

Excessive speeding? It ain't excessive till I redline!
Reply With Quote
  #2  
Old 07-20-2008, 11:39 PM
Registered User
 
Join Date: Oct 2005
Posts: 4,263
Quote:
Originally Posted by 300SD81 View Post
I also have parts on order for an accelerometer, which I should be able to program to give me 0-60 times fairly easily (velocity is the integral of acceleration, should be easy to calculate). I can't get the gauge design for it to look good, which is why its not shown.
While it is true that velocity is the integral of acceleration (from 0 to t, specifically), have you considered how you would compute the error bound?
Reply With Quote
  #3  
Old 07-20-2008, 11:51 PM
Actros617's Avatar
Ich fahre dieseltypen
 
Join Date: Apr 2008
Location: Oklahoma
Posts: 1,143
O i wish i had VB, but cant afford it
__________________
Current Garage
2008 Mercedes GL320 CDI 188k mi Repair/Work in progress
1994 S350 160k mi Garage Queen & prepping for repairs
2005 E320 CDI 203k mi Healthy & Daily Driver
1994 S350 357k mi Retried as parts car
1984 300TD 214k mi Blown OM617 Poss OM603 Swap??

Sold
1987 300SDL 200K+
1994 S320 181K mi
2008 E320 Bluetec 127k mi
1999 S420 130K mi
1980 240D 360k mi
15+ Others that has come, stay and gone

GONE, BUT NOT FORGOTTEN
1995 E320 SE 220k mi
1984 300SD 350k mi
Reply With Quote
  #4  
Old 07-20-2008, 11:58 PM
pawoSD's Avatar
Dieselsüchtiger
 
Join Date: Oct 2004
Location: Grand Rapids, MI
Posts: 15,438
Would you be willing to share the code you wrote for that? I have VB and could use it....
__________________
-diesel is not just a fuel, its a way of life-
'15 GLK250 Bluetec 118k - mine - (OC-123,800)
'17 Metris(VITO!) - 37k - wifes (OC-41k)
'09 Sprinter 3500 Winnebago View - 62k (OC - 67k)
'13 ML350 Bluetec - 95k - dad's (OC-98k)
'01 SL500 - 103k(km) - dad's (OC-110,000km)
'16 E400 4matic Sedan - 148k - Brothers (OC-155k)
Reply With Quote
  #5  
Old 07-21-2008, 12:11 AM
TheDon's Avatar
Ghost of Diesels Past
 
Join Date: Oct 2005
Posts: 13,285
I have a 15" laptop screen if you want it.. just cover shipping
Reply With Quote
  #6  
Old 07-21-2008, 12:26 AM
pawoSD's Avatar
Dieselsüchtiger
 
Join Date: Oct 2004
Location: Grand Rapids, MI
Posts: 15,438
Its going to have to be a pretty small and narrow LCD to fit in the drivers sun visor.....not to mention the wiring fun that would bring with it.
__________________
-diesel is not just a fuel, its a way of life-
'15 GLK250 Bluetec 118k - mine - (OC-123,800)
'17 Metris(VITO!) - 37k - wifes (OC-41k)
'09 Sprinter 3500 Winnebago View - 62k (OC - 67k)
'13 ML350 Bluetec - 95k - dad's (OC-98k)
'01 SL500 - 103k(km) - dad's (OC-110,000km)
'16 E400 4matic Sedan - 148k - Brothers (OC-155k)
Reply With Quote
  #7  
Old 07-21-2008, 01:04 AM
300SD81's Avatar
1981 Mercedes-Benz 300SD
 
Join Date: Aug 2006
Location: University of Georgia
Posts: 1,082
Quote:
Originally Posted by Matt L View Post
While it is true that velocity is the integral of acceleration (from 0 to t, specifically), have you considered how you would compute the error bound?
Haven't really thought about it, but the accelerometer has a 2.5ms sample rate and the microcontroller is at least twice that. It should be accurate enough for a rough 0-60, at least more accurate than the stopwatch method.

Quote:
Originally Posted by pawoSD View Post
Would you be willing to share the code you wrote for that? I have VB and could use it....
The code is in C#, but can be translated to VB. Its really simple code anyway, get yourself a copy of Dundas Gauge and have a look at the .NET SerialPort class. My code is basically:
Data = SerialPort.ReadByte();
Pressure = Data * ScaleFactor;
Gauge.Value = Data;

Its a bit more complex because the scale is actually a 6th order polynomial, and I have to determine which gauge the data goes to with a bitmask (data is 12 bit, the first 4 bits of the 16 bit integer are ID bits) The Dundas Gauge library takes care of all the graphics, I just feed values into it.

You'll need a good bit more than VB to build it though, at least MPLAB and some knowledge of C and a PIC programmer to program the microchip. All my circuits are surface mount, and the thermocouple chip is surface mount only. (I solder parts down to size 402 (0.04" × 0.02") with a $5 radioshack iron, so it is very possible to do it at home.)


Anyone interested in a kit? You'll have to buy/sample the chips yourself though. I'll offer pre-programmed PICs.


Quote:
Originally Posted by TheDon View Post
I have a 15" laptop screen if you want it.. just cover shipping
Way too big, but thanks anyway. I'm looking for a 10.4" max widescreen or 8" non-widescreen. Laptop LCDs are impossible to drive anyway, the cheapest VGA-laptopLCD converter is like $200, since laptops generate the LCD type signal directly on their motherboards, theres no VGA input to them.


Quote:
Originally Posted by pawoSD View Post
Its going to have to be a pretty small and narrow LCD to fit in the drivers sun visor.....not to mention the wiring fun that would bring with it.

I'm not planning to use the casing. I'm going to strip it down and use the bare LCD itself, so thickness is not an issue (think about half the thickness of laptop screen), and wiring shouldn't be either, if they can fit it in a laptop hinge, I can through the metal thing on the visor.
__________________
Ich liebe meine Autos!

1991 Mercedes-Benz 560SEL | Megasquirt MS3-Pro | 722.6 transmission w/ AMG paddles | Feind Motorsports Sway Bar | Stinger VIP Radar | AntiLaser Priority | PLX Wideband O2 | 150A Alternator | Cat Delete
1981 Mercedes-Benz 300SD | Blown engine, rebuilding someday...
1981 Mercedes-Benz 300SD | Rear ended, retired in garage.
2009 Yamaha AR230HO | Das Boot

Excessive speeding? It ain't excessive till I redline!

Last edited by 300SD81; 07-21-2008 at 04:04 AM.
Reply With Quote
  #8  
Old 07-22-2008, 01:00 AM
pawoSD's Avatar
Dieselsüchtiger
 
Join Date: Oct 2004
Location: Grand Rapids, MI
Posts: 15,438
What metal thing on the visors? The power to the visor comes through the securing clip and not the moving shaft.....so theres no where to run wires....
__________________
-diesel is not just a fuel, its a way of life-
'15 GLK250 Bluetec 118k - mine - (OC-123,800)
'17 Metris(VITO!) - 37k - wifes (OC-41k)
'09 Sprinter 3500 Winnebago View - 62k (OC - 67k)
'13 ML350 Bluetec - 95k - dad's (OC-98k)
'01 SL500 - 103k(km) - dad's (OC-110,000km)
'16 E400 4matic Sedan - 148k - Brothers (OC-155k)
Reply With Quote
  #9  
Old 07-22-2008, 01:12 AM
Registered User
 
Join Date: Oct 2005
Posts: 4,263
Quote:
Originally Posted by 300SD81 View Post
Haven't really thought about it, but the accelerometer has a 2.5ms sample rate and the microcontroller is at least twice that. It should be accurate enough for a rough 0-60, at least more accurate than the stopwatch method.
You're guessing. Say it takes ten seconds to get to 60. How many samples is that? Each sample has descritization error, and a computation like an antiderivative compounds the error as you go along. I'm sure that you can visualize this, but there are college courses that cover computing error bounds.

What if you have a ten-second error bound?
Reply With Quote
  #10  
Old 07-22-2008, 01:16 AM
300SD81's Avatar
1981 Mercedes-Benz 300SD
 
Join Date: Aug 2006
Location: University of Georgia
Posts: 1,082
Quote:
Originally Posted by pawoSD View Post
What metal thing on the visors? The power to the visor comes through the securing clip and not the moving shaft.....so theres no where to run wires....

Ehh... that does present an issue.. and theres nowhere else in the car I can mount a LCD and have it look decent..


Looks like I can still use the visor, drill a little hole in the plastic thing that screws onto the car and run the lcd wires along there. Shouldn't stand out, especially if I paint the cable. I want the screen in a place where it can be hidden, but still easily visible while driving (using it for gauges, GPS, etc)...don't want the car being the first target for some gangster wanting a new LCD display...

Quote:
Originally Posted by Matt L View Post
You're guessing. Say it takes ten seconds to get to 60. How many samples is that? Each sample has descritization error, and a computation like an antiderivative compounds the error as you go along. I'm sure that you can visualize this, but there are college courses that cover computing error bounds.

What if you have a ten-second error bound?
You just went over my head.. I just graduated highschool 2 months ago and took AP calculus my senior year (and got a 5 on the test)... Never even heard of an error bound until this thread.
__________________
Ich liebe meine Autos!

1991 Mercedes-Benz 560SEL | Megasquirt MS3-Pro | 722.6 transmission w/ AMG paddles | Feind Motorsports Sway Bar | Stinger VIP Radar | AntiLaser Priority | PLX Wideband O2 | 150A Alternator | Cat Delete
1981 Mercedes-Benz 300SD | Blown engine, rebuilding someday...
1981 Mercedes-Benz 300SD | Rear ended, retired in garage.
2009 Yamaha AR230HO | Das Boot

Excessive speeding? It ain't excessive till I redline!

Last edited by 300SD81; 07-22-2008 at 01:33 AM.
Reply With Quote
  #11  
Old 07-22-2008, 03:00 PM
Registered User
 
Join Date: Oct 2005
Posts: 4,263
To prove that a particular discrete computation models the continuous reality, you can usually not show that it is completely accurate. Rather, you have two functions, F(t) and its numerical approximate G(t), and you show that |F(t) - G(t)| < E(t) where E is called the error bound. If E(t) is sufficiently small for your application, G is a good candidate for numerically computing F.
Reply With Quote
  #12  
Old 07-22-2008, 04:03 PM
bgkast's Avatar
Rollin' on 16s
 
Join Date: Dec 2005
Location: Vancouver WA
Posts: 6,528
Quote:
Originally Posted by Matt L View Post
To prove that a particular discrete computation models the continuous reality, you can usually not show that it is completely accurate. Rather, you have two functions, F(t) and its numerical approximate G(t), and you show that |F(t) - G(t)| < E(t) where E is called the error bound. If E(t) is sufficiently small for your application, G is a good candidate for numerically computing F.
How does the G-tech do it?
__________________
1979 240D- 316K miles - VGT Turbo, Intercooler, Stick Shift, Many Other Mods - Daily Driver

1982 300SD - 232K miles - Wife's Daily Driver

1986 560SL - Wife's red speed machine
Reply With Quote
  #13  
Old 07-22-2008, 04:39 PM
Registered User
 
Join Date: Oct 2005
Posts: 4,263
Quote:
Originally Posted by bgkast View Post
How does the G-tech do it?
You would have to ask them.

I am not trying to imply that it is impossible, just that you need to be careful with your computations. Things are not always as they seem.

I would imagine that they have proved that their formulas to be correct within a certain tolerance (error bound) and publish this tolerance in the specifications. Perhaps it is empirical data used to validate their system, in which case it may well be very wrong if it is used on a very fast (or very slow) car.
Reply With Quote
  #14  
Old 07-22-2008, 10:40 PM
lowriderdog37's Avatar
Unregistered User
 
Join Date: Mar 2007
Location: Viera, FL
Posts: 665
Once you get yours up and running, I would be interested in a kit. So many gauges I want, but just not enough room in the car. How much would something like this cost?
__________________
My Primary Driver - '85 300CD - 4-speed conversion, 2.47 rear, lowered, euro headlights, rebuilding (not restoring so much)

Wife's - '08 Saab Sportcombi Aero

Riding a '03 Yamaha Warrior
Reply With Quote
  #15  
Old 07-23-2008, 04:01 AM
Deni's Avatar
Registered User
 
Join Date: Aug 2005
Location: Tirana, Albania
Posts: 429
How will you correct the acceleration squat? As the car leans towards the rear the accelerometer will think it's accelerating faster than it actually is.

__________________
1992 Mercedes 190D 2.5 turbo 5sp manual. EGT+boost gauges. Boost controller set to ~14.5 psi. 1 1/4 turns on full load adjustment. LPG injection. Next in the list is water injection.
Reply With Quote
Reply

Bookmarks


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 On
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:58 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0
Copyright 2024 Pelican Parts, LLC - Posts may be archived for display on the Peach Parts or Pelican Parts Website -    DMCA Registered Agent Contact Page