T-leg Piggyback ECU R&D

Heads, valves, pistons, rods, crankshaft, etc...

Moderators: Helpinators, Moderators

93forestpearl
Fifth Gear
Posts: 3043
Joined: Tue Jan 25, 2005 9:14 pm
Location: Twin Cities, MN

Post by 93forestpearl »

Just wondering exactly how it will be metering fuel because I'm going to the JY next week to get the rest of the stuff I need to make that motor go in my car. Will I even need the stock MAF? Or will it be MAP based. Can we scale in a larger MAF? Wideband or no?

I'm just trying to figure out exactly what I'll need to get this thing to jive.

Or is it too early to tell? I was just heading out to the JY and if I didn't have to buy the intake and MAF that would be nice.
→Dan

piddster34 at h0tma1l d0t c0m
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

Hey everyone,

Been out of town for a few days looking at Nevada property. I should be in Florida a month or two longer than previously anticipated, so I'll have more time to work on this project.

93forestpearl - you'll need a MAF for the initial product, and for now the stock one will do. For a larger range sensor I'd need the transfer function of it, or a conversion table, to implement into the software (if you wanted airflow to be converted and displayed properly). Should be no need for a larger MAF with this method anyway - the adjustments in the RPM vs MAP trim table will allow you to fool the ECU into thinking there is a certain amount of airflow at any given time, which will directly affect the injectors' duty cycles. You will need the MAP and MAF sensors for this piggyback to work.

Until I get my hands on a wideband O2 sensor and have a chance to experiment with it, the piggyback will just be for standard sensors. But once I get to playing with one, I can almost guarantee that I will write an auto-tuning feature...

While you're at the JY - you might want to grab any turbo or N/A ECUs and wiring connectors you see. With those, a quick-install adapter can be made for the LegaCU.
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
-K-
Third Gear
Posts: 865
Joined: Tue Oct 15, 2002 2:09 pm
Location: Grants Pass, Oregon

Post by -K- »

Well the stock MAF will still run out of sensor range. So I'm going to be building a insert to lower the amount of air getting to the sensor wire. I'll post a thread on this plan when figure it out. If you want one to play with let me know.

If you are going to put an auto-tune in I'd like to see it use a wbO2 input.

Also if I can't get my SAFC II to work and you think you could get some info out of it I might send it your way. It has a lot of different stock MAF's transfers built in. I can tell it what sensor is being used on the car and what sensor's output I want to go to the ECU. It doesn't have the USDM Legacy but it has a ton of Jap cars.
02 WRX Sedan, 5mt
93 Sport Sedan, 5mt
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

Yes, the stock MAF will only read what, 200 g/s? But it actually won't matter for the purposes of this product, since the stock ECU knows the stock MAF range and that's what we're faking. It doesn't actually have to read the higher airflow values properly, it only has to know the RPM and MAP readings to determine how to trim (or what to output) for the faked MAF reading for the ECU to interpret into injector control.

I'd be interested to see what you come up with, however... I will have a garage shortly to play in and will be doing all sorts of experiments anyway.

And of course, auto tune must use a wideband O2 - we'll need the accuracy for the minute adjustments this thing'd make.
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
-K-
Third Gear
Posts: 865
Joined: Tue Oct 15, 2002 2:09 pm
Location: Grants Pass, Oregon

Post by -K- »

Sounds good, can't wait till I can get my hands on one.

Did you ever think of mapping the MAF, MAP, RPM, and TPS then use the MAP, RPM, and TPS to make up the correct MAF output without a MAF at all?
02 WRX Sedan, 5mt
93 Sport Sedan, 5mt
azn2nr
Fifth Gear
Posts: 2412
Joined: Sun Nov 30, 2003 8:02 am
Location: salt lake city

Post by azn2nr »

now that would be cool if we could just produce the signals without the maf being there elimiating it completly.

ohh the possibilites
-jason
[quote="Scoobyniteowl"] Chasin' @$$ is a great form of exercise and if you do get any, then that is more exercise[/quote]
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

That's definately possible... not a bad idea. Vikash - any input on this? Hmm.....

For now I'll use the MAF but future revisions may include an option to eliminate it altogether.

Our stock MAP sensors have a range of -280mmHg to 1720mmHg, which is roughly 33.25psi max... should be enough range to do that... (or did I convert wrong?)
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
vrg3
Vikash
Posts: 12517
Joined: Sun Nov 03, 2002 2:13 am
Location: USA, OH, Cleveland (sometimes visiting DC though)
Contact:

Post by vrg3 »

I think we might have already mentioned that idea... maybe even in this thread.

But basically, if you can precisely measure intake air temperature, manifold absolute pressure, and engine speed, you can determine airflow for any particular engine. That's what speed density engine management does -- it has a volumetric efficiency table that tells it how much air flows at any given engine speed and MAP, and corrects the density based on IAT and barometric pressure. This VE table does need to be changed whenever anything that affects volumetric efficiency is changed, so it's dependent on modifications.

I think the stock sensor's upper limit is more like 15 or 16 psi.
"Just reading vrg3's convoluted, information-packed posts made me feel better all over again." -- subyluvr2212
93forestpearl
Fifth Gear
Posts: 3043
Joined: Tue Jan 25, 2005 9:14 pm
Location: Twin Cities, MN

Post by 93forestpearl »

Is there a way to find out a MAF's transfer function, or can that only be done on a flowbench? There has to be people that know them for larger MAFs being used like one from a cobra or 300zx and such.
Will removing the airbox be ok with this setup? Since I plan on building a rotated mount and doing some fmic plumbing this summer, I'd like to just run some pipe to the fenderwell.

I wonder which air metering method is more accurate. It sounds to me that using the MAP to sense air is quite a bit more complicated than just metering it with a MAF. How would you know what the the VE is with any given modification? I haven't taken fluids yet, but all the changes in directions, volumes, splitting, textures, etc. throughout an engine make me picture long and painful calculations to figure it out. I would hope there's a different way to figure it out.

Will we be able tell the LegaCU how big our injectors are? or is there or is that something we have to deal with?

Aside from that, all I can say is damn, the internet was the best thing to happen to gear heads :wink:
→Dan

piddster34 at h0tma1l d0t c0m
vrg3
Vikash
Posts: 12517
Joined: Sun Nov 03, 2002 2:13 am
Location: USA, OH, Cleveland (sometimes visiting DC though)
Contact:

Post by vrg3 »

You wouldn't know a priori what the VE table's values are. You don't usually calculate it; you guess at it and then observe what happens to the engine when you run with those parameters.
"Just reading vrg3's convoluted, information-packed posts made me feel better all over again." -- subyluvr2212
NICO
Knowledgeable
Knowledgeable
Posts: 2013
Joined: Fri May 09, 2003 10:41 pm
Location: Hamilton Ontario Canada

Post by NICO »

ok is there a system that wont cost me a lot that i can make work on my legacy turbo? i ant scared to wire the hole thing up what i was thinking take a wrx system and make it work can it be done i am running out of time.
1993 Subaru Legacy 44B STi 4Cam 16Valve Turbo Intercooled AWD
EJ22T, STi EJ207 DOHC, Vi-PEC (Spare Autronic) @ 426.20HP / 394.94ft lb @ 00psi
Tuned By: Franz Diebold ( DIEBOLD AUTOSPORT ) @ NVauto
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

Well, the LegaCU is only worked on in my free time right now, but it's coming along. It keeps getting set back by paid work, and issues I have to deal with on my cars. Like right now, I'll be distracted for a bit while I figure out my clutch situation as it has decided to begin slipping... (hint hint)

http://bbs.legacycentral.org/viewtopic.php?t=21168
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
azn2nr
Fifth Gear
Posts: 2412
Joined: Sun Nov 30, 2003 8:02 am
Location: salt lake city

Post by azn2nr »

any updates
-jason
[quote="Scoobyniteowl"] Chasin' @$$ is a great form of exercise and if you do get any, then that is more exercise[/quote]
93forestpearl
Fifth Gear
Posts: 3043
Joined: Tue Jan 25, 2005 9:14 pm
Location: Twin Cities, MN

Post by 93forestpearl »

bump

Had an idea, and can't remember if its been covered. Could this unit function as some sort of a security device? As in, enter a code for the car to run or something like that. Not to many people have access to a flatbed.
→Dan

piddster34 at h0tma1l d0t c0m
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

heh... life's a biatch sometimes - LegaCU has been untouched for a few crazy weeks now, I should once again be heading out to Nevada in the next month or two and then, once settled will again resume work on this. It will be a great piggyback but it might be a bit longer than anticipated... :oops:
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

(oh and hey - thats a great idea. I don't see why not.)
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
vrg3
Vikash
Posts: 12517
Joined: Sun Nov 03, 2002 2:13 am
Location: USA, OH, Cleveland (sometimes visiting DC though)
Contact:

Post by vrg3 »

Yeah, life's like that... It's worth waiting for a good thing though. :)

Yeah, the immobilizer feature is a cool idea. You could have a mode where it allows the car to start but only after several seconds of cranking, and then makes it run rough and then stall out after a short time. The would-be thief might just think the engine's crapping out or something.
"Just reading vrg3's convoluted, information-packed posts made me feel better all over again." -- subyluvr2212
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

OK... I have just shipped the latest iPod one-touch voice recorder unit off to be tested, and have a few days of leeway that I intend to use to get back to work on the LegaCU. Just took down the immobilizer feature in the "to do" section of the code, and am finding all the pieces of the prototype.

I do believe the first thing I'll try to do is digitally control boost with the stock solenoid. I suppose I'll be limited to the amount of pressure the stock MAP sensor can read, pre-FCD of course.

So Vikash - to speed things along here, could you help me think this through? I would read the signal voltage from the MAP sensor, and based on the reading I would either raise a pin to logic high to open the bleed or lower the pin back to ground to close it again... correct? Which wire controls the solenoid, any idea? That should be a relatively quick function to code and test...
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
vrg3
Vikash
Posts: 12517
Joined: Sun Nov 03, 2002 2:13 am
Location: USA, OH, Cleveland (sometimes visiting DC though)
Contact:

Post by vrg3 »

I don't think you want to get into closed-loop boost control... What you're suggesting is likely to result in oscillations. You would have to at the very least implement PD control.

What I was suggesting should still be fairly simple, but would require the infrastructure for editing tables:

Read in the tach signal and convert it to a number representing the frequency. Read in the TPS signal. Then use those two to look up a duty cycle in a 2-D table, and drive the wastegate control solenoid at that duty cycle.

http://www.graphics.cornell.edu/~v/ecupins/

The solenoid is powered through the ignition relay, and the ground side of the circuit is switched by the ECU -- it normally goes to the ECU's "Wastegate control" pin. So you'd want to drive it with your own open collector driver.

You'd have to pacify the ECU by connecting the pin to an ignition-switched +12v source through a 200-ohm 1-watt resistor or something.

You could start by setting a constant duty cycle at all sites in the table. The higher the duty cycle, the higher the boost. Then you can start playing with the table to make it bleed more at higher RPMs and higher throttle positions.

The above is exactly how newer Subarus do boost control from the factory.
"Just reading vrg3's convoluted, information-packed posts made me feel better all over again." -- subyluvr2212
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

Thaaats right. I remember that whole plan now - forgive my lack of remembrance, I have been distracted as of late :)

Thy will be done.
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

by the by, for my initial prototyping I will not be intercepting signals at the ECU just yet. Do you know which wire is which on the solenoid's connector in the engine compartment? That's where I'll modify for now since it's much more accessable - before I go and mess with the ECU connector.

I'd rather spend the time and make a proper plug-and-play connector from this ECU and harness Jason sent me later when I'm ready.
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
vrg3
Vikash
Posts: 12517
Joined: Sun Nov 03, 2002 2:13 am
Location: USA, OH, Cleveland (sometimes visiting DC though)
Contact:

Post by vrg3 »

You could figure it out pretty easily -- just unplug the connector and look for the pin that doesn't have +12v on it. But I would imagine it's the black wire, as the other one is pink/red.
"Just reading vrg3's convoluted, information-packed posts made me feel better all over again." -- subyluvr2212
THAWA
Knowledgeable
Knowledgeable
Posts: 6829
Joined: Thu Aug 21, 2003 7:44 pm
Location: Sacramento, CA
Contact:

Post by THAWA »

How close are you to coming to nevada now?
Rio Red 90 Legacy LS AWD 174k
Liquid Silver 92 SVX LS-L 88k
[url=http://folding.amdmbpond.com/FoldingForOurFuture.html]Do you fold?[/url]

I'm on First and First. How can the same street intersect with itself? I must be at the nexus of the universe.
free5ty1e
Fifth Gear
Posts: 2268
Joined: Wed Nov 12, 2003 12:26 am
Location: USA: Central FL
Contact:

Post by free5ty1e »

Looks like I actually will be staying in Orlando for at least a few more months before moving out there. The LegaCU ought to be in testing with some Legacy owners before I relocate.

Oh, and the first experiment I will run with the prototype is the closed-loop boost controller, where you just set a display to your desired boost level and it servo-locks the wastegate to achieve that. I keep going over the operation in my head and I've got to see how bad, if at all, this thing oscillates. Then I'll try the table idea. But the closed-loop boost control is a lot less work and much closer to testing, which is what I've been dying to begin doing while I've got half a chance.

Worst case, if the PSoC can handle the closed-loop boost control but nothing else, then I'll put it all on a separate chip. They're only like $4 apiece so its no big deal to add more processing power...
-Chris
91SS 4EAT stock, 200k mi
91SS 5MT rebuilt engine waiting for a shell
93TW 4EAT, Forester lift, 3" TBE, 11psi, 200k mi
94SS 5MT4.11+rLSD 311k km: RobTune550,TD05-16g @ 18psi,FMIC,3"TBE,Forester lift
mikec
Third Gear
Posts: 893
Joined: Tue Jan 21, 2003 8:27 pm
Location: Toronto, Ontario
Contact:

Post by mikec »

Closed loop adjustable boost control alone would be pretty sweet. Especially for about the same price as a decent store bought MBC.
"That shouldn't be a problem, since I do regularly visit the realm of subatmospheric manifold pressures." -- vrg3
Post Reply