MEGAsquirt A place to collectively sort out this megasquirt gizmo

More NB/MS2v3.0 questions

Thread Tools
 
Search this Thread
 
Old 04-09-2016 | 07:06 PM
  #1  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default More NB/MS2v3.0 questions

Hi,

Been doing a bit more digging to figure out how I will wire up my PCB3.0 with MS2 module. Think I've managed to find all the odds and ends I'll need now. Please can someone have a look and see if I'm on the right track? Ta

Code:
MEGASQUIRT PIN		MS PIN DESC	HARNESS PIN	DESCRIPTION				NOTE
==============          ===========	=======         ===========				====
28			+12V		1B		12 VOLT MAIN POWER
32			INJ 1		3W		INJECTOR A
32			INJ 1		3X		INJECTOR B
33			INJ 2		3Y		INJECTOR C
33			INJ 2		3Z		INJECTOR D
20			MAT		2B		INTAKE AIR TEMPERATURE SENSOR
21			CLT		2E		ENGINE COOLANT TEMPERATURE SENSOR
1			GROUND		3F		SENSOR GROUND
22			TPS		3E		THROTTLE POSITION SENSOR
26			5V REF		2I		T.P.S REFERENCE (5V?)
29			IAC2A		3Q		VICS SOLENOID VALVE
24			TACH		2J		CRANKSHAFT POSITION SENSOR		(2) VIA VR IN
25			IAC1A		2H		CAMSHAFT POSITION SENSOR		(2) VIA OPTO IN
36			IGN		3G		COILPACK 1				(1)
31			IAC2B		3H		COILPACK 2				(1)
6			SPR4		1O		GENERATOR FIELD				(3) JOE'S ALTERNATOR MOD?
3			SPR1		2F		KNOCK SENSOR				?????
30			FIDLE		3M		IACV					TIP120 FIDLE MOD
37			FUEL PUMP CTL	3N		FUEL PUMP RELAY
					1Q		CHARGE LIGHT				
27			IAC1B		1R		COOLING FAN RELAY					
					2K		TACH OUT TO CLUSTER			(4)
23			LAMBDA		2C		LAMBDA SENSOR				
					1E		CHECK ENGINE LIGHT			NOT CONNECTED
2					3C		POWER GROUND
8,9					3A		POWER GROUND
10,11					3B		POWER GROUND
(1) SPARK MODS

Driving standard ignitors as described here: https://www.diyautotune.com/support/...rt-your-miata/

Seems to involve using the LED outputs with a pullup to 5V, one going to the IGN output and one going to IAC2B on the DB37.

(2) VR/OPTO CIRCUITS:

Mods to pcb3.0 here: https://www.miataturbo.net/megasquir...2/#post1229126



(3) ALTERNATOR FIELD DRIVE

From https://www.miataturbo.net/megasquir...2/#post1228016




(4) TACH OUTPUT CIRCUIT

From https://www.miataturbo.net/mspnp-55/...-output-64082/



Connect to spare port

QUESTIONS
- Does this look like it would work?
- The battery charge light on the dashboard is also controlled via the ECU, right? Any way to make that work?
- Does the stock knock sensor work with MS?
- The lambda sensor seems to have two wires going to the ECU in the wiring diagram I found - I think the other is for the heater. Do I need to connect that to 12 volts? I'll be fitting a wideband soon, but I want to get the stock narrowband to work just because

Hopefully I'm nearly there now... I managed to source the connector for the stock ecu (from mouser) so I'm hoping to build a little harness adapter cable so I can plug/unplug the stock ECU at will when testing this.
Old 04-09-2016 | 07:15 PM
  #2  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 79,819
Total Cats: 4,152
From: Chantilly, VA
Default

Buy a MS3 + expander and skip steps 1 2 3 & 4.

if youve already purchased, buy the alternator circuit that Savington just posted about.


Is this an NB2?
Old 04-09-2016 | 07:19 PM
  #3  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default

I could do that... but then I've got a £400 doorstop which still hasn't found a home in a car yet.

I know it's not ideal, but let's say I don't mind going through the hassle of building the circuits... will they work?
Old 04-19-2016 | 08:25 AM
  #4  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default

Sorry, just checked back at this thread, didn't realise you'd edited your post before.

It's a very early NB (1998), so no, NB1.

Started building the adapter cable and modding the board this week. Might even have it running soon.
Old 04-19-2016 | 09:06 AM
  #5  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 79,819
Total Cats: 4,152
From: Chantilly, VA
Default

i still highly recommend you buy the alternator control board from TSE and dont build it yourself.

https://www.miataturbo.net/miata-par...9/#post1322298
Old 04-19-2016 | 02:37 PM
  #6  
Savington's Avatar
Former Vendor
iTrader: (31)
 
Joined: Nov 2006
Posts: 15,442
Total Cats: 2,104
From: Sunnyvale, CA
Default

$40 shipped. Frank even pre-tuned all the voltage regulation pots before he shipped them, so it's 100% no-brains-required.
Old 06-03-2016 | 04:15 PM
  #7  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default

OK - I'm still not 100% sure I'm doing the right thing with these cam and crank input circuits.

Going back to the start: My megasquirt is a standard MS2 with a PCB 3.0. The car is a 1998, which in the UK is an early mk2 (NB) car.

I want to use the standard cam and crank sensors.

Will the board mods I posted above work for these? I am confused because some people seem to build the "Abe/Jason C" signal conditioner circuits (which I still haven't found the schematics for) and then I see some people in other threads saying that the standard VR and opto-in will work fine with the two pullups added - does that apply for NB cars or not?

Sorry, but I am just totally, utterly lost. I know I could just get a PNP unit but megasquirts are expensive and I want to use what I have. Please, please could someone just tell me what I need to build? I could have the car running on megasquirt this weekend if I just had this information.

Thanks.
Old 06-04-2016 | 10:40 AM
  #8  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default

Right. I found the diagram for the cam/crank input circuits using the TL082/LM339 and built it.

I assume this is good:





Now to wire up the rest of it.

Attached Thumbnails More NB/MS2v3.0 questions-80-crankcam_553a74c687c440a24a9dcbf8a43423f0422e4ad7.jpg  
Old 06-07-2016 | 05:38 PM
  #9  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default

Triple post, durr!

Just wiring up the fuel pump; I have a 99-00 wiring diagram which is mostly correct except the light green '3N' wire (and a few others) are missing at the "3" plug on the ecu connector. What hell?

Does my 98 car have some weirdness in the way the pump control is setup? Anyone ever seen this before? (GUessing not, as you guys are mostly in the US and this seems to be a UKDM or 98 thing, but you never know.)

I guess I can find the pump relay and trace the wiring back from that, but I'm lazy.

Ta


EDIT: found it - it's the red/white wire at 3P.

Also found some broken pins on one of the connectors due to previous water damage, doh! fortunately i've sourced the correct pins so will re-pin them tonight.

just waiting on some vacuum line and then i can fire it up hopefully.

Last edited by TBJ; 06-09-2016 at 07:08 AM.
Old 06-11-2016 | 11:24 AM
  #10  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default

Got the car fired up today

The TL082 cam and crank circuits seem to work well, but I'm still not sure if they're overkill or if the two pullup resistors will work just as well. I did have to set the trigger angle offset to its maximum value (20 degrees) to retard the timing enough for it to fire up without suffering terrible kickback though.

Later on today I'll move the circuits from the little stripboards I built them on, into the proto area.
Old 06-14-2016 | 01:13 PM
  #11  
TBJ's Avatar
TBJ
Thread Starter
Newb
 
Joined: Apr 2016
Posts: 18
Total Cats: 0
Default

Bueller?

Bueller?

...Anyone?

Got the board mods done. Popped the TL082 in where the standard op-amp would go and rejigged the standard input circuits to match the AbeFM/JasonC circuit.

Spark driver is on the proto area as well. IAC driver is bolted to the case.

Should be plenty of room left for the alternator control stuff, which I'm gonna have a crack at building myself.

Bit messy, but it all works.

By the way - the weird timing issue seemed to be caused by the spark dwell, which is set to 8ms while cranking in the DIYautotune base map. Changed it to 3 and all is good.

Just need to sort out the alternator control now.

Some pictures of what I've done so far, in case they're useful to anyone...





Use "schematic" at own risk, I will release a neater version at some point.
Attached Thumbnails More NB/MS2v3.0 questions-80-imag0344_9641ff0bb252642ef7eaaca7dc540ec581f30bf0.jpg   More NB/MS2v3.0 questions-80-imag0345_562f356857fffe2def523f4c48adec8c0404d76a.jpg   More NB/MS2v3.0 questions-80-mods_be4b060e1fbcf24316be86931c42887fa3bdbc49.png  
Old 06-27-2016 | 06:13 PM
  #12  
Bronson M's Avatar
Senior Member
iTrader: (1)
 
Joined: Feb 2015
Posts: 1,107
Total Cats: 218
Default

I'm going to tag along with this discussion since it's highly NB wiring oriented. I am in the middle of re-jumpering my DIYPNP MS2 for my 2000 (converting over from 94-95 wiring) utilizing the pin out provided here: https://www.diyautotune.com/support/...0-mazda-miata/ when it came time to hook up a few of the jumpers for my custom stuff like clutch switch and a few other items I wanted to wire into my LC-2 I realized that just about every single connection is wrong in that provided diagram. I'm looking at this thread and this wiring diagram: http://www.yorbalindamiata.com/images/wiring/2000wire.pdf and they seem to agree.

How in the $%*&@ has that termination list been on DIYautotune's website for this long and been completely wrong? Just want a sanity check before I redo all my jumpers for a 2nd time.
Old 06-28-2016 | 10:23 AM
  #13  
Matt Cramer's Avatar
Supporting Vendor
 
Joined: Sep 2006
Posts: 2,332
Total Cats: 67
Default

One big note - the termination in the chart uses the numbering on the DIYPNP adapter board. Mazda's factory diagrams are often for 2 or 3 connector versions, resulting in different numbers unless you convert them over.
__________________
Matt Cramer
www.diyautotune.com
Old 06-28-2016 | 10:26 AM
  #14  
Bronson M's Avatar
Senior Member
iTrader: (1)
 
Joined: Feb 2015
Posts: 1,107
Total Cats: 218
Default

Originally Posted by Matt Cramer
One big note - the termination in the chart uses the numbering on the DIYPNP adapter board. Mazda's factory diagrams are often for 2 or 3 connector versions, resulting in different numbers unless you convert them over.
Well that explains it, seems the letters are correct only the numbers are wrong. Any resource I can use to decode which connector is which? With the ECM under the dash I don't really want to stand on my head and figure it out that way.
Old 06-28-2016 | 11:52 AM
  #15  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 79,819
Total Cats: 4,152
From: Chantilly, VA
Default

I worked on two MS1 boards over the weekend and wanted to kill myself.

that is all.
Old 06-28-2016 | 12:01 PM
  #16  
acedeuce802's Avatar
Senior Member
iTrader: (1)
 
Joined: Dec 2010
Posts: 1,218
Total Cats: 175
From: Farmington Hills, MI
Default

Originally Posted by Bronson M
Well that explains it, seems the letters are correct only the numbers are wrong. Any resource I can use to decode which connector is which? With the ECM under the dash I don't really want to stand on my head and figure it out that way.
The numbers aren't wrong, just different. DIYPNP documentation is going to use the same number configuration for every vehicle it's made for, and some vehicle use more than the 2 or 3 connectors that the Miatas use. It's pretty obvious from the two links you posted. IAT is 3B on the DIYPNP and 2B in the wiring diagram. TPS is 4E on the DIYPNP and 3E in the diagram. Condenser fan relay is 1I in both DIYPNP and diagram. Miata 1 is DIYPNP 1, Miata 2 is DIYPNP 3, Miata 3 is DIYPNP 4.
Old 06-28-2016 | 12:11 PM
  #17  
Braineack's Avatar
Boost Czar
iTrader: (62)
 
Joined: May 2005
Posts: 79,819
Total Cats: 4,152
From: Chantilly, VA
Default



i think you can figure out from here.
Attached Thumbnails More NB/MS2v3.0 questions-80-blob_4fbd1789f559041f12d5b344d6e5c5b04ca2e9b6.png   More NB/MS2v3.0 questions-80-blob_e9e359de64620a37f443586db2c25c5ca837d60a.png  
Old 06-28-2016 | 12:30 PM
  #18  
Bronson M's Avatar
Senior Member
iTrader: (1)
 
Joined: Feb 2015
Posts: 1,107
Total Cats: 218
Default

That's the good stuff right there! Thank you all!




All times are GMT -4. The time now is 10:23 AM.