MEGAsquirt A place to collectively sort out this megasquirt gizmo

Do I wire up MS for dual wheel on a '99?

Thread Tools
 
Search this Thread
 
Old 07-17-2006, 12:55 PM
  #1  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default Do I wire up MS for dual wheel on a '99?

Hi,
I'm almost done building my MS-I V3, I would like to use the stock crank and cam angle sensors but I'm a bit lost.

Should I assemble the MS as per diyautotune instructions for the DSM install? :
http://www.diyautotune.com/tech_arti...alon_laser.htm
fluke is offline  
Old 07-17-2006, 12:58 PM
  #2  
Junior Member
 
kingofl337's Avatar
 
Join Date: Oct 2005
Location: New Hampshire
Posts: 248
Total Cats: 0
Default

Yes wire it up the same as you would for a 90-97.
kingofl337 is offline  
Old 07-18-2006, 01:04 PM
  #3  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Ok, I've seen the signal plots for the '99 crank and cam sensors:
http://pages.sbcglobal.net/jcuadra/c...ing/timing.gif

how does this compare to the signal plots for the <97 setup? I can't seem to find a plot of these signals.
fluke is offline  
Old 07-18-2006, 10:39 PM
  #4  
Junior Member
 
kingofl337's Avatar
 
Join Date: Oct 2005
Location: New Hampshire
Posts: 248
Total Cats: 0
Default

might end up both being a 5v pull up based on that.

They work the same thought a "high" voltage dragged to ground
when the "window" passes by.
kingofl337 is offline  
Old 07-19-2006, 01:28 AM
  #5  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Originally Posted by fluke
how does this compare to the signal plots for the <97 setup? I can't seem to find a plot of these signals.
Here is what I got when I connected my oscilloscope to a 90-93, optical-type CAS:

Reverant is offline  
Old 07-19-2006, 07:51 AM
  #6  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Excuse my stupidity but what is the 5v pull up for? Does this just add 5 volts to the signal?

Doesn't MS expect to trigger on the high voltage? These signals from the '99 look like they're triggering on the ground state (or falling edge).

What about the reset signal from the cam sensor? On the <'97 it's a long single high voltage pulse while on the '99 it's a pair of ground state short pulses, will MS be able to decode that?

How hard would it be to build a simple circuit that inverts these signals so MS is receiving high voltage triggers? Maybe I can set MS to trigger on the falling edge instead of the leading edge and avoid inverting the signal.

Reverant, where is ground on that signal plot? What is the value of the high voltage? Where is the #1 TDC?

Thanks for your help everyone!
fluke is offline  
Old 07-19-2006, 08:57 AM
  #7  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Originally Posted by fluke
What about the reset signal from the cam sensor? On the <'97 it's a long single high voltage pulse while on the '99 it's a pair of ground state short pulses, will MS be able to decode that?
As the above plot would suggest, the cam signal on a <='97 is TWO pulses, one short an one long. See the trigger wheel here:



Originally Posted by fluke
Reverant, where is ground on that signal plot? What is the value of the high voltage? Where is the #1 TDC?
The plot is taken with +12V on pin 2, GND on pin 1, CKP is the pin 3 and CMP is pin 4 on the sensor. The output signal voltage depends on the input signal voltage but IIRC it's about 10V. The plot was taken with the CAS out of the engine so I don't know which peak is #1 TDC fire.
Reverant is offline  
Old 07-19-2006, 09:47 AM
  #8  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Yes, but on the '99 the CMP signal is 2 short pulses instead of the one long pulse; that's what bothers me.

Originally Posted by Reverant
As the above plot would suggest, the cam signal on a <='97 is TWO pulses, one short an one long. See the trigger wheel here:





The plot is taken with +12V on pin 2, GND on pin 1, CKP is the pin 3 and CMP is pin 4 on the sensor. The output signal voltage depends on the input signal voltage but IIRC it's about 10V. The plot was taken with the CAS out of the engine so I don't know which peak is #1 TDC fire.
fluke is offline  
Old 07-20-2006, 01:35 AM
  #9  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Originally Posted by fluke
Yes, but on the '99 the CMP signal is 2 short pulses instead of the one long pulse; that's what bothers me.
If you look at the wheel (the inner track), you'll see that it's also 2 pulses, one short and one long - not just one.
Reverant is offline  
Old 07-20-2006, 07:35 AM
  #10  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Originally Posted by Reverant
If you look at the wheel (the inner track), you'll see that it's also 2 pulses, one short and one long - not just one.
Right, but if you look at the '99 plot it's 1 short @ 0 deg. then 2 short @180 as opposed to the <'97 that's 1 short at 0 deg. then one long @180.

I just don't know enough about megasquirt at this point to know whether it will be able to decypher the signal, if not I guess I'll have to come up w/ a conditioning circuit.

Has anyone gotten MS to decode a signal like this one?
fluke is offline  
Old 07-20-2006, 08:23 AM
  #11  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Originally Posted by fluke
Has anyone gotten MS to decode a signal like this one?
I don't think so, which is why I am fitting the CAS from a NA to my NB.

Jim
Reverant is offline  
Old 07-20-2006, 02:46 PM
  #12  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Just to be sure, I scoped my own engine:



Top channel is CMP, bottom channel is CKP, CMP is 20mS/div,5V/div and CKP is 1mS/div,5V/div. Any less time resolution on the CKP and the pulses wouldn't show up - I wonder why Mazda recommends 10mS/div in the service manual!
Reverant is offline  
Old 07-21-2006, 07:45 AM
  #13  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Reverant,
the CMP signal coincides w/ the plot I posted, but your CKP looks different; it looks like an inversion; strange. That makes things more complicated...

You said that you are using the CAS from a NA; is this mounted to the space in the back of the cam cover where the stock CAS in the early NBs went? I've been reading about ppl using the CAS from the <'97 NB, which is "better", the NA or the NB CAS?

I was concerned with losing some accuracy w/ this method because:
1- Belt stretch
2- Play between the CAS drive shaft and the cam (does the "key" fit tight in that slot on the cam?)

Am I getting too carried away w/ precision? Did the NA use a crank sensor for timing in addition to the cam sensor?
fluke is offline  
Old 07-21-2006, 09:27 AM
  #14  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

Originally Posted by fluke
Reverant,
the CMP signal coincides w/ the plot I posted, but your CKP looks different; it looks like an inversion; strange. That makes things more complicated...
Yes, I was alienated by the inverted signal as well.

Originally Posted by fluke
You said that you are using the CAS from a NA; is this mounted to the space in the back of the cam cover where the stock CAS in the early NBs went?
Exactly, on the exhaust side cam to be exact.

Originally Posted by fluke
I've been reading about ppl using the CAS from the <'97 NB, which is "better", the NA or the NB CAS?
There are two sensor variants:
1) The optical type, which was fitted on the intake side cam of the 1.6 90-93 NA Miatas
2) The magnetic (Hall Effect) type, which was fitted on the exhaust side cam of the 1.8 94-97 NA Miatas.

The magnetic is supposed to be a bit more accurate, but I wouldn't bet on it. However, you should know that the magnetic type fits on NB (98+) cars like a glove, while the optical will fit but it will not bolt using two studs, only one will fit (different housing).

Originally Posted by fluke
I was concerned with losing some accuracy w/ this method because:
1- Belt stretch
2- Play between the CAS drive shaft and the cam (does the "key" fit tight in that slot on the cam?)

Am I getting too carried away w/ precision? Did the NA use a crank sensor for timing in addition to the cam sensor?
1) Belt stretch is insignificant, keep in mind that Mazda has the cam sensor on the cam on NB cars as well!
2) The key fits perfectly in the slot, no play whatsoever.

Yes, you are getting carried away as far as precision is concerned. The NA did not use a "crank" sensor, as this was integrated in the CAS: Both the CKP and CMP sensors were fitted in one single housing.
Reverant is offline  
Old 07-21-2006, 10:23 AM
  #15  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Reverant:
that's awesome, thanks so much for the info; you sold me on the cam mounted sensor.

So before '99 all timing was off of the cam? Interesting.
fluke is offline  
Old 07-21-2006, 12:48 PM
  #16  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Sorry if this is a repeat question, but let me make sure that I'm getting this all straight...

MS sees the short and long pulses from the cmp and distinguishes between the two?

What are your settings on msns-extra? The onese that setup the cmp and ckp that is.

Thanks again for the help, i'm pretty confused.

Ok, I just found this on another post:
https://www.miataturbo.net/forums/at...6&d=1153057055

But how does MS know which spark event goes with which cmp signal (short or long) I guess I was looking for a setting in msnse like "long pulse = fire cylinders 1 and 4, short pulse =fire cylinders 2 and 3"
fluke is offline  
Old 07-21-2006, 03:15 PM
  #17  
Elite Member
iTrader: (10)
 
Reverant's Avatar
 
Join Date: Jun 2006
Location: Athens, Greece
Posts: 5,976
Total Cats: 355
Default

I haven't digged through the source code of the MSnSe firmware to understand exactly how it interprets the settings in the wheel decoder config page, so I'm not really sure I can help. So far all of the NA guys seem to be OK with these settings so for now I trust them without questioning why.
Reverant is offline  
Old 07-21-2006, 03:39 PM
  #18  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

lol, cool.

Originally Posted by Reverant
I haven't digged through the source code of the MSnSe firmware to understand exactly how it interprets the settings in the wheel decoder config page, so I'm not really sure I can help. So far all of the NA guys seem to be OK with these settings so for now I trust them without questioning why.
fluke is offline  
Old 07-25-2006, 01:26 AM
  #19  
Junior Member
 
kingofl337's Avatar
 
Join Date: Oct 2005
Location: New Hampshire
Posts: 248
Total Cats: 0
Default

The length of the signal is not used by the megasquirt. The megasquirt uses the 0 and 180 signals as resets for the crank.
It fires like this

Fire Coil A
Fire Coil B
Reset
Fire Coil A
Fire Coil B
Reset
kingofl337 is offline  
Old 07-25-2006, 08:35 AM
  #20  
Junior Member
Thread Starter
 
fluke's Avatar
 
Join Date: Jan 2006
Location: Toronto
Posts: 181
Total Cats: 0
Default

Ok, I understand how this would work if there was only 1 signal per 2 crank rotations since you could tell MS: "OK, when you receive the cmp signal reset because that's cylinders 1,4 TDC." As I understand it, MS has to know not only when the cylinders reach TDC but whether it's cylinders 1,4 or 2,3 so that it doesn't spark at BDC.

I don't see how MS could do this with 2 rising voltage signals per crank rotation as is the case in the '99+ sensor, unless you set it to distinguish between the single and double pulses (but how?) Since the <'97 has 2 signals per 2 crank rotations (1 cam rotation) each signal will reset for cylinders 1,4 or 2,3 (I don't know which) w/ wasted spark.

As a matter of fact, I don't see how you could distinguish between TDC w/ a compressed charge and TDC scavanged even w/ a crank mounted missing tooth setup. Guess this is why we use wasted spark. It would be possible to get away from wasted spark w/ a single signal from the cmp though, but why bother.

Basically, unless you can distinguish between the double pulse and the single pulse I don't think you can use the '99+ cmp.

I would be interested in inverting the '99+ ckp signal and using that since there are twice as many signals per rotation and therefore double the precision. But, since it looks like I have to use the <'97 CAS for the cmp signal I might as well make it simple and use the ckp as well...

Originally Posted by kingofl337
The length of the signal is not used by the megasquirt. The megasquirt uses the 0 and 180 signals as resets for the crank.
It fires like this

Fire Coil A
Fire Coil B
Reset
Fire Coil A
Fire Coil B
Reset
fluke is offline  


Quick Reply: Do I wire up MS for dual wheel on a '99?



All times are GMT -4. The time now is 08:49 PM.