MEGAsquirt A place to collectively sort out this megasquirt gizmo

I do not understand the CKP/CMP relationship apparently

Thread Tools
 
Search this Thread
 
Old 01-12-2012, 12:27 AM
  #21  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by JasonC SBB
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 is offline  
Old 01-12-2012, 12:29 AM
  #22  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by Joe Perez
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.
Joe Perez is offline  
Old 01-12-2012, 12:43 AM
  #23  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

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)?
JasonC SBB is offline  
Old 01-12-2012, 04:04 AM
  #24  
Elite Member
iTrader: (1)
 
richyvrlimited's Avatar
 
Join Date: Jun 2006
Location: Warrington/Birmingham
Posts: 2,642
Total Cats: 42
Default

Originally Posted by Joe Perez
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
richyvrlimited is offline  
Old 01-12-2012, 02:38 PM
  #25  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by JasonC SBB
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:



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 is offline  
Old 01-12-2012, 02:39 PM
  #26  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

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 is offline  
Old 01-12-2012, 02:46 PM
  #27  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by richyvrlimited
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.
Joe Perez is offline  
Old 01-13-2012, 09:50 AM
  #28  
Tour de Franzia
Thread Starter
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

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 is offline  
Old 01-13-2012, 10:19 AM
  #29  
Tour de Franzia
Thread Starter
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

Originally Posted by shuiend
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



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)
hustler is offline  
Old 01-13-2012, 10:22 AM
  #30  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,490
Total Cats: 4,079
Default

1.6L:

CKP = White
CMP = Yel / Blue

94-95 1.8L:

CKP = White
CMP = Yel / Blue


both on 2E and 2G
Braineack is offline  
Old 01-13-2012, 10:29 AM
  #31  
Tour de Franzia
Thread Starter
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

Originally Posted by Braineack
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.
hustler is offline  
Old 01-13-2012, 10:38 AM
  #32  
Boost Czar
iTrader: (62)
 
Braineack's Avatar
 
Join Date: May 2005
Location: Chantilly, VA
Posts: 79,490
Total Cats: 4,079
Default

If you had the choice between Black/Green and White/Red which would you say is power and which ground?
Braineack is offline  
Old 01-13-2012, 10:41 AM
  #33  
mkturbo.com
iTrader: (24)
 
shuiend's Avatar
 
Join Date: May 2006
Location: Charleston SC
Posts: 15,176
Total Cats: 1,680
Default

Originally Posted by hustler
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.
shuiend is offline  
Old 01-13-2012, 10:46 AM
  #34  
Tour de Franzia
Thread Starter
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

Originally Posted by Braineack
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 is offline  
Old 09-02-2012, 12:48 PM
  #35  
Tour de Franzia
Thread Starter
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

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





(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.
hustler is offline  
Old 09-02-2012, 02:25 PM
  #36  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by hustler
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.
Joe Perez is offline  
Old 09-02-2012, 05:37 PM
  #37  
Ben
Supporting Vendor
iTrader: (33)
 
Ben's Avatar
 
Join Date: Jul 2006
Location: atlanta-ish
Posts: 12,659
Total Cats: 134
Default

"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.
__________________
Chief of Floor Sweeping, DIYAutoTune.com & AMP EFI
Crew Chief, Car Owner & Least Valuable Driver, HongNorrthRacing

91 Turbo | 10AE Turbo | 01 Track Rat | #323 Mazda Champcar

Originally Posted by concealer404
Buy an MSPNP Pro, you'll feel better.
Ben is offline  
Old 09-02-2012, 08:48 PM
  #38  
Boost Pope
iTrader: (8)
 
Joe Perez's Avatar
 
Join Date: Sep 2005
Location: Chicago. (The less-murder part.)
Posts: 33,019
Total Cats: 6,587
Default

Originally Posted by Ben
"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:



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.
Attached Thumbnails I do not understand the CKP/CMP relationship apparently-wheel.gif  
Joe Perez is offline  
Old 09-03-2012, 02:19 AM
  #39  
Tour de Franzia
Thread Starter
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

I have Toyota COPS so this will take a bit more work. Hmmm. I may just wait for MS2.
hustler is offline  
Old 09-03-2012, 02:24 AM
  #40  
Tour de Franzia
Thread Starter
iTrader: (6)
 
hustler's Avatar
 
Join Date: Jun 2006
Location: Republic of Dallas
Posts: 29,085
Total Cats: 375
Default

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?
hustler is offline  


Quick Reply: I do not understand the CKP/CMP relationship apparently



All times are GMT -4. The time now is 04:23 PM.