My experiences with Megasquirt

Your premier source for information on the Turbo KA: KA24E-T and KA24DE-T (KA with aftermarket turbo kit)!
User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

So I have been asked to document my work in getting my megasquirted '93 KADET working.

This is an account of my recent efforts to get a Megasquirt full standalone ECU powering my KA-T. I will try my very best to make sure it is complete and accurate, but you should not blindly follow it as a comprehensive step-by-step guide.

I bought a fully assembled Megasquirt 1 version 3.0 from Matt at DIYautotune.com. I highly recommend buying from him. He has experience with squirting 240s, and was ALWAYS a great help to me as I had various troubles along the way. Some slight modifications need to be made to his fully assembled boards. You can pay an extra $20 for him to do it. See this article here, for more info on that: http://www.diyautotune.com/tec...x.htm

I suggest you read that all the way through, as it will get you well on your way. THE INFORMATION I AM PROVIDING HERE IS MEANT AS A SUPPLEMENT TO THE INFORMATION PROVIDED IN THAT ARTICLE.

Now, on to the wiring. I suggest you get yourself a copy of the FSM and look at the foldout section.

For wiring up the idle control valve:

For idle control I am using the stock a/c FICD valve, and it seems to work just fine. You need to locate the wire going from it to the ECU. It is green with a blue stripe and it goes to pin 45. You need to connect that to a relay, and then connect the relay to ground. Ground it far, far away from everything else. Then give the + coil side of the relay 12v and connect the -ve coil side to the Fidle pin on the megasquirt. Now go to your engine harness. The plug you want is one of the ones on the front of the engine, specifically the one that is ziptied to the valvecover breather line. You can verify that you have the right one by checking where the wires go. If they go under the manifold, to the valves on the back, you have the right one. Splice the brown wire in with the blue/green wire (only the end leading to the valve). This will provide the valve with constant power when the key is on.

Guess what, the stock ecu controls the tach!

That's right folks. If you want to use your stock tach you need to wire up a little circuit. See this picture taken from the MS manual: http://www.msextra.com/manuals...o.GIF

Where it has the 1-10k resistor, I used a 1200 ohm one and it worked for me. I also used a different transistor (one I had laying around) so it might be slightly different for others.

Ignition:

For some reason the stock coil and transistor don't seem to want to work with MS. I ended up using a MSD blaster SS coil. Note that since the VB921 in MS has current limiting capabilities, you won't need a ballast resistor. MSD states that the optimal dwell time for this coil is 3.50 ms.

Using the stock temperature sensor:

You can easily use the stock sensor, but you need to calibrate MS to read it with Easytherm. Search it up and follow their instructions. Or, if you don't/can't remove it and test it, use these numbers (what I got with mine):

-4 F 5190 ohm86 F 480 ohm210 F 207 ohm

The SCV system:

If you haven't removed those stupid butterflies from the intake manifold, you need to ground the solenoid that controls them. Grey wire, pin 25.

I think that about covers it. Do all of the stuff in that article from DIYautotune.com, then do what I have said, and you should be well on your way.

I will add more information as I go along/think of it.

Now comes the tuning. Have fun.
Modified by ZiG at 7:08 PM 9/14/2007


User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

thanks a ton zig. i wasn't aware of the tach issue.. but at least it's easily fixed.

I'll probably be ordering my MS within the next 3 weeks. I'm going to go with the MS-2 pcb 3.0.

have you gotten your idle problems sorted out yet?And when you get a chance could you link your msq? i've been doing a mixture of calculating settings mathematically and randomly guessing. so if i could actually look at a semi working tune that would be awesome

it's mostly the ignition settings i'm not really sure about.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Hey, no problem. Glad to help. I did indeed get the idle sorted out. Seems it was just some tuning. It idles just fine now.

Today there was a meet for the local 240sx club, and I managed to make it down there. Everyone was pretty impressed. What really amused me though, was that there is another guy with a 'squirted 240 (though he paid a shop to do it all) and he couldn't believe that I had managed to get mine to start the first time, every time. haha.

Yeah about the tune.. I don't currently have anywhere to host it. I put it here for now: http://files-upload.com/files/...7.msq

If you know somewhere I can upload it for free/for ever, please let me know. Otherwise I guess people can just give me their email and ask me.

About that tune: I got the base VE and spark tables from another guy on KA-T.org. They seemed very reasonable so I just loaded them up and went. Idle is pretty much a perfect 14.5:1 AFR, and it gets pretty rich under boost (hey, better that than too lean). The spark map is pretty tame, but again, it's always good to start on the conservative side. It's perfectly driveable for me as it is. I've just been driving around with autotune turned on, and this has been the result of a few hours worth of fine tuning. My setup is as follows:

SR t25SR 370CC injectors cleaned & flowtested (didn't need to be balanced)knocksense MS knock light (Highly recommended)innovate LC1 wideband with in-dash gauge

And I think that's all that's relevant.

Ok everyone: go start squirting.

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

actually zig if you email it to me i've got one of the free geocites webpage accounts. I could host it up on that, then i'll just put a link in the thread here.

There's a book I've been reading recently called "How to Tune and Modify Engine Management Systems" by Jeff Hartman. I got it on ebay for $3 shipped.The book runs through everything about how the ECU actually works, the sensors involved, and how it controls all this to make the engine run.

I learned alot from it and i'm sure it will help with the tuning of the megasquirt.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Huh. Sounds cool. I'll have to see if I can find it somewhere.. Thanks for the tip.

I'll email you the file.

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

alright yahoo hosting is stupid. It rejects the .msq file type as being invalid...

SO i renamed it to a .txt which is kinda nice because you can open it and see whats in the msq. Just remember to rename it to open in Megatune.

There's Zig's current tune.http://www.geocities.com/kraze...g.txtto use this in megatune rename the extension to .msq

Here's the ignition map from zighttp://www.geocities.com/kraze...p.txtrename the extension on the ignition table to .vex

Hope this helps anyone looking at the megasquirt system. I'm planning on doing MS2.. and will probably order everything next week. So expect updates as i attempt to build and tune everything.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Sweet, thanks man.

Keep me updated!

User avatar
WDRacing
Moderator
Posts: 15983
Joined: Mon Nov 25, 2002 2:00 am
Car: 95 240SX, 99 BMW 540i, 01 Chevy Express, 14 Ford Escape
Location: MFFO
Contact:

Post

Great work Zig, I'm adding this to the sticky

WD

180sx
Posts: 230
Joined: Thu May 08, 2003 3:25 pm

Post

hello. So did you remove engine harness completely? And besides fuel pump what other relays are you re-using from oem ?

On My buddies 93 we just used the ignition wire as our main power for everything(coil/fuel inj/cas/ms itself ). What and how did you relay off components?

We started with megafire coil but after destroying vb921 realized its suppose to be used with msd or cdi box only. Went back to oem coil 4 now.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

I reused as much of the stock wiring as I possibly could. I am using the stock ECCS relay to power stuff, and that is switched on by another relay as per the diagram. This was the only relay I had to add. Gotta be sure to only let the injectors have power when the key is on, too.

The VB921 is a high current transistor that should be able to drive most coils.. You DID make sure you were triggering off the -ve terminal, and in Megatune you have 'Spark output inverted' set to YES, right?

180sx
Posts: 230
Joined: Thu May 08, 2003 3:25 pm

Post

yah spark output etc correct. Car runs but 2 vb's later i know why only for a while.1st vb blew cuz we had dwell set at 6. Than we set it to 3.5 and it still took out the vb in like 30min. So looked up on msefi and there is a post of someone blowing vb's and reason being is after market coil. Some coils require the msd or cdi box , box itself regulates the dwell. Without box coil pulls too much current via vb and limiter goes.

this is from the post:""BLASTER SS COIL SPECIFICATIONS Primary Resistance: .355 ohms Peak Current: 300mA Secondary Resistance: 6.2K ohms Spark Duration: 180uS Maximum Voltage: 48,000 volts Primary Inductance: 6mH

reply:Your coil is designed for use with an MSD box . Most coils have 3 to 4 times as much resistance as your present coil .

It will put out less spark power than your stock coil unless it is driven by a CDI type ignition box like this : Multi-Spark CDI Ignition

Your VB921 will drive the white wire on this box or an MSD box , (wiring is identical in both units) . """ Vb is somewhat being re manufactured so its hard to find in Canada. And Usa shipping is 8x the chip.

But i looked around and this coil my buddy has I so far only seen used with conjunction to megafire ignition moduals. So i am waiting for few more vb's and than going with oem coil 4now. Gotta get this project outta the garage already.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Wtf? I'm using a blaster SS coil.. Maybe that's with an older one or something. MSD said the optimal dwell time is about 3.50 ms.

User avatar
BoostFab
Posts: 3529
Joined: Wed Dec 03, 2003 8:23 am
Car: S13cp, S13fb, S14z
Location: Nismo Land
Contact:

Post

ZiG megasquirt files on my server:

Squirted: megasquirt200709141747.msq

Stock ignition: ZiG_stockignmap.txt


User avatar
eazye2000
Posts: 1880
Joined: Mon Jun 27, 2005 9:42 am
Car: S13 KA-DET
Location: Inverness, FL
Contact:

Post

<--- *waits for his balls to drop so that one day, he may MS his car too*

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

BoostsFed wrote:ZiG megasquirt files on my server:

Squirted: megasquirt200709141747.msq

Stock ignition: ZiG_stockignmap.txt
Thanks man!

A little update: I don't like using the AC Fidle solenoid for idle control. It idles either just a little too low (still smooth but I worry about low oil pressure) or it idles at like 1100 RPM. Which I suppose is porbably fine, but I'm going for perfect here.

On that note I have finished modding it for a PWM IAC and I'll hook that up tomorrow or something. It should be noted that if you really want to, you can bypass idle in megasquirt altogether, all you would have to do is wire up the AC Fidle solenoid to be on whenever the key is, and then fine tune it with the idle speed screw. The lazy man's approach. Or perhaps the approach of the ambitious man that decided to squirt in the first place, but got annoyed at the project and decided that as far as idle goes, close enough is good enough. haha.

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

Alright,finally went for it and order my MS2 kit on friday.

Now i did get the kit, not the pre-assembled. But hopefully i should have the Megasquirt itself assembled within a week. Then i'll just order the various sensors i need and dig into the wiring harness.

I've been researching all the firmware options, and made my final decision that i'll be running the MS2 extra firmware. which is currently in the 1.02 release.It has some really cool stuff in development for it like 16x16 tables, boost control(MS1-E has this already), and some other stuff.

I'm planning on doing the same as Zig and reusing as much of the factory harness as possible. But if i get ambitious i may go through it later and completely redo the whole harness.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Good luck!

And good choice with the ms2/extra. When they develop it a little more I'll probably switch to it too.

The only sensor you'll need is the iat. And remember to put it in the cold pipe.

Where did you buy it from?

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

i'll remember about the IAT.

i got the kit from diyautotune.com also. They seemed really helpful in talking with them.

probably Wednesday everything will arrive in the mail. So hopefully i can find the time to get it built, then i can worry about getting it into my car.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Yeah, Matt's a good guy. Loads of help in getting mine running.

I hope for your sake that your s13 isn't your only transportation. It is for me, and rigind my *** on the bus to school (engineering student) for 2 weeks REALLY sucked. But I guess I had a lot of problems I had to figure out, so hopefully the things I learned will help others to finish it faster.

Good luck and keep us posted.

*shudder* stupid bus.

User avatar
480sx
Posts: 4085
Joined: Sun Nov 12, 2006 5:27 pm
Car: 1996 Pearl White 240sx

Post

As an addition to this sticky ill add some info from my MS2 experience.

I was able to get my car running and idling great with a slightly different setup. Also, from everything iv read MS2 is much more difficult to get running than MS1. Even on the MS support forums, i wasnt able to find a single person who ran MS2 successfully on a KA. Just keep that in mind when your choosing between the two.

My setup, like ZiG's was to let MS directly control the coil through the Hall Optical CAS. I was able to get my timing dialed in at a trigger offset value of 72. This will be different for some people, depending on how you have your Dizzy turned, however 72 is enough to get your car running. Some people have said that its 108 or something. While i cant contest this, all i know is that my car ran and held timing dead on at 72.

I however went with the path of least resistance and kept the stock ECU to control idle, tach, AC, ect. I butchered the wiring harness in doing so. However, i cant see any possible way of not doing so if your installing MS.

The main problem i had was tuning startup/cranking pulse widths. I had a great tune after about a week of having my car running and saved over it, and was never able to get it back to that point. I should have just scraped everything i had done and started fresh but i got frustrated of having my DD down for 3 months and went with Enthalpy..

Another issue, the main reason i switched to a stockish ecu, i left my key on one night and somehow fried the VB just by doing so. That was just kinda the straw that broke the camels back.

Oh, and using the MS Dwell calculator, a blaster 2/3 coil has an optimal dwell time of 2. Matt said this was a little low and i could try to crank it up, but with the dwell set at 2 i had no issues. If you want to crank the dwell up higher, open the MS case while its sitting at an idle for a while, and put your finger over the VB unit. If its to hot to touch, your dwell is to high.

I recently picked up a front wrecked 240 and plan on using MS for it(track car? as long as the frames strait!) , so we will see how that goes.

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

So my MS2 build is going pretty well.

Stimulator is finished, Megasquirt board will have power, serial, and most of the clock circuits finished by this afternoon. So it's going really well. I'm going to wire it in initially just using the factory wiring. Then over the winter, while the s13 is off the road i'll make my own wiring harness then swap it out in the spring.

found a great amount of info on MS2/MS2extra with the KA from a guy called KApower on the forums.here's his success thread.http://msruns.com/viewtopic.php?t=22422

the awesome part is the guy has put a great deal of work into documenting his project so he has diagrams and everything for setting up the board.

just as a note to anyone looking at megasquirt or any other tuning, the great guys at Injected Performance have a deal running on widebands so take a lookhttp://forums.nicoclub.com/zerothread?id=281562

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Oh, thanks for the contributions guys.

Yeah I saw that guy on the ms success stories.. Not much applied to me though, and he wouldn't answer PMs.

User avatar
480sx
Posts: 4085
Joined: Sun Nov 12, 2006 5:27 pm
Car: 1996 Pearl White 240sx

Post

Key words by that guy, 'KaPower' "I first Megasquirted a ka24e in 2004 with ms1".

His thread has a bit of decent info on it, but its not all that helpful.

The one thing i found interesting was the fact that he adressed the number of squirts per cycle issue. I had the same issue when i ran two squirts, changed it out to 4 and it fixed the issue much as that guy said.

ZIG how many squirts do you run? Did you have the same issue with it stumbling off idle with two?

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

I run 4. And yeah I noticed right away that it ran better that way, though I figured that out about 5 minutes after I first got it running. Now I'm playing with my accel enrichments. They're not perfect yet (still a bit of a stumble at low rpm when i punch it), but way, way better than they were.

I'm going to a dyno with a guy that's tuned many, many megasquirted cars, this coming tuesday. It should be awesome.

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

ZiG wrote:Using the stock temperature sensor:

You can easily use the stock sensor, but you need to calibrate MS to read it with Easytherm. Search it up and follow their instructions. Or, if you don't/can't remove it and test it, use these numbers (what I got with mine):

-4 F 5190 ohm86 F 480 ohm210 F 207 ohm
Zig you might want to take a look at this.FSM states these readout for the factory CLT.68* F 2.1 - 2.9 K ohms122* F 680 - 1000 ohms176* F 300 - 330 ohms

I bought myself a new one from one of the sponsors and got 17,500 ohms at 12* F. So.... your sensor appears to be a bit off

on the other hand i'm hoping to have my MS2 finished this week and probably start the wiring redo weekend. So far everything is looking good with the stim and megatune.

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Er..... uh oh. Well I'm pretty sure it's reading ok still, because the temps always make sense and when the engine is stone cold it reads almost the exact same as the IAT. :S

In any case, after 1.5 hours of dyno work:


Modified by ZiG at 9:48 PM 10/2/2007

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

nice work man,read your other thread. the WOT issue was a little retarded hopefully they'll work something out.

Megasquirt LIVESTonight i finished building my MS2. Honestly the DIY kit is worth the savings from getting a prebuilt. It only took me a week to put it together. i'd have to say that the 6-8 hours assembly is just about right, and if you have the time it's definitely worth it.

Passed all stim/megatune testing and everything looks great. I've got 3 more mods to do to the board then it's good to go(tach input pullup, tacho out circuit, and a relay control circuit)

btw this is what i'm planning on doing for timing. I'm going to mess with the dizzy and trigger angle until the values in the bin is the actual measurable timing.

If tomorrow isn't too crazy i think I'm going to put my LC-1 in, and just use the narrow band output for the factory ECU for now. Then hopefully this weekend i can start on the wiring harness modifications.

Modified by krazydriver at 9:29 PM 10/3/2007

Modified by krazydriver at 9:31 PM 10/3/2007
Modified by krazydriver at 10:39 PM 3/30/2008

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Nice! I dunno about adding 3 to all of it though.. certainly not anything above 100 kpa. Ka's don't like lots of timing.

What the hell is that skin? is that megatune? looks COOL!

User avatar
krazydriver
Posts: 2443
Joined: Thu Feb 08, 2007 5:24 pm
Car: 2002 civic ex, 1993 KA-T 240sx - parting it out...

Post

nah the skin is called Fett and it's from windowblinds which is part of a larger program called object desktop put out by stardock.http://www.stardock.com/products/odnt/

I used to use it solely for the skins, but it has alot of other nice features that allow you to run multiple desktops simultaneously, keyboard shortcuts etc.Take a look at it. it's pretty cool. There's THOUSANDS of skins online and the program allows you to make your own if you want

User avatar
ZiG
Posts: 836
Joined: Tue Aug 22, 2006 4:01 pm
Car: 1993 240sx coupe

Post

Oh, windowblinds, yeah. I used to use that, but this old p4 2.8 is getting slower every day, so now I just have all my visual themes turned off. The desktop thing is nice, my ati video card software has that.

..Also nice to have in linux.


Return to “KA24ET / KA24DET Forum”