Megasquirt Forum Area is for discussing Megasquirt EMS

Megasquirt Megasquirt S5 (2nd gen) fully stock ignition works!

Thread Tools
 
Search this Thread
 
Old 08-20-05 | 04:42 PM
  #1  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Megasquirt S5 (2nd gen) fully stock ignition works!

Tofuball (Jason) and I finally got a chance to test the new megasquirt trailing ignition code on his car today. It works GREAT! I mean it doesn't really affect performance noticably, but it works.

I tested with several different ignition advances and splits with the timing light flashing at both the CAS (to make sure the right trailing coil was firing at the right time) and at the pulley (to make sure the timing was right) and it worked no problem.

The sparks the trailing coils fire are ridiculously strong though... I could hold the wire like 3 or 4 inches from the car, and watch the sparks fly to the chassis.

Details:

Using the wheel decoder with the following settings:

12 + 1 decoder
triggers/returns

trig A: 1,3
trig B: 7,9

trigger angle 60 deg
trigger return cranking
hold ignition 2 seconds

trailing split on
FC type ignition outputs

I'll post a full MSQ once we retune his car (the tune is way off now since he finally got a good fuel-pump and fuel hose, meaning he finally got good fuel pressure).

We also need to redo the PWM idle valve settings (hooked to the BAC valve) so that closed-loop and warm-up idle work right.

Oh, and moderators; thanks for finally creating a megasquirt section.

Ken

EDIT: I forgot to mention that this was with msns-extra firmware 025k, with a dual lm1815 vr sensor conditioning circuit to condition the CAS signal, and 4.7kohm pull-up resistors for the output signals to the ignitors. 025k is the first msns-extra offical version that has working support for rotary trailing.

Last edited by muythaibxr; 08-20-05 at 04:46 PM.
Old 08-20-05 | 06:22 PM
  #2  
Rex4Life's Avatar
RX-7 Alumni
 
Joined: Oct 2002
Posts: 1,140
Likes: 1
From: Spacecenter Houston
Great news Ken!

Recently you mentioned I could use one of the V3.0 on-board vr circuits and put the other one in the proto area. Is there any benefit to putting your two vr circuits on the proto area and leaving the on-board one available?

I'm also not sure what outputs this setup will take. Will I still have the four standard outputs availabe with your ignition setup?

Thanks,

Scott
Old 08-20-05 | 07:17 PM
  #3  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Originally Posted by Rex4Life
Recently you mentioned I could use one of the V3.0 on-board vr circuits and put the other one in the proto area. Is there any benefit to putting your two vr circuits on the proto area and leaving the on-board one available?

I'm also not sure what outputs this setup will take. Will I still have the four standard outputs availabe with your ignition setup?

Thanks,

Scott
I can't think of any benefit to not using the v3 vr conditioner that's built in... and the proto area may be a bit too small to fit the whole dual lm1815 circuit.

do you mean the 4 outputs on the db37? What I'd do is use one of the db37 pins (and a ground) for the second trigger input, and then you still have 3 more outputs on the db37 left for the three ignition signals.

If you want any more outputs out of the megasquirt, you'll need to wire them to another connector or something like that. For the kits I'm building for people on the v2 boards, I've been running the vr sensor inputs into the megasquirt using the 4 extra pins on the db37, and then running the ignition and other extra outputs (vdi/aux ports) out through an extra db9 or db25 mounted either on top of the case or on the front in place of the LED's.

I need to get to writing a complete how-to on modding the megasquirt for the rx7 sometime in my non-existant spare time (my current projects now that trailing works include getting stock rx8 ignition to work, and modding the staged injection code to include a configurable amount of time before the primary injectors cut their pulse-width after the secondaries come on. This will help get rid of the small lean-spot when the secondaries engage).

Ken
Old 08-20-05 | 08:09 PM
  #4  
Rex4Life's Avatar
RX-7 Alumni
 
Joined: Oct 2002
Posts: 1,140
Likes: 1
From: Spacecenter Houston
Originally Posted by muythaibxr
do you mean the 4 outputs on the db37?
Ken,

I wanted to use outputs 1 and 2 (X4 X5), output 3 (Pin 15 of the uP (U1)) and output 4 (LED 18) to run solenoids. Will any of these become unavailabe using your rotary ignition?

I also wanted to run the BAC like you were talking about with the PWM signal for controlled idle speed, I think that's on the FIDLE output right?

Scott
Old 08-20-05 | 09:24 PM
  #5  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Originally Posted by Rex4Life
Ken,

I wanted to use outputs 1 and 2 (X4 X5), output 3 (Pin 15 of the uP (U1)) and output 4 (LED 18) to run solenoids. Will any of these become unavailabe using your rotary ignition?

I also wanted to run the BAC like you were talking about with the PWM signal for controlled idle speed, I think that's on the FIDLE output right?

Scott
All three LED's are needed for rotary ignition if you want to run leading and trailing. If you don't mind running leading only, then only led17 is needed for ignition.

If you're trying to pass emissions, I'd suggest just creating a map that runs at 14.7:1 up to about 65-70kPa, and then 13.2-13.8:1 above that just for emissions. I've heard of people going as high as 15.5:1 at cruise for economy purposes on the rotary engine.

As for the BAC valve, you need to get a ztx688 transistor and replace the current fidle transistor with it, and then replace the fidle resistor with a 1/2 watt 510 ohm resistor, and then you can just connect the fidle output directly to the BAC valve.
Old 08-21-05 | 07:47 PM
  #6  
N1XRR's Avatar
Full Member
 
Joined: Jul 2001
Posts: 249
Likes: 0
From: Lavonia, GA
This is GREAT news! I'm working on getting my RX7 running with this code and the dual VR conditioners...is anyone working on a full write-up on this? If not, I'll go ahead and start once I get mine working.
Old 08-21-05 | 08:00 PM
  #7  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
I've got a write-up that I wrote months ago. It's like a first-draft and doesn't cover rotary trailing.... but the settings for that are pretty self-explanatory.

Wheel decoder howto

It covers some basic wheel decoder settings, and the logic behind those settings and how to install the CAS to work with those settings. I tried to make it more generic, but I used the rotary as an example. It also has instructions on how to wire up the lm1815 circuit to the megasquirt.

If I have time I'll write more and go over other things that people have questions about.

Ken
Old 08-21-05 | 10:08 PM
  #8  
N1XRR's Avatar
Full Member
 
Joined: Jul 2001
Posts: 249
Likes: 0
From: Lavonia, GA
Let me make sure I get this straight (and I do have a few questions):
I need to solder 3 4.7k resistors from the negative leads to right before the input resistors, correct? And I solder the wires for the coils to the negative lead also?

Where do I get power for the dual LM1815 circuit? Right off the power regulator(U5)?

Where would you recommend I get ground from?

I read someone in that post that I need to put a 1k ohm resistor across the grounds coming in from the CAS, is that correct?

Solder to pin 11 on the ecu...I assume you mean on the bottom of the board and not directly on the chip itself.

I put together my LM1815 board today....tomorrow, pending your response, I will hook it up to the board and test it with a spare CAS.

Last edited by N1XRR; 08-21-05 at 10:16 PM.
Old 08-21-05 | 10:35 PM
  #9  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Originally Posted by N1XRR
Let me make sure I get this straight (and I do have a few questions):
I need to solder 3 4.7k resistors from the negative leads to right before the input resistors, correct? And I solder the wires for the coils to the negative lead also?
yes, both of your statements above are correct. It's a +5v pullup resistor. The reason for such high resistance is that the mazda ignitors have relatilvely low input resistance to ground, so you need to limit the current draw.

Where do I get power for the dual LM1815 circuit? Right off the power regulator(U5)?
there is a small via just above D9 that you can take +5v from, that's generally what I use.

Where would you recommend I get ground from?
for ground I usually use the D1 or D2 bottom hole.

I read someone in that post that I need to put a 1k ohm resistor across the grounds coming in from the CAS, is that correct?
Nope, it's not necessary. I didn't do that. It's only really necessary to do that on the toyota vr sensors as they have 3 sensors sharing a common ground.

Solder to pin 11 on the ecu...I assume you mean on the bottom of the board and not directly on the chip itself.
Yes, I usually solder both the u4 pin 6 and cpu pin 11 wires on the bottom of the board.

Last edited by muythaibxr; 08-21-05 at 10:53 PM.
Old 08-22-05 | 11:48 AM
  #10  
23Racer's Avatar
Rotary Freak
 
Joined: Jul 2003
Posts: 2,199
Likes: 9
From: Oakville, Ontario
Great news and thanks for all of your work. I will be updating my MS as soon as possible and installing it after this season ends. It will be great fun to finally set the car up right for the 1/2 bridge. Again Thanks from all of us racers who are desire rich and cash poor.
Old 09-01-05 | 02:31 PM
  #11  
Senior Member

 
Joined: Jan 2004
Posts: 476
Likes: 0
From: Pittsburgh/Johnstown, PA
Any fuel economy gain with the trailing hooked up?
Old 09-01-05 | 04:50 PM
  #12  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Originally Posted by BlastinSideways12A
Any fuel economy gain with the trailing hooked up?
Actually economy might have gotten worse although I haven't asked tofuball about that.

I noticed some interesting things though... with trailing on at 16 split at low load, the engine seems to need more fuel to run smoothly. We were running 14.7:1 at high vacuum (low kPa) and low-mid revs (1500-3500 rpms) before trailing, and it ran fine, but once we added trailing, it stopped running right at that range of kPa's and rpms.

I did some research, and most people with trailing working are running 13.2-13.8:1 at those ranges... with 14.7:1 in a diamond shape in the middle of the map (basically at cruise ranges). So I guess it won't do anything to his cruise mileage, but it'll probably hurt his high vacuum, light throttle mileage.

Ken

Last edited by muythaibxr; 09-01-05 at 04:59 PM.
Old 09-10-05 | 12:04 AM
  #13  
88IntegraLS's Avatar
Displacement > Boost
 
Joined: Oct 2002
Posts: 3,503
Likes: 0
From: Mississippi
Ever played with low or no split in those conditions? Seems if it runs well on light throttle with a leaner mixture and no split, what's the advantage of split in the first place?
Old 09-10-05 | 12:58 AM
  #14  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Originally Posted by 88IntegraLS
Ever played with low or no split in those conditions? Seems if it runs well on light throttle with a leaner mixture and no split, what's the advantage of split in the first place?
Yeah, didn't seem to make much difference. It runs well at lighter throttle and leaner mixtures with no trailing ignition at all. With trailing enabled and a lot of split or a little split, it just needs more fuel as far as I can tell.

I'm not even sure why mazda put trailing on there because it sure as heck didn't help power on tofuball's car... at full throttle it seems it didn't make any difference at all (at least on the "butt dyno").
Old 09-10-05 | 11:24 PM
  #15  
turbosa22c's Avatar
Full Member

 
Joined: Jun 2003
Posts: 157
Likes: 0
From: honolulu
I always thought the split timing was just for emissions to reduce the unburned hydrocarbons.
Old 09-11-05 | 01:02 AM
  #16  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
it's possible. I don't know the reasons for it, I just know that a lot of people wanted it to work right, so I fixed the code for it at low revs
Old 09-11-05 | 01:11 AM
  #17  
88IntegraLS's Avatar
Displacement > Boost
 
Joined: Oct 2002
Posts: 3,503
Likes: 0
From: Mississippi
Bah, if that's the case I'll probably forget making it a priority to get split working at all. There is even a device made for FD's called the anti-det, and it's basically just a blind spark plug to fill the hole in the housing where the trailing plugs go. suppedly it reduces the detonation problem with boosted rotaries, but it's all controversial as far as I've read on here.
Old 09-11-05 | 01:28 AM
  #18  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
I heard about that... basically they do that because a lot of the spark-retard devices that people use for leading don't work for trailing, so it's safer just to get rid of trailing altogether rather than having trailing fire before leading.

However, the way the MS code is written, the trailing spark is scheduled using a delay from leading, so when the leading is retarded, the trailing will still fire at the same time as, or after leading (depending on what split is set up in the split table)... there's never a chance of trailing firing before leading.

So I'd say it doesn't hurt anything to set it up, and it might help a little, so there's no reason NOT to set it up unless you just don't feel like it
Old 09-11-05 | 07:00 PM
  #19  
pmrobert's Avatar
Senior Member
 
Joined: May 2002
Posts: 386
Likes: 0
From: FL
http://smrmicro.com/re-ky.pdf , PDF pages 48 and 56 (and then some after each of these) has interesting engineering data on All Things Spark.

-Mike
Old 09-11-05 | 07:10 PM
  #20  
pmrobert's Avatar
Senior Member
 
Joined: May 2002
Posts: 386
Likes: 0
From: FL
4.7.4 in the above doc is quite interesting as well.

-Mike

Last edited by pmrobert; 09-11-05 at 07:23 PM.
Old 09-11-05 | 08:09 PM
  #21  
Rex4Life's Avatar
RX-7 Alumni
 
Joined: Oct 2002
Posts: 1,140
Likes: 1
From: Spacecenter Houston
Originally Posted by pmrobert
http://smrmicro.com/re-ky.pdf , PDF pages 48 and 56 (and then some after each of these) has interesting engineering data on All Things Spark.

-Mike
Hey that's a great find! Wish I had that a few years back.

Thanks Mike.
Old 09-11-05 | 09:19 PM
  #22  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
this is an awesome document mike! This has already helped me in figuring out why we're seeing some of the weirdnesses we're seeing at light load (not ignition related).
Old 09-11-05 | 09:32 PM
  #23  
pmrobert's Avatar
Senior Member
 
Joined: May 2002
Posts: 386
Likes: 0
From: FL
Cool. Glad it's of some help! I have more stuff like that I'll try and get up on smrmicro.com tomorrow, when I get home late afternoon and have full net access - I'm web only right now and can't u/l stuff from my laptop, working off Dad's machine right now, no wireless here and no router here :-( . Ken, please gimme a call at my cell, if you would, when convenient, just need your number - or PM me. My phone was stolen from the fire truck I work off of (scumbags!!) and I lost many important #s. I'll be keeping an actual hardcopy from now on. If you need my number, PM me. As always, thanks for everything, your code kicks *** so far!

-Mike
Old 09-11-05 | 09:53 PM
  #24  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
so I'm assuming you're actually running the FD style outputs now in the car? I'll give you a call tomorrow as it's getting a bit late tonight.
Old 09-11-05 | 10:57 PM
  #25  
pmrobert's Avatar
Senior Member
 
Joined: May 2002
Posts: 386
Likes: 0
From: FL
Originally Posted by muythaibxr
so I'm assuming you're actually running the FD style outputs now in the car? I'll give you a call tomorrow as it's getting a bit late tonight.
I've run both FC and FD style with ugly temp wiring and coil(s) mounting for just a trip or two around the block. I think I'm going to go with FC mode. I'm going to mount a 921 where my HEI7 is now for the leading http://smrmicro.com/v-web/gallery/Ma...oject/DSCN2967 and use the FC trailing coil pack to manage trailing. This will keep all high current, nasty EMI inducing current paths farther away from the ECU. Also allows me to get cool air for the intake from the old coils mount holes (FB). Thoughts?

-Mike

PS: tomorrow afternoon will be good for me for a call.



All times are GMT -5. The time now is 05:34 PM.