Slashdot Mirror


Build Your Own Fuel Injection Computer

renaissance-redneck writes "I was searching for details on assembling a fuelie setup from junkyard parts when I stumbled across this: 'MegaSquirt is an Experimental Electronic Fuel Injector Controller for Internal Combustion engines. Its main goal was to create a simple fuel-only controller that could be easily reproduced with cost-effective components.' If you've got the time and the skills, it beats spending $2000."

13 of 282 comments (clear)

  1. Interesting... by wowbagger · · Score: 4, Interesting

    This raises an interesting question - namely, when are we going to see more hacking done on modern engine control computers?

    I don't mean the current crop of "chips" that increase horsepower by overriding emissions control code, or remove the rev limiter code, I mean real, creative hacks.

    For example, a friend of mine and I were discussion this possible hack:
    On an engine with sequential multipoint injection (one injector per cylender, near the intake valve), could one modify the ECU so that, when the engine is under minimal load, instead of firing the injector on every intake stroke, it would fire on every other intake stroke - in effect changing a four stroke engine into an eight stroke engine?

    In theory, this would allow you to run a leaner mix (leaner = hotter burning) without burning up the cylinder, and you could save fuel. When the ECU detected the engine being placed under more load, it would start firing on every intake stroke (and remap to a richer mix).

    Of course, I suppose the reason we don't see this is because hotter combustion = more carbon monoxide produced instead of carbon dioxide.

    Now, if I could just get anoncvs access to Ford...

    1. Re:Interesting... by Juggle · · Score: 5, Interesting

      Actually that has been brought up already on the MegaSquirt list - and Chevy is doing something similar on a vehicle in the next year or two with an engine that dynamically changes from 6 to 4 cylinders. It was done before (by Cadillac IIRC) but didn't work out well because the technology to pull it off just wasn't available.

      Oh - and it's also a technique used in some motors alreeady. The Ford Focus will do exactly what you described if it starts to overheat in an attempt to "Limp home".

      --
      --- Juggle juggle@hitesman.com
    2. Re:Interesting... by pr1000 · · Score: 3, Interesting

      In response to your question of when we're going to see (much) more hacking of engine control computers, my guess is that it won't happen soon, if at all. I think most people (including very knowledgable computer people), lacking a strong mechanical knowledge of cars, don't have the time or inclination to learn all the ins and outs of car computer systems.

      That being said, I agree with you and think it would be great if more interesting hacks come out.

    3. Re:Interesting... by DonFinch · · Score: 4, Interesting

      Fuel flow curves and mix balencing is fairly complicated stuff. Most of the chips you see just alter the full throttle intermix curves. and that is about all you can do for power with injection control, and that only gets you a small gain. The stock computers at non WOT (wide open throttle) are designed to keep the engine at the most effective mix, by very quickly qhanging the mix from lean to rich. The best way to get more fuel into the engine is to get more air to the engine. You need more air to make more fuel burn effectivly, simply increase the fuel, you wont have the air to reap the rewards. Get more air to the engine, and the air sensor will compensate by injecting more fuel to the chambers. This is the basis behind forced induction.

      Now, at WOT, you want lotsa fuel, since there is the max amout of air getting to the motor. Engineers know this so when your gas pedal hits the floor, the computer quits computing the best mix. It reverts to pre-programed mix curves from the factory., now if your motor is getting more air than it was originally designed to get, you need new WOT mix curves. this is what your aftermarket chip does. Now, you could program these curves yourself, but you better KNOW your shit. Get this fuel mix wrong, and manage your engine poorly, or make a typo, and you'll be debuging by rebuilding your cylinder head, or worse, replacing pistons and rods.

      if you want to see great examples of automotive stuidity, go here www.overboost.com

      --
      -- Insert wisdom here:
    4. Re:Interesting... by Gonzoman · · Score: 2, Interesting

      I vaguely recall someone doing research on using solenoids to run the valves. I think the problem was with getting the solenoids to run fast enough. I thought it would be a cool idea to be able to change valve timing on the fly and have the whole thing controlled by a computer.

  2. Here's why... by Anonymous Coward · · Score: 5, Interesting
    The reason you would want to do this: If you do significant engine modifications, generally to increase engine output, you'll need to tell the injectors to supply a non-standard amount of fuel. Add a turbo, for example, and you can easily double your engine's horsepower -- assuming the engine's internals are up to it -- but you'll need to remap fueling and timing or the engine goes boom.

    It's a pretty cool way to get supercar performance from lesser (read: cheaper!) vehicles. My daily-driver Miata has the factory 1.8L engine, force-fed 15psi boost by turbo. It puts out 250hp/250lb reliably (up from factory 120hp or so) and, thanks also its low weight, it outperforms 'Vettes -- except for top speed, and excluding the awesome Z06, of course. But then I paid about $20k for my car, not $50k... (Check out Flyin Miata for more info, no affiliation except as a happy customer.)

    I'm not using the MegaSquirt (using Flyin Miata's Link ECU instead) but the concept is the same. There is a HUGE need for an affordable programmable ECU among us automotive tinkers.

  3. Coincidence? by tiger_66_y2k · · Score: 2, Interesting

    Scary....I was just talking to a friend about attempting to make an OSS version of Ford's EEC (IV or V) with nothing but software and some jerry-rigged type of wiring harness. I definately think it is possible.

    I haven't had time to get into trying it just yet, but after recent issues with my car (fixed now), I thought up the idea. If time permits and I actually do get something hacked up, I will surely post it as OSS for all the world to play.

    Then again, if I or somebody did make something like this...what would Ford's reaction be? I mean with all the casual sueing going on recently.

    Oh well!

  4. Holy lack of engine tuners! by xtal · · Score: 4, Interesting

    Ok; It seems that engine tuning isn't the biggest geek topic. That suprises me, since a few years ago when I got my first car, I learned everything I possibly could about every nook and cranny in it, engine included. There's a lot of interesting things.

    This project isn't of interest to most big engine tuners right now, but it could be. The Megasquirt - which only has fuel injection controllers, you still need to time your ignition spark, a much more difficult problem. Replacing your cars computer right off will not get you much - it will probably cost you HP, because cars have many, many R&D hours into them and are already running at close to maximum efficiency. You can trade a little emissions for power, but in a modern Honda engine, it isn't much.

    The big power comes when you use something like this in combination with a supercharger or turbo charger, then use additional control software to monitor your engine. Think of it like overclocking - you trade safety margin for speed, or in an engine's case, power. Instead of upping the voltage; You shove more air into the engine, allowing you to burn more fuel - added by a device like this, or something that's missing - a true, open source ECU replacement. It is a very difficult problem.

    I love to irk people with big V8s - they are silly in the age of forged engine internals, ECU control, and modern design. You haven't lived until you've seen the expression on a Z06 corvette owner's face when he gets is ass handed to him by a built and tuned 1.8L Acura Integra. My current project is an engine buildup for my 2.2L Prelude, and I have ~300HP as a reasonable target. It's amazing what a little thought and hacking can do. You can't run much more power than that on the street feasibly, so penis issues aside - if you can make 300HP+ from a 1.8L engine - why bother with more? Troll in the extreme - you can design 1500+ HP V8's, but they're not driveable. IMHO. YMMV. YHBT. etc.

    Engine tuning is a great hobby - if you can assemble a PC, with proper tools and the manuals, you can probably assemble a car engine. It might even run!

    OBD-III scares the hell out of me. I don't plan on owning an OBD-III vehile, though.

    There is another sister project or sorts to this one, called MegaSpark. I'll let you find the links, because I don't want to slashdot the poor guys. Ignition timing is a very difficult problem because you need very, very precise control. This is difficult to do. I have played around with this, but the approach I favour is to piggyback a microcontroller onto the computers stock signals and modify them how you want. Complete standalone systems can be very, very difficult and expensive to dyno tune and test.

    --
    ..don't panic
    1. Re:Holy lack of engine tuners! by the_brat_king · · Score: 3, Interesting

      300+ HP?
      repeat after me "THERE'S NO REPLACEMENT FOR BIG DISPLACEMENT"... My Buick 455 Stage 2 Year 1 (1970 Buick Wildcat Custom) idles at 300 HP... and lights the tires at 50 MPH. It had (factory) 370 HP and 510 Ft.Lbs. of torque... at the rear wheel. I've added a little, like a bigger carb, HEI, true 2.5 inch dual exhaust (with headers), and a single plane intake (next step is either 2x4 or a 6 pack :D). Dino'd at 600+ HP and 800+ Torque. I plan on actually building it up one day... I haven't restored the body yet, because once that's done rice runners won't race me any more ;)
      If you are hell bent on a small engine though, and wanna' see people shit themselves, go get a 1985-87 High Deck 2.4L Dodge charger (carbed), stroke the bastard, bore it 60 over, turbo charge it, replace the 2bbl with the MP 4bbl carb. The engine was designed by Carrol Shelby (of Shelby Mustang fame); it's actually a destroked 2.6. I've seen 'em built up to produce over 350 HP, without juice or computers (or even injection).
      As for those vette's beat on! I hate those bastards...always trying to pass you, and getting mad when they can't! As for the YMMV mine doesn't vary at all :( 7 MPG, and it'll be going down with a new carb system. But, you are kinda' wrong about 1500 not being streetable... just don't let 'em catch you "streeting" it!
      Last rant... 12-18" 4 wheel Bear Claws are NOT for light cars, the are for beasts like mine (6,000 lbs). Bear Claws are nice and all... but you people with the big V's need 'em (hint LOSE THE 4 Wheel Drums!), and you people with the 4's DON'T... they will NOT help you stop better.

  5. Re:the Siemens C167 has free C source that does th by spaceyhackerlady · · Score: 2, Interesting
    It can run a reasonably sophisticated FI program using somewhere around 10% of the CPU!

    This is a hard real-time application, so the thing had better have spare cycles available! :-)

    While it sounds fast, car engine things happen at ridiculously slow speeds by computer standards. A 4 cylinder engine running at 6000 RPM still has 5 milliseconds between firing strokes to compute and time the next spark. An eternity to a computer...

    ...laura, whose car (1986 VW Jetta) has mechanical fuel injection and electronic (analog) ignition

  6. They are out there by GnarlyNome · · Score: 2, Interesting

    I used to work for an AUDI dealer we sold a lot of parts by Fed-EX to an outfit in Alabama including so many Controllers that Audi contacted us to find out if there was a failure prob. Seem that these people were modifing the new controllers to pump that little 2.5L V-6 to about 450 Hp (street and very driviable) drove one later it was a sweet mod.

    --
    Diplomacy is the art of saying "Nice doggie" until you can find a rock. Will Rogers
  7. Re:Injection is nice... by 8-balll · · Score: 1, Interesting

    or you can be a real man and hack the shit and spend what??$50 bucks...I guess you thought you read to much...these guys took their time and made something that can control your EFI and they will give it to you...but than again I guess you have to understand how to put a part on a board....Since you think that you have to spend alot of money for something to work, I'm sorry...You can buy a couple of hundred or thousand dollar system and then try to set it up...or you could spend less than two hundrad dollars and be a real man and control what goes into your engine....

    --
    such is life...
  8. Re:The question remains... by colinnwn · · Score: 2, Interesting
    Even geekier and more elegant...

    The firmware is written in assembler, a la Steve Gibson'esque

    Gibson Research