Megasquirt Forum Area is for discussing Megasquirt EMS

Megasquirt MS2/extra rotary thread

Thread Tools
 
Search this Thread
 
Old Nov 26, 2006 | 08:26 PM
  #1  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
MS2/extra rotary thread

I just finished writing and testing the staged injection code for MS2/extra.

It has support for gradual staging transition, and 2 parameter staging, and supports secondaries that are smaller than the primaries.

With the next alpha release of ms2/extra, it will be possible to run a stock rotary on ms2.... (without trailing ignition).

Next I'm planning on adding a couple more curves to the setup for EAE (wall-wetting based accel enrichments which have worked great on an ITB-equipped 20v 4age, one of the worst-case scenerios for accel enrichments) to compensate better for quick throttle stabs.

After that, I'll be adding rotary trailing ignition code.

I plan on having something that'll run a stock rotary with trailing ignition within 3 weeks. (I'm moving soon, so can't code for the next week or so).

anyway, this thread is going to be the main place I talk about my progress with ms2/extra on the rotary, and may not be updated THAT often.

Ken
Reply
Old Nov 28, 2006 | 10:01 AM
  #2  
toplessFC3Sman's Avatar
Rotary Freak
iTrader: (1)
 
Joined: May 2006
Posts: 2,169
Likes: 5
From: Ann Arbor, MI
nice! i'll stay tuned in. Are you basing this off of an s4 or s5?
Reply
Old Nov 28, 2006 | 10:13 AM
  #3  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
I'll be testing on an s4, and would like to find a 3rd gen to test with as well.
Reply
Old Dec 5, 2006 | 10:03 PM
  #4  
SMKNRX7IL's Avatar
Full Member
Tenured Member 20 Years
 
Joined: Sep 2001
Posts: 133
Likes: 0
From: Illinois
Any progress on the trailing ign. code? I pretty much am holding off to buy MS until it can run fuel and spark.
Reply
Old Dec 6, 2006 | 08:27 AM
  #5  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
don't hold off... just get an ms1 with a v3 board... ms1/extra runs a rotary with leading and trailing, and staged injection just fine.

I'm working on the code as I get time, but I just moved into my new house and am still unpacking so it might be a bit longer than I thought it would take.
Reply
Old Dec 6, 2006 | 03:18 PM
  #6  
SMKNRX7IL's Avatar
Full Member
Tenured Member 20 Years
 
Joined: Sep 2001
Posts: 133
Likes: 0
From: Illinois
I know all about the after effects of moving... especially if you have kids.
Reply
Old Dec 8, 2006 | 08:49 PM
  #7  
tvrbo's Avatar
Junior Member
Tenured Member 05 Years
iTrader: (1)
 
Joined: Nov 2006
Posts: 27
Likes: 0
From: LA
Originally Posted by muythaibxr
don't hold off... just get an ms1 with a v3 board... ms1/extra runs a rotary with leading and trailing, and staged injection just fine.

I'm working on the code as I get time, but I just moved into my new house and am still unpacking so it might be a bit longer than I thought it would take.
Im about to get a ms1 v3, but was waiting to hear if you finished the ign code for the msII. I have a couple months left in engine building, do you think the msII code for trailing will be funcitional around then? I ask because I am anxious to assemble the unit and start reading the manual.

Aaron
Reply
Old Dec 10, 2006 | 09:24 PM
  #8  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
I planned on having it done this weekend, but with the move, things have gotten a little sidetracked... I hope to have it done before the end of the month.
Reply
Old Dec 18, 2006 | 05:43 PM
  #9  
dpf22's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Mar 2002
Posts: 409
Likes: 0
From: Logan Utah
How i the move progressing ken? Hope things are going well, anyways sorry for pm'ing you, forgot what you said about it. I hardly post things anyways. However, I guess I could wait for the MS2/extra code to come out to run negative split on my MS. I am one that is very eager to experiment with this and would love to see the effects, good or bad. My engine is toast anyways. Learning how to tune is fun, yet frustrating at times lol.
I know I should search, but I was wondering if you could tell me if there were any mods needed to run ms2/extra on the v3 set-up, or will the wiring be identical?

dpf22
Reply
Old Dec 19, 2006 | 08:46 AM
  #10  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
The wiring will be mostly the same... We will document everything once we're ready for more people to start trying it out. Right now we're just trying to get alpha testers, as things are still very much in flux.

I've just started really getting back into coding this weekend, and I used that time to fix a lot of annoying bugs, and then last night I rewrote the missing tooth synchronization code to deal with higher compression engines.

I *should* be able to do the rotary trailing code this weekend since I'll be at the family's house with nothing to do
Reply
Old Dec 19, 2006 | 02:44 PM
  #11  
dpf22's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Mar 2002
Posts: 409
Likes: 0
From: Logan Utah
lol cool man, I'm not trying to rush you or anything. I am willing to wait till you guys get it completely squared and done. I have been taking some serious notes and have talked to a "supertuner" about what a good tune entails. I want to try some stuff on my current engine as I will be replacing it with my tax return lol


dpf22
Reply
Old Dec 28, 2006 | 02:21 PM
  #12  
toplessFC3Sman's Avatar
Rotary Freak
iTrader: (1)
 
Joined: May 2006
Posts: 2,169
Likes: 5
From: Ann Arbor, MI
I'll be getting a megasquirt for my TII in a few months, and if you have an alpha or beta version ready by then, I'll do some testing for you on the MS2/V3. I was planning on the MSnS1/v3, but if this will be out, and i'll be able to help out with it, then i'm all for it!
Reply
Old Dec 28, 2006 | 02:31 PM
  #13  
Whizbang's Avatar
Respecognize!
Tenured Member 20 Years
 
Joined: Sep 2004
Posts: 4,106
Likes: 72
From: Anchor Bay, CA
you are swaying me to get the MS2 when i get my megasquirt.
Reply
Old Dec 28, 2006 | 02:58 PM
  #14  
Fault Bucket's Avatar
77333
Tenured Member 05 Years
 
Joined: Aug 2006
Posts: 221
Likes: 0
From: Burien, WA
Any thoughts on when MOP integration could happen? I have an S5 that I'd love to 'squirt, but I'm not really interested in going to premix. Keep up the good work!

-chris
Reply
Old Dec 28, 2006 | 04:27 PM
  #15  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
no idea. I don't know how the OMP is set up. Would need an OMP to test with.
Reply
Old Jan 4, 2007 | 10:39 PM
  #16  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Just an update. I finished all the main-loop code (table lookup, calcs to figure out tooth and offset to fire from, etc... )

So next (this weekend) I'll be working on the code in the interrupt handler.

Also, I've written this code so that it'll support negative split... I made the range for split -20 deg to 20 deg (in reference to leading); does anyone here who cares think that's enough? I also made negative split being allowed optional, so I can ensure that if negative split is enabled, trailing will *never* fire before leading.

Ken
Reply
Old Jan 4, 2007 | 11:18 PM
  #17  
toplessFC3Sman's Avatar
Rotary Freak
iTrader: (1)
 
Joined: May 2006
Posts: 2,169
Likes: 5
From: Ann Arbor, MI
i dont know why you'd need much more than 20 degrees of split... if you wait too much longer to fire the rear plug, it will be at the very trailing edge of the chamber. Im curious as to why you'd run positive split?
Reply
Old Jan 5, 2007 | 12:18 AM
  #18  
dpf22's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Mar 2002
Posts: 409
Likes: 0
From: Logan Utah
I guess I will speak up and say that I might want more like a range of -40 to 20 positive. I am the kinda guy to experiment and I am sure I am not the only one. However, your decision man. 20 degrees negative is better than nothing negative honestly ^_^

dpf22
Reply
Old Jan 5, 2007 | 09:13 AM
  #19  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
I'll start with -20 then. If that ends up not being enough, I'll go to -30 or -40.

Also, I don't know if I said this already, but staged injection is working (has been for a month or so).

I made it so you don't have to figure out a scaling factor anymore. You just specify the sizes of the primaries and secondaries, and it figures the rest for you.

You can stage on one parameter or two (selectable from RPM, MAP, or TPS), you can use "AND" or "OR" logic for the second parameter... and my gradual transition code is there as well, and works a lot better due to the calcs being done in .01 usec units. I've set the transition as high as 255 events, and it actually hits all 255 events.

Ken

Last edited by muythaibxr; Jan 5, 2007 at 09:19 AM.
Reply
Old Jan 5, 2007 | 09:23 AM
  #20  
turboefini88's Avatar
Long rifle.
Tenured Member 05 Years
iTrader: (1)
 
Joined: Aug 2006
Posts: 653
Likes: 0
From: pittsburgh
Sweet. Ken, Im hopin you got this in a stable release when Im ready to buy my MS.
Reply
Old Jan 5, 2007 | 01:05 PM
  #21  
2713ddddavid's Avatar
Banned. I got OWNED!!!
iTrader: (1)
 
Joined: Jan 2005
Posts: 841
Likes: 1
From: Harper Woods, MI.
Ken I`ve been following along and as always I am very impressed with your knowledge. Now that I`m about done with my second MS I hope all I have to do is by the MS2 daughter card to make the upgrade to MS2 when you`re done with the code.
Reply
Old Jan 5, 2007 | 03:36 PM
  #22  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Thanks david. I don't think I know that much, (there are definitely people who know more anyway), I actually learned most of what I know about ignition/injection code when I was working on msns-extra. I learned it from reading renn's staging code, and James (jsmcortina's) wheel decoder code!

In any case, the point of my staged injection comment is that one *could* run a rotary now leading only... (it might not be in the last alpha though, it might be in the alpha I'm releasing tonight... I don't remember what was in the last alpha).

Ken
Reply
Old Jan 5, 2007 | 09:30 PM
  #23  
dpf22's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Mar 2002
Posts: 409
Likes: 0
From: Logan Utah
sounds awesome dude. I may have to pick up an ms2 chip/daughter card here right quick
itching to use the extra resolution and features
Reply
Old Jan 7, 2007 | 10:55 PM
  #24  
muythaibxr's Avatar
Thread Starter
MegaSquirt Mod
Tenured Member 15 Years
 
Joined: Sep 2004
Posts: 4,721
Likes: 1
From: Maryland
Well, right now there aren't many extra features... EAE, and the fact that for ignition, every tooth on the wheel is used are really the main advantages.

The resolution is a good one too I guess. With my conversion to doing the calcs in .01 usec resolution, I can actually accurately control the pulse width to 1 usec. This has allowed me on the corolla for example to increase the number of squirts per cycle from 2 to 4, giving me better throttle response (and even though my idle pulse-width is now 1.494 ms, I still have very accurate control of the AFR... down to about .2 points, and I could make it better by decreasing my req_fuel, and scaling my table).

Oh, and staged injection is in the latest alpha, which I released yesterday.

Ken
Reply
Old Jan 8, 2007 | 12:28 AM
  #25  
dpf22's Avatar
Senior Member
Tenured Member 10 Years
 
Joined: Mar 2002
Posts: 409
Likes: 0
From: Logan Utah
so, the current release will handle the negative split?
sorry for asking the stupid question,but there isn't an update thread posting the link for the MS2/extra download like the msns-e. Not that it bothers me, I am just a little lazy lol


dpf22
Reply



All times are GMT -5. The time now is 02:43 AM.