Mazda · 1998-05

Mazda MX-5 Miata NB BP ECU and tuning guide

The Mazda MX-5 Miata NB BP (1998-05) runs the BP 1.8 / B6 1.6 (MX-5 NA / NB): 1.8 L I4, naturally aspirated, port injection, cable throttle.

Researched sections show a citation and confidence for every fact.

Years1989-05
Displacement1.8L
LayoutI4
InductionNaturally aspirated
InjectionPort injection
Cam controlS-VTNB2
IgnitionWasted spark
Swap demandMedium

Part of the Mazda B6 / BP family.

Modeled power and torque

Modelled estimate, not a dyno result.

BP 1.8 / B6 1.6 (MX-5 NA / NB): stock vs common buildsmodeled

Modeled estimate, not a dyno measurement. Real results vary with fuel, weather, dyno type and build.

Stock (factory-rated peaks; shape modeled)
0501001502002500501001502001k2k3k4k5k6k7khplb-ftrpm
Solid = power (hp), dashed = torque (lb-ft). Shaded bands show the modeled uncertainty. Hover for values.

Stock is anchored to the factory rating (128 hp at 6500 rpm, 110 lb-ft at 5000 rpm); the curve shape between peaks is modeled. Intake + exhaust + tune (pump fuel): Typical NA gains come mostly above mid-rpm.

BP 1.8 / B6 1.6 (MX-5 NA / NB) 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 MX-5 NB ECU (3-plug)
BP4W-18-881C
ECU family
Mazda xxxx-18-881 engine control unit
Applies to
NB 2000-04 AUS, 2001-05 USA incl. VCT, non-VCT, Mazdaspeed turbo; manual
Not for
1999-2000 NB1 2-plug units likely excluded; automatic

Only number found (BP4W-18-881C) is an NB1 1999-2000 unit; NB2 (01-05) numbers not confirmed. Other NB1 prefixes seen: BP4X/BP4Y/BP5R/BP5S.

Low confidenceUnverifiedE-1449
Mazda Miata NB1 ECU
BP4W-18-881CBP5T-18-881
ECU family
Mazda BP (NB1)
Applies to
1999-2000 Miata manual; BP4X is automatic

Several variants (BP4W/BP4Y/BP5R/BP5S/BP5T) listed for 1999-2000; suffix matters.

Low confidenceUnverifiedE-1470
Mazda Miata NB2 ECU (BP-Z3 VVT)Part numbers not yet sourced.
ECU family
Mazda BP (NB2)
Applies to
2001-02 Miata manual
Low confidenceUnverified
Mazdaspeed Miata ECU (turbo BP)Part numbers not yet sourced.
ECU family
Mazda BP (NB2 turbo)
Applies to
2004-05 Mazdaspeed Miata manual
Low confidenceUnverified

Factory ECU pinout: pending

No OEM pin table is in our library yet for the BP 1.8 / B6 1.6 (MX-5 NA / NB) 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 carS3 plug-in harness
1 · S3 plug-in2 · Factory-connector adapter3 · Wire-in

A plug-in harness built for the Haltech Nexus S3 pinout is listed for this vehicle. The ECU2 follows that published pinout, so the factory ECU is unplugged and the ECU2 plugs into the car's own loom. Nothing is written to the factory ECU. Pin-compatible per the published S3 pinout, not yet fit-tested.

MakerHarnessFitsLink
Nexus S2/S3 Plug n Play Adapter Harness Mazda MX5 NBHT-186337NB 2000-04 AUS, 2001-05 USA incl. VCT, non-VCT, Mazdaspeed turbo; manual$535LowestMaker ↗
Manual 1998 - 2000 Mazda MiataBF29041-S31999-2000 Miata manual; BP4X is automatic$840Maker ↗
Manual 2001 - 2002 Mazda MiataBF29042-S32001-02 Miata manual$840Maker ↗
Manual 2003 - 2005 Mazda MiataBF29139-S32003-05 Miata manual$840Maker ↗
Manual 2004 - 2005 Mazda Miata MazdaspeedBF29140-S32004-05 Mazdaspeed Miata manual$840Maker ↗
Wire-inUniversal flying lead or re-terminated factory harnessAny engine (terminate to ECU2's two Superseal 34 connectors)Universal harness from $405Maker ↗

Nexus S2/S3 Plug n Play Adapter Harness Mazda MX5 NB

$535USD list · excl. tax
Plug-and-playManual onlyOff-road / competition onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Mazda MX-5 NB ECU (3-plug) · BP4W-18-881C
OEM part numbers
BP4W-18-881C
ECU
Mazda xxxx-18-881 engine control unit
Connector
3 connectors (per Haltech fitment text)
Confidence
low

Only number found (BP4W-18-881C) is an NB1 1999-2000 unit; NB2 (01-05) numbers not confirmed. Other NB1 prefixes seen: BP4X/BP4Y/BP5R/BP5S.

Sources: E-1449

Fits
NB 2000-04 AUS, 2001-05 USA incl. VCT, non-VCT, Mazdaspeed turbo; manual
Exclusions
1999-2000 NB1 2-plug units likely excluded; automatic
SKU
HT-186337
Maker fitment
Mazda MX-5 NB (00-04 Aust, 01-05 USA) incl. VCT, non-VCT and factory-turbo SE; 3-plug factory ECU; manual only
Maker notes
kit HT-213303; 1998-99/2000 NB not listed

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 1998 - 2000 Mazda Miata

$840USD list
Plug-and-playManual & auto listedhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Mazda Miata NB1 ECU · BP4W-18-881C, BP5T-18-881
OEM part numbers
BP4W-18-881C, BP5T-18-881
ECU
Mazda BP (NB1)
Confidence
low

Several variants (BP4W/BP4Y/BP5R/BP5S/BP5T) listed for 1999-2000; suffix matters.

Sources: E-1470

Fits
1999-2000 Miata manual; BP4X is automatic
SKU
BF29041-S3
Maker fitment
Mazda Miata (Manual); selector years 1998-2000; SKU label: Manual 1998 - 2000 Mazda Miata
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); 1998-2000

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 2001 - 2002 Mazda Miata

$840USD list
Plug-and-playManual onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Mazda Miata NB2 ECU (BP-Z3 VVT)
ECU
Mazda BP (NB2)
Confidence
low
Fits
2001-02 Miata manual
SKU
BF29042-S3
Maker fitment
Mazda Miata (Manual); selector years 2001-2002; SKU label: Manual 2001 - 2002 Mazda Miata
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); 2001-02

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 2003 - 2005 Mazda Miata

$840USD list
Plug-and-playManual onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Mazda Miata NB2 ECU (BP-Z3 VVT)
ECU
Mazda BP (NB2)
Confidence
low
Fits
2003-05 Miata manual
Exclusions
Not Mazdaspeed (separate SKU)
SKU
BF29139-S3
Maker fitment
Mazda Miata (Manual); selector years 2003-2005; SKU label: Manual 2003 - 2005 Mazda Miata
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); 2003-05

Boomslang plug-and-play harness for Haltech Nexus S3 - Manual 2004 - 2005 Mazda Miata Mazdaspeed

$840USD list
Plug-and-playManual onlyhigh confidenceS3 fit not yet tested ⓘ
Plugs into
Mazdaspeed Miata ECU (turbo BP)
ECU
Mazda BP (NB2 turbo)
Confidence
low
Fits
2004-05 Mazdaspeed Miata manual
SKU
BF29140-S3
Maker fitment
Mazda Miata Mazdaspeed (Manual); selector years 2004-2005; SKU label: Manual 2004 - 2005 Mazda Miata Mazdaspeed
Maker notes
separate SKUs exist for other Nexus models (-S2/-R3/-R5/-T1/-T2); Mazdaspeed 2004-05

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 NB

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

  • ECU2Engine controller

    4 cyl · port injection · cable throttle

    Full sequential fuel and spark for this 4-cylinder on a cable 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.
  • 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 harness1 listed · from $535 USD listHT-186337
  2. Factory-connector → S3 adapter4 listed · from $840 USD list
  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 NB

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
    Factory load sensingfactory reference

    What the factory ECU measures load with: varies by year/market (low confidence); NA 1.6 B6: vane-type air flow meter (Wikipedia). NA 1.8 (1994-97): conflicting (forum says hot-wire came with 1.8; parts listings label NA 1.8 unit 'MAF AFM'). NB (1999+): MAF per parts listing. O2 type inferred from era, not sourced.

  6. 6
    Wideband sensorhardware

    Add a wideband: the factory narrowband only tells rich from lean around stoichiometric, so it cannot close the loop at power or economy targets; fit a Bosch LSU 4.9 for the GAINS ECU's built-in controller

  7. 7
    Bottom end and head sealingfactory reference

    Reported: Rods/pistons commonly cited as first limit under boost; cooling under sustained track use also cited (forum, BOFI blog). (low confidence) Limits depend on tune quality, fuel, rpm and condition and are not guaranteed.

GAINS on the MX-5 Miata NB

ECU2

ECU2Full sequential fuel and spark for this 4-cylinder on a cable 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-917 Haltech S3 adapter harness page (sourced, high confidence)
  2. E-934 Boomslang identity (sourced, high confidence)
  3. E-935 Boomslang S3 catalog size (sourced, high confidence)
  4. E-900 Haltech Nexus S3 catalog (sourced, high confidence)
  5. E-941 S3 engine harness availability (inferred, medium confidence)
  6. E-1449 MX-5 NA/NB ECU (reported, low confidence)
  7. E-1470 Miata NB1 ECU (unverified-secondary, low confidence)