MEGAsquirt A place to collectively sort out this megasquirt gizmo

Megasquirting my stock '99 NB - the initial install

Old 09-15-2008, 06:21 PM
  #21  
Senior Member
 
WestfieldMX5's Avatar
 
Join Date: Nov 2007
Location: Belgium
Posts: 999
Total Cats: 73
Default

Yes, but doesn't Jason's circuit above modify the output of the NB sensor to a NA signal ?
WestfieldMX5 is offline  
Old 09-15-2008, 10:56 PM
  #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

The circuit which Jason just posted converts the NB's cam pulses into an NA-style output. Problem is, I'm not convinced that this actually needs to be done. CMP is nothing but a reset line for the crank counter, it's not particularly time-sensitive. Look at the link which Jason posted concerning "funkiness". Forget about the rising-edge latency on the crank pulses- I'm referring to the fact that the single CMP pulse and both of the double CMP pulses all fall entirely within the same pair of adjoining CKP pulses. Thus, I think you could probably just feed the CMP pulses into the MS1 as-is.


The part that really matters is building a circuit that electronically eliminates the two TDC pulses from the crank wheel, leaving the other two pulses (which are, IIRC, either 60 or 70 degrees BTDC) alone. It is not necessary to lengthen them into an accurate emulation of the NA CAS, you simply need to eliminate the two extraneous pulses. One could, I suppose, use the four pulses in a set/reset configuration for a flip-flop, as the MS1 cares only about falling edges on the primay input. You'd just need to make sure that the device initialized itself properly with the CMP pulse before it started outputiing CKP pulses.
Joe Perez is offline  
Old 09-15-2008, 11:09 PM
  #23  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

It's easier to convert the NB CKP pulses into NA style pulses than to eliminate 2 of them.
JasonC SBB is offline  
Old 09-15-2008, 11:41 PM
  #24  
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
It's easier to convert the NB CKP pulses into NA style pulses than to eliminate 2 of them.
By which, I presume, you mean to use them to toggle a flip/flip, yes?

Either way you look at it, CKP is the important one. I believe you could feed NB CMP into the MS1 as-is and it will work. But CKP needs to be two equally-spaced pulses, with falling edges somewhere in the 60° BTDC neighborhood.
Joe Perez is offline  
Old 09-16-2008, 10:24 AM
  #25  
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,332
Total Cats: 67
Default

Well, you could move the falling edges or send it only one pulse per cam revolution instead of two - this can be changed with MegaTune settings. But the pulses as-is do not work with the code.
__________________
Matt Cramer
www.diyautotune.com
Matt Cramer is offline  
Old 09-16-2008, 11:40 AM
  #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

To clarify- the NB cam pulses (single-double-single-double) do not work with the MS1 code? Or the crank pulses?
Joe Perez is offline  
Old 09-16-2008, 02:42 PM
  #27  
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,332
Total Cats: 67
Default

Cam. The crank pulses will probably work.
__________________
Matt Cramer
www.diyautotune.com
Matt Cramer is offline  
Old 09-16-2008, 10:02 PM
  #28  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by Joe Perez
By which, I presume, you mean to use them to toggle a flip/flip, yes?
You have to use the CKP RISING edge (NEVER falling) to trigger the divide by 2, and you reset it whenever the CMP signal is low.
JasonC SBB is offline  
Old 09-16-2008, 10:03 PM
  #29  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

So you guys decide which circuit you need and I'll post a schematic.
JasonC SBB is offline  
Old 09-18-2008, 03:39 AM
  #30  
Elite Member
 
Zaphod's Avatar
 
Join Date: Mar 2006
Location: Schwarzenberg, Germany
Posts: 1,553
Total Cats: 101
Default

Well - for me a working one would do... (as I am totaly lost on all the specific electronic things)
Zaphod is offline  
Old 09-18-2008, 11:35 AM
  #31  
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 Matt Cramer
Cam. The crank pulses will probably work.
I thought somebody tried this recently, and we determined that because the four pulses on the crank were not evenly spaced, the MS1 would not read them appropriately.

Why, precisely, will the stock NB CMP signals not work?
Joe Perez is offline  
Old 09-18-2008, 11:50 AM
  #32  
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,332
Total Cats: 67
Default

It seems they built a bit of "wiggle room" into the MS1/Extra code for unequally spaced teeth on the primary trigger. Really the only way to find out if it's enough room is to try it.

The cam signal though resets the tooth count each time it gets a pulse. Two closely spaced teeth will create an RPM spike.
__________________
Matt Cramer
www.diyautotune.com
Matt Cramer is offline  
Old 09-18-2008, 12:36 PM
  #33  
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 have to use the CKP RISING edge (NEVER falling) to trigger the divide by 2,
That's fine. All i was saying is that the MS1 CPU needs to see a falling edge once every 70° (or so) BTDC and BBDC on pin 14, IRQ1. The rising edges can happen any time- they don't even have to be consistant.
Joe Perez is offline  
Old 09-18-2008, 12:50 PM
  #34  
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 Matt Cramer
It seems they built a bit of "wiggle room" into the MS1/Extra code for unequally spaced teeth on the primary trigger. Really the only way to find out if it's enough room is to try it.
I was all ready to say "It has been tried" and post a link, and then something hit me- the one person who has tried (mikeflys1) cut a single tooth off and tried to run it as 4-1 wheel. Whole different animal there as the MS is now timing every single tooth. In 4/2 mode, if my understanding of the code is right, the timer only counts between "significant" teeth, and the ones in between just increment the counter.


The cam signal though resets the tooth count each time it gets a pulse. Two closely spaced teeth will create an RPM spike.
Are we sure about that?

I figure that if it's merely resetting a counter, then you could have twenty CMP pulses in a row, so long as they all fell in the same CKP-CKP gap. The thing that would cause a spike would be if a CMP pulse occurs both before and after a CKP pulse- logically causing three sequential #1 CKP pulses (the real one, the false one, and then the next real one.)

I need to get myself a spare MS so I can experiment with conditions such as this. You guys have any crippled ones lying around?
Joe Perez is offline  
Old 09-18-2008, 01:43 PM
  #35  
Supporting Vendor
 
Matt Cramer's Avatar
 
Join Date: Sep 2006
Posts: 2,332
Total Cats: 67
Default

It would depend on the exact phasing, but I've been working on a dual trigger setup that had noise in the secondary trigger and each time it pulsed at the wrong point would give a huge spike in RPM. It had more teeth on its "crank" trigger, however. If it had a pulse on the crank input between the two pulses from the cam wheel, you'd definitely have it act crazy. If there wasn't any pulse, it's harder for me to say.
__________________
Matt Cramer
www.diyautotune.com
Matt Cramer is offline  
Old 09-18-2008, 02:47 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

Yeah. I understand noise pulses in the wrong spots causing grief- that's the whole reason I abandoned CAS in favor of a 36-1 wheel on my car. But I honestly believe that if two CMP pulses occur in the same gap between CKP pulses, it will have no adverse effect.

Does anybody out there have an MS1 they'd be willing to loan me for a couple weeks so I can simulate this on the bench and come up with a definitive answer?

Edit: even just a naked MS1 CPU chip will do, if somebody has one lying around. (it'd be nice to also get the RS232 transceiver chip, so I don't have to place a digikey order)

Last edited by Joe Perez; 09-18-2008 at 09:05 PM.
Joe Perez is offline  
Old 09-18-2008, 04:13 PM
  #37  
Newb
 
andriusmx's Avatar
 
Join Date: Mar 2008
Posts: 4
Total Cats: 0
Default

Originally Posted by Zaphod
Hi Jason,

I am in need of such a circuit for using the NB CAS and CMP signals - as my euro 1,6 NB (99) has no possibility to use the 90-97 CAS.

As I am not that much of an electronics guy - it would be good if someone could build me such a circuit. (You can PM me what the cost would be)

Can I use this with the MS1 (I suppose)?

Greets
i`m allso trying to ms my 99 euro 1,6 miata, and i think i have the same problem. I haven1t found a 90 - 97 CAS yet, but is it really impossible to use it on NB 1,6 ? so that would create a lot of problems...
It seems i allso will need a circuit for converting the NB CKP pulses into NA style pulses.

P.S. i have MS 1 3
andriusmx is offline  
Old 09-20-2008, 02:59 AM
  #38  
Junior Member
 
arga's Avatar
 
Join Date: Aug 2006
Location: Ridgecrest, Ca
Posts: 306
Total Cats: 0
Default

I tried something like this a few years ago to get MSII (no extra) to work. The circuit would turn the trigger wheel into a tach signal and another would distribute the single ignition signal to the two coils. I used this for about 10 months eventually running both spark and fuel but I was never really happy with it. I had the same missed pulse problems Abe and Pat had when they ran parallel. I eventually warned other to not follow.

https://www.miataturbo.net/forum/showthread.php?t=5407

https://www.miataturbo.net/forum/showthread.php?t=6730

https://www.miataturbo.net/forum/showthread.php?t=7375
arga is offline  
Old 09-20-2008, 12:37 PM
  #39  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

I need to know exactly what Zaphod's MS1 needs. I can make a layout, mill a PCB, and build a circuit for Zaphod real quick. A friend is flying to Germany and he can then mail it to Zaphod. This discussion is taking longer than it takes me to design and build the circuit.

Zaphod, you are gonna owe me a tour of the best whorehouses in Prague!!! (You live near the Czech border, right?)
JasonC SBB is offline  
Old 09-20-2008, 12:40 PM
  #40  
Elite Member
 
JasonC SBB's Avatar
 
Join Date: Jul 2005
Posts: 6,420
Total Cats: 84
Default

Originally Posted by Joe Perez
Yeah. I understand noise pulses in the wrong spots causing grief- that's the whole reason I abandoned CAS in favor of a 36-1 wheel on my car.
And noise pulses won't affect a 36-1 setup?

While I don't disagree a 36-1 wheel will be superior to a 2 or 4 tooth setup wrt timing accuracy, it seems to me the right noise filtering AND shielded cable setup would solve the problem just as well.
JasonC SBB is offline  

Thread Tools
Search this Thread
Quick Reply: Megasquirting my stock '99 NB - the initial install



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