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."

24 of 282 comments (clear)

  1. Injection is nice... by Alien+Being · · Score: 5, Funny

    But I'd rather be blown!

  2. 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 barzok · · Score: 5, Informative
      Cadillac still has it, it's part of the Northstar system. But, it's only for use in emergencies - if you lose your coolant, it shuts down half the engine at a time to pump air through to cool it off.

      Word on the street is that Dodge's new 5.7L HEMI has or will have in a near-future iteration cylinder shutoff for when you don't need all 8 sucking down the gas.

    3. Re:Interesting... by thing12 · · Score: 5, Informative
      Cadillac still has it, it's part of the Northstar system. But, it's only for use in emergencies - if you lose your coolant, it shuts down half the engine at a time to pump air through to cool it off.

      The Cadillac 16 uses a similar engine and it switches on demand to run on 4, 8 or all 16 cylinders of its 13.6 liter engine. Very cool stuff...

    4. Re:Interesting... by ncc74656 · · Score: 4, Informative
      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?

      That'd be more like turning your V8 into a 4-banger. Cadillac tried something like it ~20 years ago with the V8-6-4, which ended up not going over too well with drivers. (Their current Northstar V8 has a similar capability, but while the V8-6-4 used it in normal operation to try to squeeze better mileage out of a big engine, the Northstar only uses it as an emergency measure. If the engine loses coolant and starts overheating, the engine computer limits vehicle speed (to 50 mph, IIRC) and shuts down half of the cylinders at a time, cycling through them in turn so they can cool down a bit. Basically, it allows what's normally a water-cooled engine to run as an air-cooled engine long enough to get to the nearest garage and fix the problem.)

      Unless you had a way to hold the intake and exhaust valves open when you didn't want the cylinder to operate (really big solenoids, perhaps?), running each cylinder half as often would rob lots of power...you'd compress a chunk of air, but wouldn't have a combustion cycle to make any use of it. With some engines, holding the valves open would more than likely result in the piston slamming into them on the compression and exhaust strokes, which would be a Bad Thing. (My understanding is that some imports have this problem when the timing belt breaks.)

      --
      20 January 2017: the End of an Error.
    5. 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:
    6. Re:Interesting... by realdpk · · Score: 5, Funny

      Only wankers reply to sigs.

      Ha, who would fall for that.

  3. Crazy world these days by Anonymous Coward · · Score: 5, Funny

    Does this mean I'll have to gas up my computer now? The oil companies are controlling everything nowadays...

    1. Re:Crazy world these days by NeoMoose · · Score: 4, Funny

      Gas prices are so high that you are better off spending the 2 grand on a new computer anyways.

  4. I would make one, by nich37ways · · Score: 4, Funny

    However I would much prefer my car to continue operating afterwards.

    Seriously though how long till you see *Hacked with Megasquirt* stickers on all the rice mobiles going around?

    --
    37 - what does it stand for really...
  5. Please don't knock out the server.... by Juggle · · Score: 5, Informative

    Not this weekend! I build my MS back in December but didn't get my new motor together until about a month ago. Now I'm about ready to start putting it all together and /. finally notices the project.

    So of course just when I need the site the most it will probably be overrun and unavailable ;)

    Seriously though it's a great hardware hacking project. Quite a few revisions to the basic system have been made by the users and there are even a few spin-off projects (MegaSpark, MegaSquirtAVR, MegaJolt, MegaView, MegaTune, MSTWeak3k....) all of which were created by users of the system.

    It's based on a stripped down simple version of the DIY EFI-32 project that aimed at building a homebrew version of the GM computer but was getting so complex it was turning some people away.

    If the main site does get slashdotted there's the Yahoo Group: http://autos.groups.yahoo.com/group/megasquirt

    The MS FAQ:
    http://members.shaw.ca/megasquirt/MS%20FAQ.h tm

    And a few photos of my own project for those of you you just want to see the pretty pictures:
    http://www.americansandassociation.org/ phpBB2/modu les.php?set_albumName=album43&op=modload&name=gall ery&file=index&include=view_album.php

    --
    --- Juggle juggle@hitesman.com
  6. I think we can by Timesprout · · Score: 5, Funny

    confidently expect to see a lot of geek car enthuasiasts being nominated for Darwin awards after this mod.

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
  7. Confusing Title by MBCook · · Score: 4, Funny
    Am I the only one who saw that and thought to themselves "I know about watercooling, but how in the world will fuel injection help people's computer performance?"

    That aside, that's pretty cool. I wouldn't be willing to put one in my car, but it's still cool. Plus you could hack up the monitor circuit so you could connect it to your incar Linux PC with a little LCD panel to watch your engine in real time, or maybe use you're engine's performance (rpms, mix, etc) to somehow controll the music being played. The pointless add-on possibilities are endless.

    --
    Comment forecast: Bits of genius surrounded by a sea of mediocrity.
  8. Other options by vsigma · · Score: 5, Informative

    They do sell other standalone setups which we use for Rallying (Yes, like you see on SpeedVision, or what you have played on GranTurismo or other Rally racing game) - examples: Link ECU, MoTec, AEM-EMS

    All of the above allow control and modification of all elements of the car via a serial link to a laptop. You can even data log and so forth.

    Depending on where you buy it and so on, it's not going to be as cheap as the product listed here - but, you gain boat loads more functionality. For Rally racing like we do - we need the control/fine tuning ability to change fuel maps, ignition timing, Anti-lag for the turbo (amongst other things) to squeeze out every bit of performance that we can to go against much better funded teams.

    -victor

  9. Hackers. by jericho4.0 · · Score: 4, Insightful
    This is very cool. The success stories page has some interesting real life applications of the thing. Reading it is very like reading overclocking stories.

    Some people are replacing stock computers in more modern cars for performance reasons, and some are putting them in older cars, and getting some impressive results. And, yes, you can hook up a laptop for on-the-fly tweaking. Now I want a car.

    --
    "A language that doesn't affect the way you think about programming, is not worth knowing" - Alan Perlis
  10. 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.

  11. Close but it needs more... by Tweakmeister · · Score: 5, Informative

    The modern ECU's control more than just the air/fuel (by reading 02 sensors, etc.). They alter things like timing and monitor a host of things.

    Many in the Honda crowd use an Apex'i S-AFC (or similar) to attach in line with the computer to adjust various things. Additionally you can buy other controllers and the like to adjust realtime at will.

    This thing is impressive, but is no replacement, it's a piggyback, and has a long ways to go.

    --

    Colossians 2:8

  12. It's all been done... by BJZQ8 · · Score: 4, Informative

    Go to this link and see what people have done already. Lotsa hacking going on there...the entire GM Engine Computer has been reverse engineered. I drive a GMC Typhoon...and there are several guys on the "syty list" that have really taken apart the code, and made it possible to change all sorts of things. There is even a programmable box you can use to flip through various programs of timing and fuel.

  13. Here's some basic information by Y2K+is+bogus · · Score: 4, Informative
    The main places you want to look for MegaSquirt stuff is:

    Yahoo MegaSquirt Group This has the message archives, files, and links to MS related sites.

    MegaSquirt FAQ This is the place that you should look for answers before sending to the list. If it hasn't been asked here, Lance is more than happy to add the Q/A to the FAQ. It's very well organized and will take a novice through the whole process.

    Since Bruce and Al's site was already linked, I'll forego that link. The best place to start is the Yahoo group, since it really is the nexus.

    Just a couple of quick bits. If you are planning on using GM TBI injectors, get some 2 ohm 25 watt ballast resistors FIRST.

    Second, if you are planning on using a distributor for the tach signal, you are best off by using the hall sensor directly. A lot of VAG vehicles have reported noise problems on the tach signal.

    These are really the only 2 things I'd want to caution about first.

    All in all, the MegaSquirt is a good system for DIYers because it bypasses all of the complexity of factory systems. You can use it with most factory sensors and it performs great. One of the bread and butter applications is replacing CIS with EFI, many people have done it.

    BTW, my engine is the 1991 CBR 600 F2 engine on the IT Runs! page.

  14. 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 Desert+Raven · · Score: 4, Funny
      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.


      Yeah, and those Accura owners nearly have strokes when I toss them into the weeds with my 8 year old motorcycle. No computer control, just a 15+ year old block, piston and head design so refined and advanced that I can run 85 octane fuel at 12:1 compression, in 110 degree temperatures, up to 13,000rpm, without it even thinking of pinging.

      Can you say "1005cc generating 122 hp measured at the rear wheel"?

      Can you say "absolutely bone-stock"?

      Can you say "53 miles per gallon"?

      I thought you could.
    2. Re:Holy lack of engine tuners! by xtal · · Score: 4, Funny

      Fully agree bikes are superior. My survivability - on a track, with a helmet and roll bar - is much, much, much higher in a car. Said roll bar (not cage) also protects me on the road.

      Some bikes CAN be beaten by little 4cyls, too, so don't get too cocky.

      See also:

      "Twisties"

      "Traction"

      "Speed Wobble"

      "Rain"

      "Loose Gravel"

      and

      "Insurance".

      --
      ..don't panic
  15. Fancy schmancy by Ogerman · · Score: 5, Funny

    Yeah, yeah.. Who needs all this fancy engine computer stuff.. Ever since I painted my Civic bright yellow (everyone knows yellow is fast), cut off the exhaust pipe, and added a 3 foot high spoiler (have to keep the wheels on the ground), it goes like twice as fast. You can clearly hear that my car has TEH POWER when I rev the engine at red lights. I am so fast you cannot even read my decals.