Miata Turbo Forum - Boost cars, acquire cats.

Miata Turbo Forum - Boost cars, acquire cats. (https://www.miataturbo.net/)
-   MEGAsquirt (https://www.miataturbo.net/megasquirt-18/)
-   -   I do not understand the CKP/CMP relationship apparently (https://www.miataturbo.net/megasquirt-18/i-do-not-understand-ckp-cmp-relationship-apparently-62732/)

hustler 01-10-2012 05:03 PM

I do not understand the CKP/CMP relationship apparently
 
I hope I'm not the only one with this problem.

Test case:
Let's pretend you have a 1994 chassis car, a VVT engine, a 2001 hall sensor, TSE 12-tooth wheel, and the CMP from the 2001 engine.

Things I don't totally understand:
  • Which tooth to cut off from my 12-tooth wheel to convert to 12-1? As I read this, it's dependent upon CMP tooth position.
  • Do I really need to cut off a tooth? http://www.msextra.com/doc/ms3/trigg...lwheelcrankcam It appears to me that a 12-tooth CKP has enough of a gap between teeth to use the single-tooth CMP together.
  • Can I retard or advance the 2001 cam too much with VVTuner to screw this up?



this screen:
http://msextra.com/doc/ms3/pix/ign-opts-general.png
specifically:
In Toothed Wheel it should always be set to zero - use tooth#1 angle instead.
okay
Use cam signal if available - This is NOT used in "Toothed wheel" mode. A few other wheel modes require this to indicate that the cam sensor should be used. It will be removed in a future release.

okay
Cam input - Either MS3X or JS10. The MS3X input is ready to use. JS10 requires DIY board customisation.
okay
Tooth #1 Angle: Can this be measured with a protractor or should it be more accurate and use a real time wheel? (What is this value for a stock NB CKP wheel?)
Where do we enter CMP tooth position? on this screen? Is the CMP location non-negotiable in regards to falling immediately before CKP tooth #1?




Some history:

Originally Posted by Ben (Post 818030)
Haven't we discussed this at least twice previously?

Just once, but apparently I didn't put two and two together.

Originally Posted by Ben (Post 818030)
You can't use the 12 tooth wheel with stock NB cam trigger if you plan to run VVT or sequential.

I don't understand why. Why am I required to run a 12-1 CKP if I have a single-tooth CMP? It seems logical to me that I can use a single tooth CMP to indicate position.

Originally Posted by Ben (Post 818030)
The MS2 / MS3 NB Miata wheel decoder is looking for stock trigger wheels.

Why not run the 12-tooth wheel for less scatter?

Originally Posted by Ben (Post 818030)
If you run the 12-1 on the crank, you will need a 1 tooth wheel on the intake cam for closed loop VVT and sequential.

Got it.

Originally Posted by Ben (Post 818030)
90-93 tach is driven by ignitor.
94 to early 95 driven by coils.
95.5 + ECU
MegaSquirt can run tach on any NA or NB in place of whatever generated the factory signal.




Other questions for my 1991:
  • Why can't I run a 12 tooth CKP and 1 tooth CMP (modified CAS from Y8s) using MS1?
  • Can MSpnp9093 send an RPM signal to my tach?
  • When will I finally put MS3 on my turbo car?

Joe Perez 01-10-2012 05:14 PM

I'll re-post what I wrote in the other thread, but first, some Cliff's Notes:

1: You do not need a missing tooth on the crank if you have any kind of useful cam reference at all. Missing crank teeth are used to compensate for the lack of a cam signal.

2: The combination of a 12T crankwheel and an UNMODIFIED NB cam signal cannot be used. It would be theoretically possible, however there is no software support for it and this is a more complex configuration than can be defined in the "generic wheel" menu.

3: A 12T crankwheel PROBABLY cannot be used with VVT. I'd have to do some measuring to be certain, however I'm pretty sure that the teeth on a 12T wheel are too closely spaced, and that the range of motion of the VVT actuator would cause the cam pulses to cross over a crank pulse.


Now, the repost:



Originally Posted by hustler (Post 817975)
The TSE wheel has 12-teeth, so don't I need to chop one off for my 2001 swap (using all 2001 sensors?)

Running a 12T wheel on an NB, you have two basic options:

1: Cut off one tooth (thus creating a 12-1 wheel) and run with no cam signal at all. This is essentially the same as my old setup with the 36-1 crankwheel.

You will be limited to batch injection and ignition in this mode, as you don't have an absolute cycle reference. In other words, without a cam signal, the ECU can't tell whether the #1 cylinder is at TDC on the exhaust/intake cycle or the compression/ignition cycle. And, of course, no VVT.


2: Leave all of the teeth in place, and modify the intake cam pulley (for '99-'00) or the intake cam itself (for '01-'05) to remove two of the three teeth, so that you have one pulse per cam revolution on the second sensor. This will enable you to run fully sequential spark and fuel, however this configuration will most likely not allow closed-loop VVT to work, as the crank teeth are too closely spaced, and the cam pulses will therefore cross over crank pulses as the cam advances.


IN THEORY you should be able to run a 12T crankwheel with a stock NB-style cam signal, however there is no SOFTWARE SUPPORT for such a configuration at present. Configuring the ECU to understand such a signal is a more complex task than can be achieved with the "generic wheel" configuration table, and it would thus require a custom configuration within the software itself, such as the ones which were done to support Neon/420A, Subaru 6/7, Mitsu 4G63 or '99+ Miata sensor pairings in the MS2. (In other words, the ones where you just select "99+ Miata" from a drop-down window, rather than manually keying in all the tooth data.)


So, long story short: The 12T wheel is an excellent upgrade for NA owners looking to eliminate their dependence on the CAS, and is a moderate upgrade for '99-'00 owners looking to slightly improve the accuracy of the spark prediction. For owners of VVT engines, however, there are some serious disadvantages which outweigh any potential benefits.



I always thought the tach was driven off of the coils on <=1994 cars.
On '90-'93 engines, there is an igniter seperate from the coilpack, and this generates the signal to drive the tachometer in the instrument cluster. On '94-'95.5 engines, the igniter is integrated into the coils, and the tachometer signal is generated here. On '95.5 and later engines, the igniter is still integrated into the coils, however the tach signal is produced by the ECU.



I also don't understand what this does to the tach when we convert to sequential spark.
If you convert to sequential spark, then by definition you are not using the stock ignition coils.

If you have a '95.5 or later car, this does not matter, as your tach signal was not in any way related to the ignition system to begin with. The ECU will continue to generate the tach signal just as it did before.

If you have a '90-'95.5 car, you will need to run a new wire from the ECU to the wire that drives the tachometer in the instrument cluster, and have the ECU start generating the tach signal just like it would in a later car.

In either case, it does not matter how many teeth are on the wheel, or whether you are using one wheel or two, or whether you are using two coils or four. The ECU simply generates one pulse on the tachometer output pin for every ignition event.



What actually sends the signal to the tach in my 1994? The firing of the igniter?
Each of your two ignition coils has one tachometer output pin which is driven by the coil's internal igniter. These two outputs are wired in parallel to the tachometer. Every time an ignition coil fires, it generates a pulse on the tach output pin. The summing together these two lines means that the tachometer sees one pulse every time either coil fires.




Where can I find answers to stupid questions like these?
Right here, good buddy. :D

Savington 01-10-2012 05:19 PM

Joe, will the MS read a 12+1 setup like the K20 uses? This is how we get around the issue with AEM boxes.

hustler 01-10-2012 05:31 PM

Joe, please edit my typo quote to read:

Originally Posted by hustler (Post 817975)
The TSE wheel has 12-teeth, so don't I need to chop one off for my 2001 swap (using all 2001 sensors?)

does this change things? Although I did this in my original post, I need to focus on one car at a time, lets start with the 2001 engine going into the 1994 running sequential fuel and I will most likely use the 1994 ignition system for now.

I have a factory NB wheel but I have no clue how to set-up MS for a wheel with uneven tooth spacing.

hustler 01-10-2012 05:43 PM


Originally Posted by Joe Perez (Post 818109)
2: Leave all of the teeth in place, and modify the intake cam pulley (for '99-'00) or the intake cam itself (for '01-'05) to remove two of the three teeth, so that you have one pulse per cam revolution on the second sensor. This will enable you to run fully sequential spark and fuel, however this configuration will most likely not allow closed-loop VVT to work, as the crank teeth are too closely spaced, and the cam pulses will therefore cross over crank pulses as the cam advances.

I don't get it, how does everyone get VVTuner to work on these cars with the CMP cross-over CKP? I was fairly certain several people were running VVTuner on NA cars successfully. I'm not not hallucinagens, just uppers.

Originally Posted by Joe Perez (Post 818109)
Right here, good buddy. :D

Thanks. I feel like this is a rudimentary concept that should be covered somewhere. I suppose if I read these sections of the manual over and over and don't get it, the bandwidth is justified.

hustler 01-10-2012 05:50 PM

Here's another really dumb question, and although I assume this is somehow written into the CKP algorithm in regards to counting teeth....

How does the computer know when it's crossing over a missing tooth? When I remove a tooth for my 1991, which is the best to grind off and why?

Joe Perez 01-10-2012 05:51 PM


Originally Posted by Savington (Post 818114)
Joe, will the MS read a 12+1 setup like the K20 uses?

By 12+1, I assume you mean a 12T crank and a 1T cam signal?

If so, then yes, any wheel configuration that uses evenly-spaced teeth with no more than one gap (of any length) in the primary signal can be accommodated by any version of the MS including the MS1. Configurations such as this are actually quite simple, and are specified in the "generic wheel" menu. In fact, something like a 12+1 or 36+1 combo is just about the simplest possible configuration. You tell it how many teeth are on the crank, what angle the cam tooth is at, and that's all.

Where you get into problems is when you have wheels with unevenly-spaced teeth. The stock NB patterns are unevenly spaced on both the crank and the cam, which is becoming quite common in OEM designs. The CPU (MS2/3 only) is perfectly capable of handling situations like this, however there's no good way to describe such a pattern to it given the relatively simple design of the user interface. So to support cars like this, the core software contains many "special" configurations already pre-defined for all of these different oddball OEM patterns, and the user can simply select the appropriate one from a drop-down menu.




Originally Posted by hustler (Post 818120)
does this change things? Although I did this in my original post, I need to focus on one car at a time, lets start with the 2001 engine going into the 1994 running sequential fuel and I will most likely use the 1994 ignition system for now.

It changes nothing.

The sensors themselves don't matter. If you wanted to, you could fabricate mounts to point the crank sensor from a Suzuki motorcycle at the crankwheel and the shaft-position sensor from an industrial printing press at the camshaft, and it would work just fine.

What matters is the pattern of teeth on the wheel(s). You can't create oddball pattern combinations (such as 12T crank and NB cam) and expect them to work- there's no way to define such a thing in the software. You also can't use a crankwheel which has teeth so closely spaced together that the cam pulse(s) cross over them as the VVT mechanism operates. What I mean by that is this:

Take a stock NB crankwheel, which has four teeth. And a stock NB camwheel which has three teeth, arranged as a single tooth, followed 180° by a pair of teeth.

The arrangement of all of these teeth is such that regardless of how far the cam is advanced or retarded, the pulses coming off the cam sensor are always going to occur between the second and third teeth on the crankwheel. (I'm actually not sure about the exact numbers, i'm just using the second and third teeth as an example.) At full retard, the cam pulse(s) will occur just before the third crank tooth, and at full advance, the cam pulse(s) will occur just after the second crank tooth, but they will ALWAYS fall somewhere within that range.

The problem, therefore, is that as you start adding more teeth to the crank, it no longer becomes possible to ensure that the cam pulse(s) will always occur between the same two teeth on the crank. And this situation cannot be accommodated- in order to properly phase the engine, the cam reference must always occur within the space between two specific teeth on the crank. It can move around within the free space between those two teeth, but it can never go outside of that space.

Joe Perez 01-10-2012 05:56 PM


Originally Posted by hustler (Post 818125)
I don't get it, how does everyone get VVTuner to work on these cars with the CMP cross-over CKP? I was fairly certain several people were running VVTuner on NA cars successfully. I'm not not hallucinagens, just uppers.

The VVTuner works the same way as the MS3 in this regard.

It works because the teeth on the '01+ crank and cam are laid out such that no matter what position the camshaft is in, its pulse(s) always occur between two specific teeth on the crank. This is possible because the gap between the teeth on the crank is wider than the range of motion of the VVT system.

Regardless of the year of the car, in order to run VVT you must use the stock '01+ crank and cam wheels. The NA-style CAS is not used in such configurations.



Originally Posted by hustler (Post 818129)
How does the computer know when it's crossing over a missing tooth? When I remove a tooth for my 1991, which is the best to grind off and why?

It counts the time elapsed between pulses. If it sees a place where the time elapsed between the last pulse and the next one is more than 50% greater than the time elapsed between the previous set of pulses, then it judges this to represent a missing tooth. (I'm guessing at the 50% number, but it's something like that.)

So, imagine that you see this:

5ms - 5ms - 10ms - 5ms - 5ms - 5ms - 5ms - 5ms - 5ms -

It's a pretty safe bet that the third tooth was missing.

hustler 01-10-2012 05:59 PM


Originally Posted by Joe Perez (Post 818131)
By 12+1, I assume you mean a 12T crank and a 1T cam signal?

If so, then yes, any wheel configuration that uses evenly-spaced teeth with no more than one gap (of any length) in the primary signal can be accommodated by any version of the MS including the MS1. Configurations such as this are actually quite simple, and are specified in the "generic wheel" menu. In fact, something like a 12+1 or 36+1 combo is just about the simplest possible configuration. You tell it how many teeth are on the crank, what angle the cam tooth is at, and that's all.

1991 MS1-speak:
What benefits exist for the 12-1 CKP and 1-tooth CMP on my turbo 1.6 chassis? Right now I'm really tempted to go home, cut a tooth off the TSE wheel, put it on my 1991 car, use a tach-output from MS1, and see what it does.

Savington 01-10-2012 05:59 PM


Originally Posted by Joe Perez (Post 818131)
By 12+1, I assume you mean a 12T crank and a 1T cam signal?

No, a 12+1 crank wheel, with an added tooth instead of a missing tooth. The AEM can be told where to look for the added tooth, and it will sync based on the pattern of the added tooth and the factory cam wheel teeth. We do it this way on the AEM because removing a tooth causes the AEM (at least the Gen1) to skip the other 5 sister teeth of the missing one, thus turning the wheel into a 6-tooth wheel.

This is how I get around the crossover issue with the AEM boxes - 12+1 wheel and factory sensors. Works great.

Joe Perez 01-10-2012 06:17 PM


Originally Posted by Savington (Post 818140)
No, a 12+1 crank wheel, with an added tooth instead of a missing tooth. The AEM can be told where to look for the added tooth, and it will sync based on the pattern of the added tooth and the factory cam wheel teeth. We do it this way on the AEM because removing a tooth causes the AEM (at least the Gen1) to skip the other 5 sister teeth of the missing one, thus turning the wheel into a 6-tooth wheel.

Huh, I don't believe I've ever seen such a configuration in person. It's pretty easy to grind teeth off of a wheel, not so easy to add new ones in. :D

Within the MS world, we don't have this problem of being unable to deal with a single missing tooth. In fact, missing-tooth wheels are probably the most common configuration here, owing to the inexplicable popularity of the dreadful Ford EDIS system and the MS's origins within the ole' American Iron community. Those cars used a 36-1 crank wheel, and created a sort of de-facto standard for all kinds of aftermarket wheels to follow.

Joe Perez 01-10-2012 06:19 PM


Originally Posted by hustler (Post 818139)
What benefits exist for the 12-1 CKP and 1-tooth CMP on my turbo 1.6 chassis? Right now I'm really tempted to go home, cut a tooth off the TSE wheel, put it on my 1991 car, use a tach-output from MS1, and see what it does.

Relative to the CAS? Stability. Since the CAS is driven off of the timing belt, and the timing belt is slightly stretchy, you get a lot of spark scatter. The timing is much more stable when the reference is taken directly from the crank.

But again, you do not need to cut a tooth off of the crank wheel IF you have a cam signal. Removing a tooth from the crankwheel is done to compensate for the absence of a cam signal in situations where one is not available.

hustler 01-10-2012 07:56 PM

Can you show me what the wheel decoder settings for MS1 will look like with a 12-1? I may do this after the Houston race.

If you had a 12 tooth wheel and a single-tooth CAS in the garage, would you grind a tooth off the CKP wheel or run the 12 tooth CKP + the 1 tooth CMP?

Joe Perez 01-10-2012 10:14 PM

4 Attachment(s)

Originally Posted by hustler (Post 818205)
Can you show me what the wheel decoder settings for MS1 will look like with a 12-1? I may do this after the Houston race.

Depending on how everything is physically mounted, it might look something like this:

https://www.miataturbo.net/attachmen...ine=1326252278

Attachment 240131

(Note that it's been a while since I've had to configure one of these, and I've had a few drinks at this point in the evening.)

Note that if you built and configured your MS according to DIY's instruction for an NA using the CAS, they have everything completely backwards in their documentation with regard to the CAS configuration as well as the fuel and spark wiring. If you configure your system as per the above, it will be "correct", and the engine will not run until you un-reverse the fuel and spark wires.




If you had a 12 tooth wheel and a single-tooth CAS in the garage, would you grind a tooth off the CKP wheel or run the 12 tooth CKP + the 1 tooth CMP?
With an MS1, it doesn't really matter. You're running batch fuel anyway, so you might as well save the trouble and remove the tooth. That's how I did my '92.

With an MS2/3, I'd leave the tooth in place and run a cam signal so that I could run sequential.

hustler 01-11-2012 08:56 AM

I owe you several beers, maybe dinner. Seriously, thank you sooooooo much.

I have that same all sensor at home right now, but it's not in the car, lolol.

JasonC SBB 01-11-2012 12:01 PM

If the MS is like the AEM :

It will look at the cadence of the teeth to find the extra or missing one to figure out TDC, a 12+1 works much better than 12-1 during cranking. Especially if the extra tooth comes about 1/3rd of the way after the last one (it's closer to the last one). This is how the K20 has its extra tooth. I know I tested it. The reason is that when cranking with a weak battery the engine's compression causes the RPM to fluctuate, making it difficult to find the missing tooth. The extra tooth when close to the last one, is clearer.

And the choice of which tooth to remove or where to add the extra one matters too when you have VVT. You want the missing tooth or extra tooth to be nowhere near the significant cam signal edges through the range of VVT motion. If it does, the sync algorithm can get lost.

Lastly you don't want a missing tooth to appear just before your normal ignition firing range. You want it just after TDC. When a tooth is missing the software isn't updated by the crank position. And you want a fresh update right about the time it's fixin' to fire a plug.

Joe Perez 01-11-2012 02:01 PM

3 Attachment(s)

Originally Posted by JasonC SBB (Post 818450)
If the MS is like the AEM :

It will look at the cadence of the teeth to find the extra or missing one to figure out TDC, a 12+1 works much better than 12-1 during cranking.

To the best of my knowledge, the MS family does not support "added tooth" operation as you are describing it. At least, it does not support this by way of the "generic wheel" configuration menu, which is pictured in my post above. (This thread is actually the first time I've heard of such a thing.)

In general, terms like "X+Y" in describing a trigger setup are, within the MS community, used to describe wheels such as those used in the newer Neons where the trigger remains high for a period of time greater than one tooth. Here's an example of a 36-2+2 configuration as per the MSExtra documentation:

https://www.miataturbo.net/attachmen...ine=1326308506

It's possible that some configurations involving the K20 description of an "extra" tooth might be hard-coded into it via the vehicle-specific settings somewhere (this would be fundamentally quite similar to the cam signal on an NB), but in general, missing-tooth wheels, in addition to being commonly used in OEM applications (Ford, BMW, Subaru, Renaut) are by far the most widely used non-OEM configuration, not just within the Megasquirt community but in general. A quick Google search for Crank Trigger Wheels turns up all sorts of missing-tooth wheels from vendors representing Electromotive, Motec, Autronic, Haltech, VEMS, Pectel, etc.




The reason is that when cranking with a weak battery the engine's compression causes the RPM to fluctuate, making it difficult to find the missing tooth. The extra tooth when close to the last one, is clearer.
This makes sense on paper, but you'd need to have a seriously degraded battery on an astoundingly high-compression engine in order to have such dramatic changes in crankshaft RPM that a missing tooth cannot be reliably detected.

Remember that, in the MS architecture, each gap is compared only to the gap which preceded it, and not to any kind of average. Because acceleration and deceleration of the crankshaft due to compression effort during cranking is a fairly sinusoidal phenomenon, we can assume that crankshaft RPM during the missing tooth has not changed radically since the most recent tooth.

Here's a screenshot of a 60-2 wheel during cranking on a fairly high-compression engine. Each vertical bar represents the time elapsed since the previous trigger:

Attachment 240130

Now, you can clearly see how the crankshaft is slowing down during compression cycles in the form of "peaks", and when looking at the picture in its entirety, it's quite easy to say "well look at that, the missing tooth nearly indistinguishable from those teeth back there near the end of the compression cycles."

However, when you compare the one missing tooth (the sharp spike in the middle) to the tooth pair which preceded it, it's fairly unmistakable. To visualize this from the perspective of the ECU, cut a slit in a piece of paper which is wide enough to expose only two of the bars at a time, place the paper against the screen with the slit exposing two bars, and move it from left to right. If you compare each bar only to the one immediately to the left of it, it becomes clear that this is a relatively foolproof triggering system even on engines with high compression and weak batteries.



Lastly you don't want a missing tooth to appear just before your normal ignition firing range. You want it just after TDC. When a tooth is missing the software isn't updated by the crank position.
With the MS, the only real restriction is that the missing tooth cannot occur anywhere during the range of possible ignition advance values. You can put it immediately after TDC, or you can put it sufficiently far back from TDC that the spark advance table will never call for angle that crosses over it.



And you want a fresh update right about the time it's fixin' to fire a plug.
This is one of the areas where the MS2/3 shine over the MS1.

In the MS1, you must declare a single, specific tooth (well, a pair of them in the case of a 4 cyl engine) to be the "trigger" tooth. The ECU will always start the ignition timer when it sees this tooth. So in the image I made for Hustler above, I have declared tooth #1 (the first tooth after the gap) to be the "trigger" tooth (as well as tooth 7, which is 180° opposite). This gives the ECU a solid reference which is exactly 60° BTDC, sufficiently far away that the spark table will never encroach on it, but not so far away that we're setting the ignition countdown timer higher than it need be.

This is also why, on the MS1, there is really no advantage to increasing the number of teeth on the wheel. No matter how many actual teeth are on the wheel, the ECU only cares about two of them (four, if you use trigger-return for spark during cranking, but that's a bit too advanced for this thread.)


On the MS2 and 3, the system dynamically selects which tooth it will start the trigger on during operation, always selecting the tooth which is nearest to (but still before) the predicted spark angle. So if you have a 36 tooth wheel (one tooth per 10°), the system would trigger on the 20° BTDC tooth for a spark angle between 11° and 20°, on the 30° BTDC tooth for a spark angle between 21° and 30°, on the 40° BTDC tooth for a spark angle between 31° and 40°, etc. As I know you are aware (but others may not be) this reduces the potential for spark inaccuracy due to crankshaft acceleration at high load- selecting a tooth nearest the actual ignition angle minimizes the length of time the ECU has to sit waiting for a timer to run down while blind to any changes in actual crank speed.

For those having trouble understanding the concept, imagine a game in which you have to toss a hamster into a small hole in the ground. Specifically, there are ten holes, in a straight line, spaced 10 feet apart each. With the MS1, you always have to stand at the very first hole to make your throw, regardless of which hole you are aiming for. So hitting the first hole is easy. For the second hole, you have to throw 10 feet. For the third hole, you have to throw 20 feet. by the time you're aiming for the last hole, you have to throw the hamster 90 feet.

With the MS2/3, you're allowed to walk down the field and stand somewhere between the hole you are aiming for and the hole closest to it (the exact distance is pseudo-random, determined by computing the number of seconds elapsed since the last time the word "Obamacare" was uttered on Fox News.) In this scenario, you never have to throw the hamster further than 10 feet, and thus, we would expect your accuracy to improve.

JasonC SBB 01-11-2012 09:57 PM

36-2 is easy to detect during cranking but 12-1 is harder due to the lower effective sampling rate. I ran the math and it doesn't take much accel or decel to affect it. I looked at actual waveforms and it was problematic w a mediocre battery.

Joe Perez 01-11-2012 11:49 PM


Originally Posted by JasonC SBB (Post 818765)
36-2 is easy to detect during cranking but 12-1 is harder due to the lower effective sampling rate. I ran the math and it doesn't take much accel or decel to affect it. I looked at actual waveforms and it was problematic w a mediocre battery.

What can I say? I've done it and it works.



EDIT: I edited the image in post # 14 depicting the software settings. You'll need to use Time Based cranking with a 12T wheel and set the trigger returns to 0.

JasonC SBB 01-12-2012 12:04 AM

You've tried 12-1? Do you have the same cranking plot? Is that cranking plot, zero of the vertical axis, at the bottom? If so the peaks are double the troughs.

Note that with a 36-2 you have 2 missing teeth so the time gap will be 3x normal. Easy to find the missing teeth.

With a 12-1 the missing tooth gap is 2x normal, and it may just be close to the double length gap due to compression.

Trust me the 12-1 took significantly longer to sync and catch than the 12+1 (with the +1 closer to the preceding tooth). It would often mis-sync then lose sync and do it over.

Once it started it was fine. However when blipping in neutral there was a bit of timing error (like 1.5* IIRC) at low RPM, which wasn't there with the 12+1. This is because the AEM only times off of 6 teeth when you have a 12-1.

Joe Perez 01-12-2012 12:27 AM


Originally Posted by JasonC SBB (Post 818815)
You've tried 12-1? Do you have the same cranking plot?

Yes, but not on my car. There was no reason to scope it, as it worked correctly the first time. This was, admittedly, a low-compression engine with a good battery. I have no idea what Hustler is running.


Is that cranking plot, zero of the vertical axis, at the bottom? If so the peaks are double the troughs.
Huh?



With a 12-1 the missing tooth gap is 2x normal, and it may just be close to the double length gap due to compression.
I'd encourage hustler to try it as-is. If it doesn't work, he can remove tooth #11 as well, and set the "missing teeth" to -2.


However when blipping in neutral there was a bit of timing error (like 1.5* IIRC) at low RPM, which wasn't there with the 12+1. This is because the AEM only times off of 6 teeth when you have a 12-1.
An MS1 on a 4 cyl engine only times off of two teeth (the "Trigger A and B" teeth) so the error will be worse, however this is functionally identical to what you'd get off of both the NA CAS and the NB crankwheel. Actually, it'll be considerably better than the NA CAS, actually, as there's no timing belt slop.

I understand what you're saying, and I don't in any way disagree. All I'm saying is that what has been described here seems to be "good enough" for a real-world application.

Joe Perez 01-12-2012 12:29 AM


Originally Posted by Joe Perez (Post 818808)
EDIT: I edited the image in post # 14 depicting the software settings. You'll need to use Time Based cranking with a 12T wheel and set the trigger returns to 0.

Now that I've thought about this some more, I'm waffling.

With a 12T wheel aligned as shown, you'll have a potential "trigger return" at exactly TDC and BDC, which the more I think about it is probably ideal for cranking. What I posted above (time-based) will definitely work, however you might get slightly better starting out of the trigger-return scenario which I originally posted and then removed.

JasonC SBB 01-12-2012 12:43 AM

In that plot you posted, time between teeth, are the values of the peaks due to engine compression, twice that of the troughs (between peaks)?

richyvrlimited 01-12-2012 04:04 AM


Originally Posted by Joe Perez (Post 818501)
For those having trouble understanding the concept, imagine a game in which you have to toss a hamster into a small hole in the ground. Specifically, there are ten holes, in a straight line, spaced 10 feet apart each. With the MS1, you always have to stand at the very first hole to make your throw, regardless of which hole you are aiming for. So hitting the first hole is easy. For the second hole, you have to throw 10 feet. For the third hole, you have to throw 20 feet. by the time you're aiming for the last hole, you have to throw the hamster 90 feet.

With the MS2/3, you're allowed to walk down the field and stand somewhere between the hole you are aiming for and the hole closest to it (the exact distance is pseudo-random, determined by computing the number of seconds elapsed since the last time the word "Obamacare" was uttered on Fox News.) In this scenario, you never have to throw the hamster further than 10 feet, and thus, we would expect your accuracy to improve.

Amazing analogy Joe, who doesn't love tossing hamsters...

..oh wait :giggle:

Joe Perez 01-12-2012 02:38 PM


Originally Posted by JasonC SBB (Post 818828)
In that plot you posted, time between teeth, are the values of the peaks due to engine compression, twice that of the troughs (between peaks)?

Ok, I gotcha.

I don't have the underlying data behind the graph in question, and I can't tell you exactly which engine it was taken from or what the sensor arrangement was, however I am familiar with the software used, so I can tell you that the graph is linear and the bottom of the Y axis is zero.

Also, bear in mind that this graph was deliberately selected by the author of a FAQ to represent a worst-case-scenario for the purposes of visually illustrating the phenomenon in question. It is not meant to be representative of a street engine with "reasonable" compression cranking on a healthy battery.



So again, I completely understand what you are saying, and I don't disagree on paper. Now, if you would, please humor me for a moment.


Here, again, is the example wheel layout I posted for Hustler. Take careful note of the orientation of the components, specifically the position of the sensor and the missing tooth relative to TDC:

https://www.miataturbo.net/attachmen...ine=1326252278

In this arrangement, the missing tooth will cross over the sensor at 90° BTDC (1/4) and 90° ATDC (2/3). As such, the gap will always occur directly in a trough as viewed from the standpoint of the aforementioned graph.

Joe Perez 01-12-2012 02:39 PM

I took a bit of time to review the source code and build notes for the MS1 (gotta love open-source ECUs) and realized that I mis-spoke earlier in post # 17. I believe that that slip of the fingers is probably what has prompted this whole debate.

In the original design of the missing-tooth routine for the MS, each gap was indeed compared only to the gap which preceded it. At build # 024s12, however, a change was made such that a rolling average of all tooth gaps is kept, and it is this value is used to detect the missing tooth, rather than just the most recent value.

This change, which occurred many years ago, was originally implemented during some improvements of the false-trigger detection routine (did we receive an IRQ outside of the time-window when we were expecting one? If so, ignore it as noise) however it also had the effect of vastly decreasing the criticality of sensor / gap placement on engines with large numbers of cylinders and small numbers of crank teeth.

As such, this particular line of discussion is pretty much moot.

Joe Perez 01-12-2012 02:46 PM


Originally Posted by richyvrlimited (Post 818862)
Amazing analogy Joe, who doesn't love tossing hamsters...

This can be interpreted in two ways, depending on how I shift the punctuation around.

One suggests that Joe doesn't love tossing hamsters. It implies that my formal title would be "Joe, who doesn't love tossing hamsters," in much the same way as "Now I am become Death, the destroyer of worlds" from the Hindu text, the Bhagavad Gita.

The other interpretation implies that a question is being asked, to wit "Who doesn't love tossing hamsters?"

The degree to which I am simultaneously amused and disturbed by each possible interpretation is difficult to quantify.

hustler 01-13-2012 09:50 AM

I think I've spent about an hour reading this repeatedly, lol.

I'm going to put the crank wheel on this weekend and see what happens. I suppose I will pull 3* of spark out of my current spark tables which used the CAS. I don't think I can get this car on a dyno prior to my first race, which makes me nervous.

hustler 01-13-2012 10:19 AM


Originally Posted by shuiend (Post 777449)
95 CAS sensor Plug Colors
Yellow/Blue - Cam Signal
White - Crank Signal
White/Red - Power
Black/Light Green - Ground

99 Cam Sensor Wires
White/Red - Power
Grey/Blue - Cam Signal
Black/Blue - Ground

99 Crank Sensor Wires
White/Red - Power
Grey/Red - Crank Signal
Black/Blue - Ground

So to hook the NB Sensors up to the NA wires you need to do the following.
Black/Blue from both Cam/Crank plugs goes to Black/Light Green
White/Red from both Cam/Crank plugs goes to White/Red
Grey/Blue from Cam goes to Yellow/Blue
Grey/Red from Crank goes to White

https://www.miataturbo.net/attachmen...ine=1317303831

For VVT you run one of the wires to the White/Red wire on the CAS.
The other wire gets ran back to your MS connector. I am not sure how Reverent will have you hook it up, but he should be able to give you more details.

Any idea if the 1.6 CAS wire colors match up with the early 1.8?

DIY doesn't think so, but it's pretty close:

Getting the Tach Input Signal:

Run MSnS-E and the "2nd Trigger" Wheel Decoder option (where the missing tooth on the wheel decoder comes from a second sensor, usually cam position). The CAS has a CMP and CKP signal, so you take the outputs of each and run them into the MegaSquirt. Take the CKP signal (4 holes in the Optical sensor wheel, the "outer" ring of the CAS), and run it to the primary tach input on the MS with a 12v pullup resistor - then you take the inner ring of the CAS (1 hole in the sensor wheel) and run it to the secondary tach input on MS (it's pin 11 on the MS-I cpu) with a 5v pullup resistor.

If you follow my documentation for the mods below you'll externally wire the tach inputs like this:

The Primary tach input (CKP) (Reported to be White on Miatas) is connected to pin 24 on the MegaSquirt's DB37

The Secondary tach input (CMP) (Reported to be Yellow on Miatas) is connected to pin 25 on the MegaSquirt's DB37


If you're using a relay board: Pin 24 goes through to position 15, Tach/Ignition for the CKP/Primary Tach Input. Pin 25 goes through to position 7, S1 for the CMP/Secondary Tach Input. You'll need to make sure your relay cable has this wire in place, if so then this will work fine. All of my MS-II ready relay cables have this wire in place. (black loom covered cables are MS-II ready, old MS-I grey cables do not have this wire)

Braineack 01-13-2012 10:22 AM

1.6L:

CKP = White
CMP = Yel / Blue

94-95 1.8L:

CKP = White
CMP = Yel / Blue


both on 2E and 2G

hustler 01-13-2012 10:29 AM


Originally Posted by Braineack (Post 819597)
1.6L:

CKP = White
CMP = Yel / Blue

94-95 1.8L:

CKP = White
CMP = Yel / Blue


both on 2E and 2G

Any idea on which is power and which is gnd? I have a good idea, but I'm also pretty good at corn-holing myself in the game of life.

Braineack 01-13-2012 10:38 AM

If you had the choice between Black/Green and White/Red which would you say is power and which ground?

shuiend 01-13-2012 10:41 AM


Originally Posted by hustler (Post 819595)
Any idea if the 1.6 CAS wire colors match up with the early 1.8?

DIY doesn't think so, but it's pretty close:

I honestly do not know off the top of my head and I actually have to do work today at work, so I can't actually look it up. I will check this afternoon and get back to you with the wire colors. I will go home and physically look at my CAS on my dd and see.

hustler 01-13-2012 10:46 AM


Originally Posted by Braineack (Post 819609)
If you had the choice between Black/Green and White/Red which would you say is power and which ground?

I'm going to delete this bullshit post from my awesome thread later.

hustler 09-02-2012 12:48 PM


Originally Posted by Joe Perez (Post 818252)
Depending on how everything is physically mounted, it might look something like this:

https://www.miataturbo.net/attachmen...ine=1326252278

https://i.imgur.com/2mIpP.gif

(Note that it's been a while since I've had to configure one of these, and I've had a few drinks at this point in the evening.)

Note that if you built and configured your MS according to DIY's instruction for an NA using the CAS, they have everything completely backwards in their documentation with regard to the CAS configuration as well as the fuel and spark wiring. If you configure your system as per the above, it will be "correct", and the engine will not run until you un-reverse the fuel and spark wires.



With an MS1, it doesn't really matter. You're running batch fuel anyway, so you might as well save the trouble and remove the tooth. That's how I did my '92.

With an MS2/3, I'd leave the tooth in place and run a cam signal so that I could run sequential.

Does the part in red apply to the MSpnp1? Please say "no". The car would not start and the key-logger shows good signal.

Joe Perez 09-02-2012 02:25 PM


Originally Posted by hustler (Post 922246)
Does the part in red apply to the MSpnp1? Please say "no". The car would not start and the key-logger shows good signal.

Any NA Miata MSPnP made by DIY will have the ignition outputs reversed, in order to be backwards compatible with the original built-it-yourself instructions for the NA, which were also backwards. (I assume that their NB PnPs are also backwards, but I've never actually checked.)

It's no big deal. Just flip the relative positions of the spark plug wires, such that the wires for the 1/4 cylinders go to the 2/3 coil and vice-versa.

Ben 09-02-2012 05:37 PM

"Backwards" spark outputs only occurs with MS1, due to how the MS1 wheel decoder is normally set up for Miata (4G63 CAS). MS2 and beyond have dedicated Miata wheel decoders with "correct" spark outputs.

Joe Perez 09-02-2012 08:48 PM

2 Attachment(s)

Originally Posted by Ben (Post 922311)
"Backwards" spark outputs only occurs with MS1, due to how the MS1 wheel decoder is normally set up for Miata (4G63 CAS). MS2 and beyond have dedicated Miata wheel decoders with "correct" spark outputs.

Good to know- I've very little experience with the MS2 and MS3.

For what it's worth, the MS1 can easily be made to output spark pulses in the "correct" sequence on an NA CAS by configuring the wheel decoder as follows:

https://www.miataturbo.net/attachmen...1&d=1346632943

Note that the "2nd trigger active edge" is set to "falling" in my config because I am using a non-standard input circuit based on an comparator. If you've built the CMP circuit as described in DIY's instructions, that field should still be set to "rising."

This will be of no interest to MSPnP owners, as your ECU is already wired in the reversed configuration. For anyone still building an MS1 from scratch, however, this will allow you to wire the unit such that SparkA correlates to the 1/4 coil, and SparkB to the 2/3 coil, as is the nominal configuration for the Miata in general.

Owners of an original MSPnP who wish to convert to a 36-1 wheel (or any crankwheel, for that matter) must flip the ignition system by reversing the spark plug wires at the coils.

hustler 09-03-2012 02:19 AM

I have Toyota COPS so this will take a bit more work. Hmmm. I may just wait for MS2.

hustler 09-03-2012 02:24 AM

Do I want to jack with setting-up a 12-1 wheel and Y8s modded single-tooth CAS for my MS2 set-up, or runt he factory crank wheel for the high-comp engine?

richyvrlimited 09-03-2012 03:42 AM


Originally Posted by hustler (Post 922403)
I have Toyota COPS so this will take a bit more work. Hmmm. I may just wait for MS2.


Not really, just swap the plugs, (the plugs that would've gone into the OEM coilpack), for the COPS around...

tasty danish 09-03-2012 04:14 AM


Originally Posted by Joe Perez (Post 819123)

:bowrofl::bowrofl::bowrofl::bowrofl::bowrofl:
:bowrofl::bowrofl::bowrofl::bowrofl::bowrofl:
:bowrofl::bowrofl::bowrofl::bowrofl::bowrofl:
:bowrofl::bowrofl::bowrofl::bowrofl::bowrofl:

You sell these as a kit right?

hustler 09-03-2012 09:20 AM


Originally Posted by richyvrlimited (Post 922410)
Not really, just swap the plugs, (the plugs that would've gone into the OEM coilpack), for the COPS around...

This requires a re-wire since thmy harness is built from the old igniter..

Ben 09-03-2012 10:24 AM

If this is a MSPNP Gen1, open the lid, remove the main board, and de-solder the wires at pad 1 and pad 3. Swap the pad 1 wire to pad 3 and solder. Swap the wire from pad 3 to pad 1 and solder. Reassemble ECU.

Joe Perez 09-03-2012 01:09 PM

Or, if you don't wish to open the ECU, simply cut and swap the brown and brown / yellow wires on the car end of the old igniter plug.

Many different ways to solve this problem, none of them especially difficult.


All times are GMT -4. The time now is 01:32 AM.


© 2024 MH Sub I, LLC dba Internet Brands