R3VLimited Forums

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

Thread Tools
Old 12-26-2016, 09:27 PM   #1
downforce22's Avatar
Join Date: Aug 2009
Location: Colorado Springs, CO
Posts: 2,791
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: 355
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: Colorado Springs
Posts: 5,101
Send a message via AIM to Eric
I'm really considering running it on my S38B35, what's holding you back?
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,791
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: 32,515
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 offline   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: 836
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

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

Forum Jump

All times are GMT -7. The time now is 03:36 AM.

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