MegaSquirt

Last updated

MegaSquirt is a general-purpose aftermarket electronic fuel injection (EFI) controller designed to be used with a wide range of spark-ignition internal combustion engines (i.e., non-diesel engines.) MegaSquirt was designed by Bruce Bowling and Al Grippo in 2001.

Contents

History

The Megasquirt's predecessor was the EFI332 project, led by Bruce Bowling and Al Grippo. EFI332 development started around 1999 and culminated in the release of about 200 kits in 2000. The system used a 32-bit MC68332 microcontroller from Motorola. A very steep coding, electronic design, and tuning curve prevented the system from gaining wider acceptance. [1]

The designers then decided to simplify the EFI332 design, and focus on managing the fuel injectors (the EFI332 was also designed to control the spark plug ignition system if so desired). This was the basis for the first MegaSquirt (MS-I).

The MegaSquirt was launched on September 15, 2001. [2]

Current Products

MegaSquirtMegaSquirt IIMicroSquirtMicroSquirt moduleMegasquirt III [3] MS3Pro [4]
Released200120052007200920102012 (updated in 2017)
Processor8-Bit MC68HC90816-bit MC9S12C6416-bit MC9S12C6416-bit MC9S12C6416-bit MC9S12XEP10016-bit MC9S12XEP100
Speed8 MHz24 MHz24 MHz24 MHz50 MHz (+100 MHz XGATE)50 MHz (+100 MHz XGATE)
Flash32 kB 128 kB128 kB128 kB1024 kB + 32kB data flash1024 kB + 32kB data flash
User RAM512 B 4 kB4 kB4 kB64 kB64 kB
FeaturesDepends on firmware, InexpensiveMore precise fuel control, Ignition Control, CAN Bus, GPIO, Inexpensive, User Spare Output Ports, Automatic Mixture Control, Flex fuel (E85) abilitiesSame Features as MS-II, plus Small Size, Sealed case, Dual Ignition/Injection Channels, AssembledSingle card complete MS2 based ECU designed to be used as the basis of an ECU of the user's creation. Includes firmware license.Extension of MS2, V8 sequential fuel and spark, many more i/os. Wide range of OEM crank/cam wheels supported. Many racing features built in. Onboard USB-serial, SD card datalogging. See the detailed cross reference.Refined Engineering and Packaging of MS3 creating a Ready to Use Standalone Engine Management system less targeted at the DIYer and more at the amateur/semi-pro racer. Turning MegaSquirt DIY technology into a Premium Standalone EMS.

For a more detailed cross-reference of the features available within the MegaSquirt range of products, see MegaSquirt product cross reference

Hardware

The assembled controller takes input from several sensors in order to manage the fuel injectors, including a throttle position sensor (TPS), exhaust gas oxygen sensor (EGO or O2 sensor), MAP sensor, Crankshaft Position Sensor, optional Camshaft Position Sensor, Intake Air Temperature sensor (IAT), and a Coolant Temperature Sensor (CLT). The default calibration is configured to match common General Motors type, although the controller can easily be recalibrated to use nearly any sensor on nearly any engine.

As the product line of Engine Management Systems has evolved through multiple hardware and firmware revisions, at least when referring to the Legacy/DIY oriented MegaSquirt Systems (kit type ECUs) it is difficult to be specific about the capabilities of any particular MegaSquirt without knowing three things: microcontroller, printed circuit board and firmware versions. As for the commercial/refined MS3Pro and MSPNP lines, this is far simpler as these systems were engineered to 'just work' and not aimed at the DIYer.

Microcontroller

The version 1.0 MegaSquirt used an 8-bit Motorola MC68HC908 microcontroller, and all versions of the main board support this processor. The later MegaSquirt-II processor upgrade daughter card includes a 16-bit MC9S12, and is a step up from the original MC68HC908 processor MegaSquirt. The current Megasquirt-III uses a 16bit MC9S12XEP100 processor running at 50 MHz which includes a 100 MHz RISC core.

Printed Circuit Board

The first group buy of printed circuit boards for the original MegaSquirt-I was in 2001. These boards are V1.01 main boards, and are no longer available. The second group buy in 2002, as well as all following purchases until 2005 are V2.2 main boards, and have a V2.2 printed in the upper left corner of the PCB. MegaSquirt ECU's have not been sold by group buy since 2002. Instead, vendors resell the Bowling and Grippo offerings, and they keep stock current, so all items are normally available at all times. There is a list of vendors in the megamanual. Starting in July 2005, the V3 PCB was made available to use some of the advanced features of the MegaSquirt-II. As of August 2007, the v2.2 and v3 boards are still available.

There is a newer version of the PCB. The V3.57 is a surface-mount device (SMD) version of the MegaSquirt V3 "thru-hole" main board. The 3.57 version of the board was created in order to allow for automated assembly of the majority of components using automated pick and place (machine assembly) and reflow soldering. The boards are meant for those unable or unwilling to assemble their own main board. Note that the V3.57 board is not a replacement for the "build-it-yourself" boards, but rather an additional version of the MegaSquirt main board intended to make life easier for distributors who are building their boards for resale, to compete with mainstream ECU suppliers.

Although this board uses surface-mount components, the layout is the same as in the V3 main board, apart from the omission of the DIY-oriented prototype area (the 3.57 is not meant to be a DIY board, of course). Component numbering remains the same in nearly all cases. In fact, this board version started with the V3 main board, and maintains the 4-layer construction and power distribution. It is the same size (4" x 6") and the connectors are in the same places, so it fits in the standard case with no modifications (though some modifications may be necessary for additional functionality).

Firmware

Firmware for MS-I chip

This is the default pre-loaded code from Bowling and Grippo. It is a simple and effective fuel injection controller with an 8x8 fuel table for speed density or alpha-n. Narrow band or wide band oxygen sensors can be used for closed loop control, and an on/off idle valve may be used.
MS1/Extra is a firmware modification to the original Bowling and Grippo MegaSquirt written by Philip Ringwood and James Murray (with contributions from many more). As the name implies it adds ignition management, as well as a large number of other features such as boost control, nitrous, fan control, programmable outputs, water injection and more to MegaSquirt. Hardware modifications are required to run ignition and the learning curve is steeper than a fuel-only implementation, but many hundreds of users use the "MS1/Extra" firmware. The firmware was very actively developed and is now a stable alternative to the base MS code. Most MegaSquirt vendors ship the MS1/Extra firmware as standard on MS1 boards. The firmware is designed to operate using either a supported ignition system, such as GM HEI, or Ford EDIS, or it can decode certain trigger wheel signals from crank/cam sensor pickups and directly run wasted spark or coil on plug.
MS1/Custom Suzuki G13B is a firmware modification to the MS1/Extra by Sebastian Giroldi, an engineer and Suzuki enthusiast better known by his nickname Caaarlo. The wheel decoder is tailored to read the very particular pattern of the camshaft encoder wheel found in the Suzuki G13B engine that powers the Suzuki Swift GTi, GT and Cultus GTi. It also generates the adequate PWM frequency for the factory Idle Solenoid, avoiding the need for generic toothed wheels and idle valves.

Firmware for MS-II chip

This is the default Al Grippo code that you can load onto your MS-II board. The code has (multiple) 12x12 fuel and spark tables, stepper IAC control, PWM idle valve control, several user-configurable spare ports (for things like boost control, water injection, fan control, etc.), self-tuning functions (Automatic Mixture Control - AMC), and fuel control to 1 μs (100 times more resolution than MegaSquirt-I). MS-II can control distributors or EDIS ignitions and decode many standard toothed crank wheels. Additional features includes X-Tau transient enrichment compensation (acceleration enrichment), nitrous control with fuel and spark adjustments, enhanced closed-loop mixture control w/ wide band sensor AFR targeting, two types of rev-limiting, MAP/MAF/alpha-N fuel control, injector test mode, flex fuel (gasoline/E85) with appropriate sensor, and many more.
See the Megamanual for download and documentation
This is an extension of the base code, adding many of the much needed MS1/Extra features to the MS-II chip. Enhancements include wide support for OEM crank/cam wheels, wasted spark and COP ignition, closed loop idle, EAE, boost control, nitrous control and many other features. Latest test codes support 4 cyl sequential fuel. Code is licensed for use on genuine B&G products only.

Firmware for MS-III chip

This is the default MS3 code that you can load onto your MS-III board. The code has (multiple) 16x16 fuel and spark tables, support for up to V8 sequential fuel and spark, stepper IAC control, 2 or 3 wire PWM idle valve control, fuel control to 1 μs, several user-configurable spare ports, specific features for boost control, water injection, fan control, nitrous control etc., MS-III can control distributors or EDIS ignitions and decode a wide range of OEM toothed crank and cam wheels. Additional features includes enhanced transient enrichment compensation (X-Tau and EAE acceleration enrichment), enhanced closed-loop mixture control with wide band sensor AFR targeting, closed loop idle control, various types of rev-limiting, MAP/MAF/alpha-N fuel control, injector and coil test mode, crank/cam input diagnostics, SDcard datalogging, flex fuel (gasoline/E85) with appropriate sensor, LPG support, and many more.

Licensing issues

The licensing surrounding Megasquirt has at times been misunderstood.

The hardware designs and application firmware are copyrighted by Bowling & Grippo [8] and subject to patents. [9]
The source code of the firmware(s) are available to download for peer review and end-user modification, but the code and derivatives are only licensed for use on official Megasquirt hardware.
The success of Megasquirt has spawned a number of unlicensed clones. [10]

Related Research Articles

<span class="mw-page-title-main">Engine tuning</span> Optimisation of engine performance

Engine tuning is the adjustment or modification of the internal combustion engine or Engine Control Unit (ECU) to yield optimal performance and increase the engine's power output, economy, or durability. These goals may be mutually exclusive; an engine may be de-tuned with respect to output power in exchange for better economy or longer engine life due to lessened stress on engine components.

The Hyundai Beta engines are 1.6 L to 2.0 L I4 built in Ulsan, South Korea.

The Computerized Engine Control or Computerized Emission Control (CEC) system is an engine management system designed and used by American Motors Corporation (AMC) and Jeep on 4- and 6-cylinder engines of its own manufacture from 1980 to 1990. It is one of the three major components for proper engine operation: the computer, electrically controlled carburetor, and the oxygen sensor in the exhaust system.

<span class="mw-page-title-main">Engine control unit</span> Computer that adjusts electronics in an internal combustion propulsion system

An engine control unit (ECU), also called an engine control module (ECM), is a device which controls multiple systems of an internal combustion engine in a single unit. Systems commonly controlled by an ECU include the fuel injection and ignition systems.

<span class="mw-page-title-main">Motronic</span>

Motronic is the trade name given to a range of digital engine control units developed by Robert Bosch GmbH which combined control of fuel injection and ignition in a single unit. By controlling both major systems in a single unit, many aspects of the engine's characteristics can be improved.

<span class="mw-page-title-main">Check engine light</span> Type of indicator light in automobiles

A check engine light or malfunction indicator lamp (MIL), is a tell-tale that a computerized engine-management system used to indicate a malfunction. Found on the instrument panel of most automobiles, it usually bears the legend engine, check engine, service engine soon, maintenance required, emiss maint, or a pictogram of an engine—and when illuminated, it is typically an amber or red color.

MS1 may refer to:

<span class="mw-page-title-main">Ignition timing</span>

In a spark ignition internal combustion engine, ignition timing is the timing, relative to the current piston position and crankshaft angle, of the release of a spark in the combustion chamber near the end of the compression stroke.

Renix was a joint venture by Renault and Bendix that designed and manufactured automobile electronic ignitions, fuel injection systems, electronic automatic transmission controls, and various engine sensors. Major applications included various Renault and Volvo vehicles. The name became synonymous in the U.S. with the computer and fuel injection system used on the AMC/Jeep 2.5 L I4 and 4.0 L I6 engines.

<span class="mw-page-title-main">Digifant engine management system</span>

The Digifant engine management system is an electronic engine control unit (ECU), which monitors and controls the fuel injection and ignition systems in petrol engines, designed by Volkswagen Group, in cooperation with Robert Bosch GmbH.

Trionic T5.5 is an engine management system in the Saab Trionic range. It controls ignition, fuel injection and turbo boost pressure. The system was introduced in the 1993 Saab 9000 2.3 Turbo with B234L and B234R engine.

Trionic is an engine management system developed by Saab Automobile. It consists of an engine control unit (ECU) that controls 3 engine aspects:

  1. Ignition timing
  2. Fuel injection
  3. Acts as a boost controller.
<span class="mw-page-title-main">Holley Performance Products</span>

Holley Performance Products is an automotive performance company based in Bowling Green, Kentucky. It was founded in 1896 in Bradford, Pennsylvania by George Holley and Earl Holley. When the company was based in Michigan it was a major producer of carburetors for many Detroit-built automobiles.

VEMS is a commercial engine management system. VEMS is unlike most other EMS's in that it used to be public domain and then a form of open source.

<span class="mw-page-title-main">Crankshaft position sensor</span> Import

A crank sensor (CKP) is an electronic device used in an internal combustion engine, both petrol and diesel, to monitor the position or rotational speed of the crankshaft. This information is used by engine management systems to control the fuel injection or the ignition system timing and other engine parameters. Before electronic crank sensors were available, the distributor would have to be manually adjusted to a timing mark on petrol engines.

The Ford EEC or Electronic Engine Control is a series of ECU that was designed and built by Ford Motor Company. The first system, EEC I, used processors and components developed by Toshiba in 1973. It began production in 1974, and went into mass production in 1975. It subsequently went through several model iterations.

<span class="mw-page-title-main">Lucas 14CUX</span>

The Lucas 14CUX is an automotive electronic fuel injection system developed by Lucas Industries and fitted to the Rover V8 engine in Land Rover vehicles between 1990 and 1995. The system was also paired with the Rover V8 by a number of low-volume manufacturers such as TVR, Marcos, Ginetta, and Morgan.

<span class="mw-page-title-main">Modular Engine Management System</span> Electronic control system for Rover car engines

The Modular Engine Management System, or MEMS, is an electronic control system used on engines in passenger cars built by Rover Group in the 1990s. As its name implies, it was adaptable for a variety of engine management demands, including electronically controlled carburetion as well as single- and multi-point fuel injection. The abbreviations "SPi" and "MPi" refer to the single-point and multi-point injection configurations, respectively.

<span class="mw-page-title-main">SECU-3</span>

SECU-3 is an internal combustion engine control unit. It is being developed as an open source project. Anyone can take part in the project, and can access all the information without any registrations.

References

  1. "Original EFI332 Project Homepage".
  2. "History | MegaSquirt" . Retrieved 2020-08-07.
  3. 1 2 "MS3EFI Homepage".
  4. "MS3Pro Features".
  5. "MegaSquirt MSEXTRA".
  6. "MegaSquirt MSEXTRA Suzuki".
  7. "MegaSquirt MS2/EXTRA".
  8. "US Patents 7,421,329 ; 7,369,933 ; 7,313,474".
  9. "Megasquirt clones, copies and counterfeits".