← Back

MX-5 Miata NB2 2001-05 (BP-Z3, VVT; excludes Mazdaspeed) → Speeduino Speeduino v0.4 (auto)

MX-5 Miata NB2 2001-05 (BP-Z3, VVT; excludes Mazdaspeed) — Speeduino — Speeduino
⚠ NOT CHECKED. Don't build from this.
Drawn by Michael Gnankou · Rev 0 · draft · 2026-10-12

Before you start

Not confident with automotive wiring? Have a professional harness builder or tuner do it, or check your work before first power-up. A wiring mistake can damage the ECU, the engine or the car, or start a fire.

Install modifications

Steps on the car itself, outside the harness. Every harness for this car inherits them.

  • Re-route the pressure-sensor vacuum hose to the intake manifoldrequired

    Re-route the pressure sensor's (Mazda "EGR boost sensor", pin 4AE) vacuum hose directly to the intake manifold, bypassing the EGR boost solenoid. The stock ECU multiplexes baro + MAP through that solenoid: with it off the sensor reads atmosphere, with it energized it reads manifold. After re-routing the sensor reads MAP only, so the standalone needs its own barometric source — its onboard baro sensor if fitted, or a separate baro sensor on a spare analog input. (Alternative, not recommended: keep the hose stock and have the ECU energize the solenoid permanently via a low-side output switched with ignition; this costs an output.)

    Why: With the solenoid off (its default) the sensor reads atmospheric pressure, not manifold pressure, so a standalone that uses this sensor as its MAP input would read the wrong value.

    Where: EGR boost solenoid and the pressure sensor's vacuum hose (sensor signal 4AE).

    Source: Justin Barrera — Miata NA/NB wiring corrections

Statusdraft · not yet verified: nobody has reported building and running this harness
Open errors2: read the Findings page before cutting any wire
Size of the job31 wires · 6 connectors · 0 part lines
ToolsCrimp and extraction tools for each terminal family (see Connectors) · wire strippers · multimeter · heat gun + heat-shrink
Order of work1. Check every part against the parts list. 2. Cut and label every wire (labels: Export → Wire labels). 3. Crimp and pin connector by connector, ticking the build checklist. 4. Run the bench test with nothing plugged in and the battery disconnected. 5. Only then connect the ECU and power up.

Build checklist

Tick each box as you go. Continuity: meter from end to end, expect under 1 Ω.

WireFromToGaugeColourCutLabelCrimp ACrimp BPin APin BContinuity
W1OEM-3-ASP-GND-10.85☐☐☐☐☐☐☐
W2OEM-3-BSP-GND-10.85☐☐☐☐☐☐☐
W3OEM-4-ASP-GND-10.85☐☐☐☐☐☐☐
W4SP-GND-1SPEEDUINO-A-100.85☐☐☐☐☐☐☐
W5SP-GND-1SPEEDUINO-A-90.85☐☐☐☐☐☐☐
W6OEM-4-OSP-0V-10.5☐☐☐☐☐☐☐
W7SP-0V-1SPEEDUINO-A-120.5☐☐☐☐☐☐☐
W8SP-0V-1SPEEDUINO-A-230.5☐☐☐☐☐☐☐
W9OEM-4-LSPEEDUINO-A-130.5☐☐☐☐☐☐☐
W10OEM-3-YSPEEDUINO-A-250.5☐☐☐☐☐☐☐
W11OEM-3-VSPEEDUINO-A-240.5☐☐☐☐☐☐☐
W12OEM-3-FSPEEDUINO-A-70.5☐☐☐☐☐☐☐
W13OEM-3-ISPEEDUINO-A-340.5☐☐☐☐☐☐☐
W14OEM-2-ASPEEDUINO-A-10.5☐☐☐☐☐☐☐
W15OEM-2-DSPEEDUINO-A-20.5☐☐☐☐☐☐☐
W16OEM-2-GSPEEDUINO-A-30.5☐☐☐☐☐☐☐
W17OEM-2-JSPEEDUINO-A-50.5☐☐☐☐☐☐☐
W18OEM-4-VSPEEDUINO-A-220.5☐☐☐☐☐☐☐
W19OEM-4-PSPEEDUINO-A-190.5☐☐☐☐☐☐☐
W20OEM-2-BSPEEDUINO-A-160.5☐☐☐☐☐☐☐
W21OEM-2-CSPEEDUINO-A-150.5☐☐☐☐☐☐☐
W22OEM-2-KSPEEDUINO-A-360.5☐☐☐☐☐☐☐
W23OEM-2-MSPEEDUINO-A-350.5☐☐☐☐☐☐☐
W24OEM-3-HSPEEDUINO-A-370.5☐☐☐☐☐☐☐
W25OEM-2-OSPEEDUINO-A-380.5☐☐☐☐☐☐☐
W26OEM-3-OSPEEDUINO-A-170.5☐☐☐☐☐☐☐
W27OEM-4-AESPEEDUINO-A-110.5☐☐☐☐☐☐☐
W28OEM-4-AASPEEDUINO-A-210.5☐☐☐☐☐☐☐
W29OEM-4-NSPEEDUINO-A-200.5☐☐☐☐☐☐☐
W30OEM-3-TSPEEDUINO-A-140.5☐☐☐☐☐☐☐
W31OEM-3-SSPEEDUINO-A-180.5☐☐☐☐☐☐☐

Bench test (before first power-up)

Pre-power install steps (make these cuts/modifications on the car first, then verify the checks below): Re-route the pressure-sensor vacuum hose to the intake manifold.

Battery disconnected, ECU and every sensor unplugged. Meter on resistance. Each pair below must read open (OL): a reading means a pinched wire, a stray strand or a mis-pinned cavity. Then check continuity of every wire (last column of the build checklist).

#Probe AProbe BExpectWhyReading
1SPEEDUINO-A-13SPEEDUINO-A-12open (OL)5 V sensor reference must not touch sensor ground
2SPEEDUINO-A-10SPEEDUINO-A-13open (OL)power ground must not touch 5 V sensor reference

If any reading doesn't match, stop and get help before powering up.

Revisions

RevLabelByDate
No revisions yet.

Schematic

OEM-2OEM-3OEM-4SP-0VSP-GNDSPEEDUINO-A

Connectors

OEM-2

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
AInjector 1—W14—0.5SPEEDUINO-A-1———
BCooling fan relay—W20—0.5SPEEDUINO-A-16———
CCondenser fan relay—W21—0.5SPEEDUINO-A-15———
DInjector 2—W15—0.5SPEEDUINO-A-2———
EEGR valve————————
FEGR valve————————
GInjector 3—W16—0.5SPEEDUINO-A-3———
HEGR valve————————
IEGR valve————————
JInjector 4—W17—0.5SPEEDUINO-A-5———
KA/C clutch relay—W22—0.5SPEEDUINO-A-36———
LNC————————
MFuel pump relay—W23—0.5SPEEDUINO-A-35———
NVTCS solenoid (intake butterflies)————————
OFuel pump relay (non-immobiliser)—W25—0.5SPEEDUINO-A-38———
PISC valve +14V feed————————
QISC valve low side————————
RMalfunction indicator lamp (MIL)————————

OEM-3

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
APower ground—W1—0.85SP-GND-1———
BPower ground—W2—0.85SP-GND-1———
CPurge solenoid valve————————
DEGR boost solenoid————————
ENC————————
FIgnition 1 (coils 1+4, wasted spark)—W12—0.5SPEEDUINO-A-7———
GNC————————
HMain relay—W24—0.5SPEEDUINO-A-37———
IIgnition 2 (coils 2+3, wasted spark)—W13—0.5SPEEDUINO-A-34———
JFront O2 heater————————
KEVAP leak detection pump————————
LNC————————
MAlternator control————————
NNC————————
OTachometer output—W26—0.5SPEEDUINO-A-17———
PRear O2 heater————————
QData link connector (K-line)————————
RNC————————
SImmobiliser—W31—0.5SPEEDUINO-A-18———
TVehicle speed—W30—0.5SPEEDUINO-A-14———
UCharge lamp————————
VCam position (CMP)—W11—0.5SPEEDUINO-A-24———
WNC————————
XNC————————
YCrank position (CKP)—W10—0.5SPEEDUINO-A-25———
ZNC————————

OEM-4

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
APower ground—W3—0.85SP-GND-1———
AARear O2 signal—W28—0.5SPEEDUINO-A-21———
ABNC————————
ACTCM (automatic only)————————
ADFuel level————————
AEPressure sensor (Mazda: EGR boost sensor)—W27—0.5SPEEDUINO-A-11———
AFECU power +14V (main relay)————————
AGConstant +12V————————
AHEVAP leak detection pump solenoid valve————————
BBrake switch————————
CPower steering pressure switch————————
DVVT oil-control solenoid +12V feed————————
EDiagnostic (DLC TEN) (NA)————————
FA/C request————————
GNC————————
HNeutral switch————————
IClutch switch————————
JVTCS vacuum switch————————
KNC————————
L+5V sensor supply—W9—0.5SPEEDUINO-A-13———
MKnock sensor————————
NIntake air temperature (IAT)—W29—0.5SPEEDUINO-A-20———
OSignal ground—W6—0.5SP-0V-1———
PCoolant temperature (ECT)—W19—0.5SPEEDUINO-A-19———
QNC————————
RVVT oil-control solenoid (low-side control)————————
SIgnition switch (IG1) sense————————
TGenerator output voltage (terminal P)————————
UNC————————
VThrottle position (TPS)—W18—0.5SPEEDUINO-A-22———
WFront O2 signal————————
XMass air flow (MAF)————————
YNC————————
ZTCM (automatic only)————————

SP-0V

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1——W6—0.5OEM-4-O———
1——W7—0.5SPEEDUINO-A-12———
1——W8—0.5SPEEDUINO-A-23———

SP-GND

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1——W1—0.85OEM-3-A———
1——W2—0.85OEM-3-B———
1——W3—0.85OEM-4-A———
1——W4—0.85SPEEDUINO-A-10———
1——W5—0.85SPEEDUINO-A-9———

SPEEDUINO-A

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1Injector 1—W14—0.5OEM-2-A———
10Ground—W4—0.85SP-GND-1———
11MAP sensor (0-5V)—W27—0.5OEM-4-AE———
12Ground—W7—0.5SP-0V-1———
135V—W9—0.5OEM-4-L———
14Proto area 1 (flex fuel)—W30—0.5OEM-3-T———
15Proto area 2 (fan)—W21—0.5OEM-2-C———
16Proto area 3 (fuel pump)—W20—0.5OEM-2-B———
17Proto area 4 (tachometer)—W26—0.5OEM-3-O———
18Proto area 5 (clutch)—W31—0.5OEM-3-S———
19Coolant temp (CLT)—W19—0.5OEM-4-P———
2Injector 2—W15—0.5OEM-2-D———
20Inlet air temp (IAT)—W29—0.5OEM-4-N———
21O2 sensor—W28—0.5OEM-4-AA———
22TPS input—W18—0.5OEM-4-V———
23Ground—W8—0.5SP-0V-1———
24Cam input / VR2+—W11—0.5OEM-3-V———
25Crank input / VR1+—W10—0.5OEM-3-Y———
26VR2-————————
27VR1-————————
285V————————
29Idle stepper 2B————————
3Injector 3—W16—0.5OEM-2-G———
30Idle stepper 2A————————
31Idle stepper 1A————————
32Idle stepper 1B————————
33Ignition 3————————
34Ignition 2—W13—0.5OEM-3-I———
35Boost—W23—0.5OEM-2-M———
36Idle 2 (3-wire idle)—W22—0.5OEM-2-K———
37PWM idle—W24—0.5OEM-3-H———
38VVT—W25—0.5OEM-2-O———
5Injector 4—W17—0.5OEM-2-J———
7Ignition 1—W12—0.5OEM-3-F———
8Ignition 4————————
9Ground—W5—0.85SP-GND-1———

Pin map

OEM pointOEM functionOEM familyTarget pointTarget functionTarget familyWire colourEvidence
OEM-2-AInjector 1injector_outSPEEDUINO-A-1Injector 1injector_outYBsingle_source
OEM-2-BCooling fan relaylow_side_outSPEEDUINO-A-16Proto area 3 (fuel pump)low_side_outRYsingle_source
OEM-2-CCondenser fan relaylow_side_outSPEEDUINO-A-15Proto area 2 (fan)low_side_outLWsingle_source
OEM-2-DInjector 2injector_outSPEEDUINO-A-2Injector 2injector_outVGsingle_source
OEM-2-EEGR valvelow_side_out———Lgsingle_source
OEM-2-FEGR valvelow_side_out———WGsingle_source
OEM-2-GInjector 3injector_outSPEEDUINO-A-3Injector 3injector_outYRsingle_source
OEM-2-HEGR valvelow_side_out———PBsingle_source
OEM-2-IEGR valvelow_side_out———Psingle_source
OEM-2-JInjector 4injector_outSPEEDUINO-A-5Injector 4injector_outYGsingle_source
OEM-2-KA/C clutch relaylow_side_outSPEEDUINO-A-36Idle 2 (3-wire idle)low_side_outLBsingle_source
OEM-2-LNC————unverified
OEM-2-MFuel pump relaylow_side_outSPEEDUINO-A-35Boostlow_side_outRWsingle_source
OEM-2-NVTCS solenoid (intake butterflies)low_side_out———BWsingle_source
OEM-2-OFuel pump relay (non-immobiliser)low_side_outSPEEDUINO-A-38VVTlow_side_outRsingle_source
OEM-2-PISC valve +14V feedpower_in———Orsingle_source
OEM-2-QISC valve low sidelow_side_out———VRsingle_source
OEM-2-RMalfunction indicator lamp (MIL)low_side_out———WLsingle_source
OEM-3-APower groundgroundSPEEDUINO-A-10 + SPEEDUINO-A-9Ground + GroundgroundBsingle_source
OEM-3-BPower groundgroundSPEEDUINO-A-10 + SPEEDUINO-A-9Ground + GroundgroundBRsingle_source
OEM-3-CPurge solenoid valvelow_side_out———GYsingle_source
OEM-3-DEGR boost solenoid————GyBsingle_source
OEM-3-ENC————unverified
OEM-3-FIgnition 1 (coils 1+4, wasted spark)ignition_outSPEEDUINO-A-7Ignition 1ignition_outBrWsingle_source
OEM-3-GNC————unverified
OEM-3-HMain relaylow_side_outSPEEDUINO-A-37PWM idlelow_side_outLOrsingle_source
OEM-3-IIgnition 2 (coils 2+3, wasted spark)ignition_outSPEEDUINO-A-34Ignition 2ignition_outBYsingle_source
OEM-3-JFront O2 heaterlow_side_out———BOrsingle_source
OEM-3-KEVAP leak detection pumplow_side_out———YBsingle_source
OEM-3-LNC————unverified
OEM-3-MAlternator controllow_side_out———GyRsingle_source
OEM-3-NNC————unverified
OEM-3-OTachometer outputtacho_outSPEEDUINO-A-17Proto area 4 (tachometer)tacho_outGOrsingle_source
OEM-3-PRear O2 heaterlow_side_out———WBsingle_source
OEM-3-QData link connector (K-line)serial———GWsingle_source
OEM-3-RNC————unverified
OEM-3-SImmobiliserdigital_inSPEEDUINO-A-18Proto area 5 (clutch)digital_inRBsingle_source
OEM-3-TVehicle speeddigital_inSPEEDUINO-A-14Proto area 1 (flex fuel)digital_inGRsingle_source
OEM-3-UCharge lamplow_side_out———BrRsingle_source
OEM-3-VCam position (CMP)trigger_inSPEEDUINO-A-24Cam input / VR2+trigger_inGyLsingle_source
OEM-3-WNC————unverified
OEM-3-XNC————unverified
OEM-3-YCrank position (CKP)trigger_inSPEEDUINO-A-25Crank input / VR1+trigger_inVWsingle_source
OEM-3-ZNC————unverified
OEM-4-APower groundgroundSPEEDUINO-A-10 + SPEEDUINO-A-9Ground + GroundgroundBLsingle_source
OEM-4-AARear O2 signallambda_nb_inSPEEDUINO-A-21O2 sensorlambda_nb_inRsingle_source
OEM-4-ABNC————unverified
OEM-4-ACTCM (automatic only)————VGsingle_source
OEM-4-ADFuel levelanalog_in———BrBsingle_source
OEM-4-AEPressure sensor (Mazda: EGR boost sensor)analog_inSPEEDUINO-A-11MAP sensor (0-5V)analog_inLYcorroborated
OEM-4-AFECU power +14V (main relay)power_in———WRsingle_source
OEM-4-AGConstant +12Vpower_in———LRsingle_source
OEM-4-AHEVAP leak detection pump solenoid valvelow_side_out———RGsingle_source
OEM-4-BBrake switchdigital_in———Gsingle_source
OEM-4-CPower steering pressure switchdigital_in———Brsingle_source
OEM-4-DVVT oil-control solenoid +12V feedpower_in———Ysingle_source
OEM-4-EDiagnostic (DLC TEN) (NA)serial———LYsingle_source
OEM-4-FA/C requestdigital_in———LgBsingle_source
OEM-4-GNC————unverified
OEM-4-HNeutral switchdigital_in———Vsingle_source
OEM-4-IClutch switchdigital_in———WGsingle_source
OEM-4-JVTCS vacuum switchdigital_in———Orsingle_source
OEM-4-KNC————unverified
OEM-4-L+5V sensor supplyvrefSPEEDUINO-A-135VvrefLgRsingle_source
OEM-4-MKnock sensorknock_in———Wsingle_source
OEM-4-NIntake air temperature (IAT)temp_inSPEEDUINO-A-20Inlet air temp (IAT)temp_inPLsingle_source
OEM-4-OSignal groundsensor_groundSPEEDUINO-A-12 + SPEEDUINO-A-23Ground + Groundsensor_groundBRsingle_source
OEM-4-PCoolant temperature (ECT)temp_inSPEEDUINO-A-19Coolant temp (CLT)temp_inRLsingle_source
OEM-4-QNC————unverified
OEM-4-RVVT oil-control solenoid (low-side control)low_side_out———VYcorroborated
OEM-4-SIgnition switch (IG1) sensedigital_in———BWsingle_source
OEM-4-TGenerator output voltage (terminal P)————Gysingle_source
OEM-4-UNC————unverified
OEM-4-VThrottle position (TPS)analog_inSPEEDUINO-A-22TPS inputanalog_inGBsingle_source
OEM-4-WFront O2 signallambda_nb_in———Lsingle_source
OEM-4-XMass air flow (MAF)analog_in———Psingle_source
OEM-4-YNC————unverified
OEM-4-ZTCM (automatic only)————PBsingle_source

Cut list

WireFromToGauge (mm²)ColourLengthSignalIdent
W1OEM-3-ASP-GND-10.85no routePower ground—
W2OEM-3-BSP-GND-10.85no routePower ground—
W3OEM-4-ASP-GND-10.85no routePower ground—
W4SP-GND-1SPEEDUINO-A-100.85no routeGround—
W5SP-GND-1SPEEDUINO-A-90.85no routeGround—
W6OEM-4-OSP-0V-10.5no routeSignal ground—
W7SP-0V-1SPEEDUINO-A-120.5no routeGround—
W8SP-0V-1SPEEDUINO-A-230.5no routeGround—
W9OEM-4-LSPEEDUINO-A-130.5no route+5V sensor supply—
W10OEM-3-YSPEEDUINO-A-250.5no routeCrank position (CKP)—
W11OEM-3-VSPEEDUINO-A-240.5no routeCam position (CMP)—
W12OEM-3-FSPEEDUINO-A-70.5no routeIgnition 1 (coils 1+4, wasted spark)—
W13OEM-3-ISPEEDUINO-A-340.5no routeIgnition 2 (coils 2+3, wasted spark)—
W14OEM-2-ASPEEDUINO-A-10.5no routeInjector 1—
W15OEM-2-DSPEEDUINO-A-20.5no routeInjector 2—
W16OEM-2-GSPEEDUINO-A-30.5no routeInjector 3—
W17OEM-2-JSPEEDUINO-A-50.5no routeInjector 4—
W18OEM-4-VSPEEDUINO-A-220.5no routeThrottle position (TPS)—
W19OEM-4-PSPEEDUINO-A-190.5no routeCoolant temperature (ECT)—
W20OEM-2-BSPEEDUINO-A-160.5no routeCooling fan relay—
W21OEM-2-CSPEEDUINO-A-150.5no routeCondenser fan relay—
W22OEM-2-KSPEEDUINO-A-360.5no routeA/C clutch relay—
W23OEM-2-MSPEEDUINO-A-350.5no routeFuel pump relay—
W24OEM-3-HSPEEDUINO-A-370.5no routeMain relay—
W25OEM-2-OSPEEDUINO-A-380.5no routeFuel pump relay (non-immobiliser)—
W26OEM-3-OSPEEDUINO-A-170.5no routeTachometer output—
W27OEM-4-AESPEEDUINO-A-110.5no routePressure sensor (Mazda: EGR boost sensor)—
W28OEM-4-AASPEEDUINO-A-210.5no routeRear O2 signal—
W29OEM-4-NSPEEDUINO-A-200.5no routeIntake air temperature (IAT)—
W30OEM-3-TSPEEDUINO-A-140.5no routeVehicle speed—
W31OEM-3-SSPEEDUINO-A-180.5no routeImmobiliser—

Bill of materials

CategoryPart numberManufacturerDescriptionQtyUnit

ECU setup sheet

RoleEngine refEngine signalSensorECU pointECU functionECU classSetup flag
No configured channels.

Findings

Open (8)

SeverityCodeSubjectMessage
errorREQUIRED_UNMAPPEDOEM-4-AFRequired OEM function "ECU power +14V (main relay)" (power_in) is not connected to the new ECU.
errorREQUIRED_UNMAPPEDOEM-4-XRequired OEM function "Mass air flow (MAF)" (analog_in) is not connected to the new ECU.
warnLOAD_UNKNOWNSPEEDUINO-A-15SPEEDUINO-A-15 "Proto area 2 (fan)" drives OEM-2-C Condenser fan relay (load 0.2 A) but its current rating is unknown. Check the ECU manual.
warnLOAD_UNKNOWNSPEEDUINO-A-16SPEEDUINO-A-16 "Proto area 3 (fuel pump)" drives OEM-2-B Cooling fan relay (load 0.2 A) but its current rating is unknown. Check the ECU manual.
warnLOAD_UNKNOWNSPEEDUINO-A-35SPEEDUINO-A-35 "Boost" drives OEM-2-M Fuel pump relay (load 0.2 A) but its current rating is unknown. Check the ECU manual.
warnLOAD_UNKNOWNSPEEDUINO-A-36SPEEDUINO-A-36 "Idle 2 (3-wire idle)" drives OEM-2-K A/C clutch relay (load 0.2 A) but its current rating is unknown. Check the ECU manual.
warnLOAD_UNKNOWNSPEEDUINO-A-37SPEEDUINO-A-37 "PWM idle" drives OEM-3-H Main relay (load 0.2 A) but its current rating is unknown. Check the ECU manual.
infoUNMAPPEDOEM33 optional OEM pins are not mapped: OEM-2-E EGR valve; OEM-2-F EGR valve; OEM-2-H EGR valve; OEM-2-I EGR valve; OEM-2-N VTCS solenoid (intake butterflies); OEM-2-P ISC valve +14V feed; OEM-2-Q ISC valve low side; OEM-2-R Malfunction indicator lamp (MIL); OEM-3-C Purge solenoid valve; OEM-3-D EGR boost solenoid; OEM-3-J Front O2 heater; OEM-3-K EVAP leak detection pump; OEM-3-M Alternator control; OEM-3-P Rear O2 heater; OEM-3-Q Data link connector (K-line); OEM-3-U Charge lamp; OEM-4-AC TCM (automatic only); OEM-4-AD Fuel level; OEM-4-AH EVAP leak detection pump solenoid valve; OEM-4-B Brake switch; OEM-4-C Power steering pressure switch; OEM-4-D VVT oil-control solenoid +12V feed; OEM-4-E Diagnostic (DLC TEN) (NA); OEM-4-F A/C request; OEM-4-H Neutral switch; OEM-4-I Clutch switch; OEM-4-J VTCS vacuum switch; OEM-4-M Knock sensor; OEM-4-R VVT oil-control solenoid (low-side control); OEM-4-S Ignition switch (IG1) sense; OEM-4-T Generator output voltage (terminal P); OEM-4-W Front O2 signal; OEM-4-Z TCM (automatic only)

Accepted (1)

CodeSubjectReasonBy
REQUIRED_UNMAPPEDOEM-4-AGBattery-constant (memory) feed of the stock ECU: the new ECU has no such input, so it is not needed.mapping-proposal

Notes

Auto-mapped by auto_map() from the library pin data on 2026-10-11. Review every wire against both manuals before building. Open items: - Main-relay feed: no ecu_main_power pin on the stock or the new ECU - OEM-4 X: Mass air flow (MAF): no free maf/analog_0_5 on Speeduino Speeduino - OEM-4 AF: ECU power +14V (main relay): no rule for class ecu_main_power; wire by hand Not wired: - OEM-4 AG: Constant +12V: Speeduino Speeduino has no battery-constant input; not needed - OEM-4 M: Knock sensor: no free knock input on Speeduino Speeduino - OEM-4 S: Ignition switch (IG1) sense: key-on 12 V sense — optional in a swap (the main relay is energized from keyed 12 V, not from this pin); Speeduino Speeduino has no dedicated key-on input - OEM-3 J: Front O2 heater: no free heater_low_side/low_side/relay_control/ls_hs/injector on Speeduino Speeduino - OEM-3 P: Rear O2 heater: no free heater_low_side/low_side/relay_control/ls_hs/injector on Speeduino Speeduino - OEM-2 Q: ISC valve low side: no free low_side/relay_control/heater_low_side/ls_hs/injector rated ≥ 1.0 A on Speeduino Speeduino - OEM-2 E: EGR valve: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-2 F: EGR valve: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-2 H: EGR valve: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-2 I: EGR valve: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-2 N: VTCS solenoid (intake butterflies): no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-2 R: Malfunction indicator lamp (MIL): no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-3 C: Purge solenoid valve: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-3 K: EVAP leak detection pump: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-3 M: Alternator control: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-3 U: Charge lamp: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-4 AH: EVAP leak detection pump solenoid valve: no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-4 R: VVT oil-control solenoid (low-side control): no free low_side/relay_control/heater_low_side/ls_hs/injector on Speeduino Speeduino - OEM-4 W: Front O2 signal: no free o2_narrowband/analog_0_5 on Speeduino Speeduino - OEM-4 AD: Fuel level: no free analog_0_5 on Speeduino Speeduino - OEM-4 B: Brake switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-4 C: Power steering pressure switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-4 F: A/C request: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-4 H: Neutral switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-4 I: Clutch switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-4 J: VTCS vacuum switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-3 Q: Data link connector (K-line): no free k_line on Speeduino Speeduino - OEM-4 E: Diagnostic (DLC TEN) (NA): no free k_line on Speeduino Speeduino - OEM-4 D: VVT oil-control solenoid +12V feed: no rule for class switched_feed; wire by hand - OEM-2 P: ISC valve +14V feed: no rule for class switched_feed; wire by hand - OEM-3 D: EGR boost solenoid: not classified in the library; wire by hand - OEM-4 AC: TCM (automatic only): not classified in the library; wire by hand - OEM-4 T: Generator output voltage (terminal P): not classified in the library; wire by hand - OEM-4 Z: TCM (automatic only): not classified in the library; wire by hand

Sources

ReliabilityKindTitleURLArchiveCapturedSHA-256
4oem_manual2005 Mazda MX-5 Miata Engine Performance Control System (PCM terminal voltage reference, BP and BP WITH TC)https://trull.org/alex/pubmirror/www.mellens.net/mazda/Mazda-Miata-2005/engine_control_system.pdf———
4vendor_docAdaptronic eSel039 Select Plugin ECU for Mazda MX5 / Miata NB8B/C (OEM ECU pinout)https://www.miataturbo.net/attachments/ecus-tuning-54/04-msm-ecu-pinout-104032/nb8bc_oem_ecu_pinouts-224948d1602912806———
4vendor_docLink G4X MX5NB2X install manual (NB2 2001-05)https://linkecu.com/documentation/MX5XNB2.pdfarchive2026-10-05741efdd9f2c8
4oem_manualMazda MX-5 NB2 (2003) wiring diagram — engine / starting / charginghttps://web.archive.org/web/20191104195207/http://mellens.net/mazda/mazda_miata_extra_manual/2003_wiring.pdf—2026-10-055ee0777f12c1
4vendor_docSpeeduino Manual (08/04/25) — V0.4 board IDC40 pinout & featureshttps://speeduino.com/Speeduino_manual.pdfarchive2026-10-0521806bd29ef0
2expert_reportJustin Barrera — Miata NA/NB wiring corrections————