Mazda · 2006-15

Mazda MX-5 Miata NC MZR LF ECU and tuning guide

The Mazda MX-5 Miata NC MZR LF (2006-15) runs the MZR LF 2.0 (MX-5 NC): 2 L I4, naturally aspirated, port injection, drive-by-wire throttle.

Researched sections show a citation and confidence for every fact.

Years2006-15
Displacement2L
LayoutI4
InductionNaturally aspirated
InjectionPort injection
Cam controlS-VT
IgnitionCoil-on-plug
Swap demandLow

Part of the Mazda MZR family.

Modeled power and torque

Modelled estimate, not a dyno result.

Dyno model not available yet for the MZR LF 2.0 (MX-5 NC). Stock-anchored curves are added as factory ratings are sourced.

MZR LF 2.0 (MX-5 NC) data

Factory ECU

From the factory ECU each listed harness plugs into. The factory ECU is unplugged, not modified. Check the label and part number on your own ECU before ordering.

Mazda Miata NC PCM (LF 2.0)
LFG2-18-881ELFGK-18-881C
ECU family
Mazda LF (NC)
Applies to
2006-15 Miata manual; LFG2 example 2006-07, LFGK example 2009-14

NC1 and NC2 PCMs differ by suffix; listings only.

Low confidenceUnverifiedE-1471

Factory ECU pinout: pending

No OEM pin table is in our library yet for the MZR LF 2.0 (MX-5 NC) factory ECU. We only publish pinouts drawn from the OEM service manual or the maker's own documents, and none has been sourced yet. Until then, wire from the harness maker's instructions or the factory service manual.

Plug-and-play harness

Route for this carFactory-connector adapter
1 · S3 plug-in2 · Factory-connector adapter3 · Wire-in

No Haltech S3 plug-in harness is listed for this vehicle, but a Boomslang adapter harness is: it plugs into the factory ECU connector on one side and the S3 pinout on the other, so the ECU2 replaces the factory ECU without cutting the loom. Nothing is written to the factory ECU. Pin-compatible per the published S3 pinout, not yet fit-tested.

MakerHarnessFitsLink
Manual 2006 - 2015 Mazda MiataBF29218-S32006-15 Miata manual; LFG2 example 2006-07, LFGK example 2009-14$1,200Maker ↗
Wire-inUniversal flying lead or re-terminated factory harnessAny engine (terminate to ECU2's two Superseal 34 connectors)Universal harness from $405Maker ↗

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 2006 - 2015 Mazda Miata

$1,200USD list
Plug-and-playManual onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Mazda Miata NC PCM (LF 2.0) · LFG2-18-881E, LFGK-18-881C
OEM part numbers
LFG2-18-881E, LFGK-18-881C
ECU
Mazda LF (NC)
Confidence
low

NC1 and NC2 PCMs differ by suffix; listings only.

Sources: E-1471

Fits
2006-15 Miata manual; LFG2 example 2006-07, LFGK example 2009-14
SKU
BF29218-S3
Maker fitment
Mazda Miata (Manual); selector years 2006-2015; SKU label: Manual 2006 - 2015 Mazda Miata
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); 2006-15

Haltech and Boomslang are trademarks of their respective owners. GAINS is not affiliated with or endorsed by them.

Your GAINS system for this car · pre-release

ECU2 for the MX-5 Miata NC

Planned with the same rules as the configurator for this car's 4 cyl · port injection · drive-by-wire. The factory ECU is unplugged and replaced; nothing is written to it.

  • ECU2Engine controller

    4 cyl · port injection · drive-by-wire

    Full sequential fuel and spark for this 4-cylinder, and its electronic throttle, with the wideband built in.

    in designEst. availability: April 2027

    Price TBA

Add PDM2 to switch and protect chassis loads (pumps, fans, lights, accessories). Add it in the configurator →

Track days? Add the Telemetry Dongle Pro for 25 Hz GPS lap timing; it plugs into the OBD-II port, and your phone is the dash. Plan it in the configurator →

What you get

  • A screen on the ECUA 2.4-inch, 500-nit display in the lid, readable in a footwell.
  • Faults in plain words"Coolant temp sensor open circuit.
  • Drive-by-wire built inFour half-bridges run up to two electronic throttles, with pedal and throttle sensors on the ECU's own inputs and a windowed watchdog that cuts the motors in hardware on a fault.
  • S3-style harnessesConnector A and C pin functions follow the published Nexus S3 wiring diagram.
  • Powered CAN portA sealed 4-pin port on the insert carries 12 V and CAN for the PDM2 and GAINS displays: one cable per accessory.
  • GAINS insideThe on-ECU adaptive layer, the app, logging and your limits.

How it wires in

  1. Haltech S3 plug-in harnessNone listed for this car
  2. Factory-connector → S3 adapter1 listed · from $1,200 USD listBF29218-S3
  3. Wire-inAlways possible

Pin-compatible per the published S3 pinout, not yet fit-tested. Every harness option for this car ↓

ECU2 is in design; specifications may change. All GAINS hardware is pre-release concept design; nothing is for sale yet and no application is validated on a vehicle. Harness fitment is from published pinouts and not yet fit-tested.

How GAINS approaches the MX-5 Miata NC

Our starting method for this engine, as foundations first: get it running and drivable, then learn fuel, then the hardware-specific strategies. It is a methodology outline, not a validated calibration.

  1. 1
    Base map and first startplanned

    Start from displacement, injector data and the sensors fitted, then let the first-start learner settle cranking, idle and warm-up before any load work. The goal is a safe, running engine, not a finished calibration.

  2. 2
    Lambda targets and VE learningclosed loop on GAINS ECUs

    Air-fuel targets come from your goal (street, track, economy). The ECU then learns its fuel table cell by cell from the onboard wideband inside a signed envelope, and you approve promoting what it learned into the base map.

  3. 3
    Cam phasing (VVT)gated

    Begin with conservative overlap. Cam targets per load cell are then chosen with torque and knock in mind, keeping idle and cold overlap low for stability. Widening cam authority follows the same evidence-gated path as spark.

  4. 4
    Drivability foundationsplanned

    Pedal map, tip-in and decel fuel, idle control, cold start and warm-up enrichment: the tables tuners spend hours on after the main map. Each is a strategy in the knowledge engine with its own limits.

  5. 5
    Wideband sensorhardware

    the factory sensor is already an A/F type; for tuning, fit a Bosch LSU 4.9 for the GAINS ECU's built-in controller (factory A/F sensors are not LSU-compatible)

GAINS on the MX-5 Miata NC

ECU2

ECU2Full sequential fuel and spark for this 4-cylinder, and its electronic throttle, with the wideband built in.Est. availability: April 2027
Hardware fromPrice TBAPlan and compare costs

Designed so your phone is the laptop, keypad and dash

The GAINS app is designed to handle tuning, logging, gauges and switch inputs over Bluetooth, so the system needs no separate CAN keypad or display. Keypad, dash and logging views are planned; the iOS prototype runs on simulated data today.

Wideband, IMU and logging built in

An onboard Bosch LSU 4.9 wideband controller, a 6-axis IMU and onboard logging are designed into the ECU rather than sold as add-on modules.

Modular, so you buy what the engine needs

This engine runs on ECU2. PDM2 (power, body and gearbox) is optional and connects over ECU2's powered CAN port; the Telemetry Dongle Pro adds GPS lap timing from the OBD-II port.

Calibration that keeps learning

Instead of a fixed map that drifts as parts and conditions change, the ECU keeps adapting its fuel trims within limits you can see and approve in the app.

Adaptive tuning strategies

  • VE learning closed loop on GAINS ECUs

    Learns the fuel table from the onboard wideband as you drive, cell by cell, inside a signed authority envelope. Learned trims are promoted into the base map without a step in fuelling.

  • Goal-based lambda targets closed loop on GAINS ECUs

    Sets air-fuel targets from your goal (economy, response, power, safety margin) instead of a single fixed table.

  • Knock protection protection

    Listens for knock on a dedicated knock processor, pulls timing at once and restores it slowly. It only ever reduces advance.

  • Warm-up, cranking, idle and transient fuel planned

    The same learning approach applied to the tables tuners spend hours on after the main map is done.

  • Spark advance and boost authority gated

    Widening ignition advance or boost is never automatic. It stays an expert or dyno decision until validated knock detection exists for the engine family.

Already running another ECU? In advisor mode the same strategies read your logs and recommend exact table changes with the reasoning, which you apply in your ECU vendor's own software.

GAINS hardware is pre-release concept design. Simulated results only; nothing is validated on a vehicle yet.

Catalog data and evidence

  • Catalog data, not yet expert-reviewed.
  • No vehicle photos: illustrations only until licensed imagery is available.
  1. E-934 Boomslang identity (sourced, high confidence)
  2. E-935 Boomslang S3 catalog size (sourced, high confidence)
  3. E-900 Haltech Nexus S3 catalog (sourced, high confidence)
  4. E-941 S3 engine harness availability (inferred, medium confidence)
  5. E-1471 Miata NC PCM (unverified-secondary, low confidence)