R3VLimited Forums

Go Back   R3VLimited Forums > E30 Technical Forums > 24V Engine Swaps > S38

Thread Tools Search this Thread
Old 12-26-2016, 09:27 PM   #1
downforce22's Avatar
Join Date: Aug 2009
Location: Colorado Springs, CO
Posts: 2,996
S38 on Megasquirt

Has anybody run an s38 on megasquirt? I am contemplating it due to the adjustablity it has.

-IAT sensor
-60-2 CPS
- MAF (not AFM)
-55 pin Bosch motronic 1.2 350 ecu

The main difference between other applications would be:
-switch style TPS, either upgrade to vTPS from M50 or use auto e34 TPS
-tune for alpha n or ITBs
-double check wiring diagrams for premade ecu (for m20) vs s38 pinout

Am I missing anything? It seems to me the MS2 would be a worthwhile upgrade of the S38, are M5 owners too much of purists to deviate from the stock ecu?

Page 135 has the ecu pinout for the s38b36 for future reference

E30 M1.3 ECU pinout:

It looks like a few things are different between the ECU pinouts, mainly the following pins related to AFM and an auto trans that came with the m20.

Pin 7 - Mass air flow vs AFM
Pin 12 - Not Used vs AFM Reference
Pin 23 - Air Pump relay vs O2 Sensor Heater
Pin 25 -Preheat MAF vs Not used
Pin 26- MAF ground vs AFM ground
Pin 32 - (maybe) Measuring signal to OBC vs econometer
pin 43 - MAF vs Not used
pin 50 -not used vs ABS fuel cut override
pin 51 - not used vs auto kickdown
pin 54 - fuel coding signal vs torque converter lockup switch

I'm guessing pin 23 is the actuator for the intake plenum valve? It would be nice to keep that feature somehow. I would obviously need a widebad to get it tuned but once that was done it could be set it and forget it, right?
downforce22 is offline   Reply With Quote
Old 12-28-2016, 02:45 PM   #2
ja burna
Grease Monkey
ja burna's Avatar
Join Date: Jun 2005
Location: SoCal
Posts: 356
Send a message via MSN to ja burna
Yup I am running my S38 on megasquirt and love it!
"Driving anything else would be uncivilised"
ja burna is offline   Reply With Quote
Old 01-07-2017, 09:56 PM   #3
R3V Elite
Join Date: Feb 2004
Location: Ohio
Posts: 5,123
Send a message via AIM to Eric
I'm really considering running it on my S38B35, what's holding you back?
My E30 v1.0 | v2.0 | v3.0 | My E28 |My E34 | My feedback
Eric is offline   Reply With Quote
Old 01-09-2017, 07:25 AM   #4
downforce22's Avatar
Join Date: Aug 2009
Location: Colorado Springs, CO
Posts: 2,996
Originally Posted by Eric View Post
I'm really considering running it on my S38B35, what's holding you back?
A couple things:

- I don't want to lose the midrange torque that the plenum valve provides. Not sure if you could set it to open and close at a certain rpm value but it would have to be wired into the ecu correctly to be used with the correct output voltage. I would assume it could just be an on/off style switch based on rpm though.

- I would need to either add a full time AFR gauge and tune it myself (not a huge deal, but no place to put the gauge without hacking the interior up), use a temporary gauge and tune it myself, or pay a tuner to tune it for me and not add a gauge. I like the full time gauge but would like it to be hidden, maybe in the glovebox or near the kick panel or something.

- Not sure what is necessary to use the MAF vs AFM if I went with a prebuilt ECU for an m20. The IAT sensor is already built into the b36, so I assume that could be used. The b35 has it built into the AFM and can be used with the whodwho unit MS2.

- I haven't looked at the TPS too much, but assuming it is the switched style, it would need to be changed to a vTPS. I'm not sure if the e34 m20 auto TPS would connect on the s38 throttle bodies. The connector looked different than the m20 TPS when I looked at it the yesterday.

The s38b35 is basically just an m30 with 4 valves per cylinder, it can be made to work with a few mods. I believe the S38B35 uses Motronic 1.0 (35 pin ecu, seen in your miller WAR writeup - ECU 079 I think) it needs the toothed harmonic balancer (60-2) and CPS/bracket on the front of the engine from an m30b35. PF Tuning made an M1.0 to M1.3 adapter but they don't come up for sale often. It would also need a vacuum line from the intake.

The s38b36 comes with all of that so it should be plug an play with just the vacuum line and making the MAF work properly. It is M1.2 ECU 350 but above shows the pinout differences between M1.3 on an m20. I would of course have to learn how to tune the ITB's on MS2 instead of purely on speed density mode. I'm not sure if the vacuum line is needed. Another member posted this website which supposedly has ecu's preprogrammed for these engines running MS2. I'm really trying to keep from buying one for my m42 track car! (M1.7 75 pin ecu)

downforce22 is offline   Reply With Quote
Old 01-09-2017, 07:31 AM   #5
nando's Avatar
Join Date: Nov 2003
Location: bellingham, wa
Posts: 33,178
An AFR gauge isn't necessary for tuning. Actually, it's more for show/looks than anything - if you really want to tune effectively, you use datalogging. Tunerpro can analyze your logs in real time and adjust your fuel maps. Ignition should be tuned on a dyno.

MS2 supports Alpha-N and blended SD/Alpha-N, or you could use a MAF.
nando is online now   Reply With Quote
Old 03-12-2017, 08:27 AM   #6
E30 Modder
Join Date: Oct 2004
Location: Iceland /// Nürburgring /// Auf der Autobahn
Posts: 838
How is it with the oem resonator flap,,, are there standalone options that control the flap,,

i would really like to know that
Sveinbjörn Hrafnsson

E30 CABRIO V12 M70B50 ///
ALPINA B10 BITURBO 346 @ 507
E34 550 V12 JML

Finnish wisdom : If you want to Win,, hire a Finn

Alpina is offline   Reply With Quote
Old 07-08-2017, 10:58 AM   #7
Austin!'s Avatar
Join Date: Sep 2010
Location: Portland, Oregon
Posts: 13,830
Bumping an old thread. Seems like this is basically the only place on the interwebz that discusses an S38 on MS.

S38B35 on Megasquirt 3 PRO. It has the front crank pulley and CPS from either an M30B35 or S38B36 (60-2).

We're trying to figure out the base timing. There is a notch in the timing cover and an O|T mark on the crank pulley. Since this crank pulley wasn't meant for this engine, our question is: is the O|T mark supposed to line up with the notch in the S38B35 timing cover to get our TDC, or is there somewhere else we're supposed to be looking?
04/1968 2002 | 11/1982 533i | 12/1986 M5 Dinan Turbo | 06/1988 325i | 06/1988 325is | 10/1988 330is | 08/1991 M-Technic 325ic | 03/1999 Z3 M Coupe | 01/2003 Range Rover HSE

Register your 770/771 code M-Technic cabrio here!

Maybe I'll finish it, someday...
Austin! is offline   Reply With Quote
Old 07-11-2017, 01:24 PM   #8
downforce22's Avatar
Join Date: Aug 2009
Location: Colorado Springs, CO
Posts: 2,996
Great question and I don't know the answer. I would expect the pulley to line up with the timing cover because the S38 is basically the same engine as the m30, so the harmonic toothed balancer from the m30b35 should tie in directly with the s38b35 smooth harmonic balancer.

For reference, my '86 325iX came with a 35 pin motronic 1.0 ecu. I retrofitted a later motronic 1.3 55 pin engine harness to the car so I could run megasquirt. The car came with a smooth harmonic balancer and I had to put the later e30 toothed 60-2 wheel on the car. The toothed wheel bolted right up with the centering hole/pin. It was in the exact same orientation as the later motronic 1.3 cars and even had the threaded holes for the CPS bracket to bolt up to. I used a base setup and that has worked great ever since.

I know my brothers e24 is using motronic 1.0 enginer harness with a db37 adapter to run megasquirt and he had to fit the 60-2 wheel from the m30b35. Here is a good refernce. I believe the base timing (offset etc setttings) were different from the e30's setting but am not 100% sure that the information in this thread is correct. See for more details.

downforce22 is offline   Reply With Quote
Old Yesterday, 11:38 AM   #9
Join Date: Nov 2016
Location: Maribor
Posts: 2
I have a S38B36 Euro engine and I will upgrade with VEMS electronics
I have questions about where can I buy an intake cam position sensor setup, for my 3.6 ??
or it's fits from S38B38 cam cover and sensor??

thanks for the reply
TimiMB is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

Forum Jump

All times are GMT -7. The time now is 07:23 AM.

Powered by vBulletin® Version 3.8.10
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Copyright 2004 - 2020 R3VLimited LLC