← Back

MX-5 Miata NB1 1999-00 (BP-4W) → Speeduino Speeduino v0.4 (auto)

MX-5 Miata NB1 1999-00 (BP-4W) — Speeduino — Speeduino
⚠ NOT CHECKED. Don't build from this.
Drawn by Michael Gnankou · Rev 0 · draft · 2026-10-04

Revisions

RevLabelByDate
No revisions yet.

Schematic

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

Connectors

OEM-1

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
AConstant +12V————————
BECU power +14V (main relay)————————
EMalfunction indicator lamp (MIL)—W25—0.5SPEEDUINO-A-32———
FBrake switch—W34—0.5SPEEDUINO-A-18———
GPower steering pressure switch————————
ICondenser fan relay—W18—0.5SPEEDUINO-A-16———
OAlternator control—W26—0.5SPEEDUINO-A-29———
PA/C request————————
QCharge lamp—W27—0.5SPEEDUINO-A-30———
RCooling fan relay—W19—0.5SPEEDUINO-A-15———
SA/C clutch relay—W20—0.5SPEEDUINO-A-36———
UFront O2 heater—W22—0.5SPEEDUINO-A-37———
VNeutral switch————————

OEM-2

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
AFuel tank pressure————————
BIntake air temperature (IAT)—W32—0.5SPEEDUINO-A-20———
CFront O2 signal—W30—0.5SPEEDUINO-A-21———
DVehicle speed—W33—0.5SPEEDUINO-A-14———
ECoolant temperature (ECT)—W31—0.5SPEEDUINO-A-19———
FKnock sensor————————
HCam position (CMP)—W11—0.5SPEEDUINO-A-24———
I+5V sensor supply—W9—0.5SPEEDUINO-A-13———
JCrank position (CKP)—W10—0.5SPEEDUINO-A-25———
KTachometer output—W28—0.5SPEEDUINO-A-17———
LMass air flow (MAF)————————
MEGR valve————————
NEGR valve————————
OEGR valve————————
PEGR valve————————

OEM-3

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
APower ground—W1—0.85SP-GND-1———
BPower ground—W2—0.85SP-GND-1———
CPower ground—W3—0.85SP-GND-1———
EThrottle position (TPS)—W29—0.5SPEEDUINO-A-22———
FSignal ground—W6—0.5SP-0V-1———
GIgnition 1 (coils 1+4, wasted spark)—W12—0.5SPEEDUINO-A-7———
HIgnition 2 (coils 2+3, wasted spark)—W13—0.5SPEEDUINO-A-34———
IClutch switch————————
JRear O2 signal————————
KFuel level————————
LEvap purge solenoid————————
MISC valve +14V feed————————
NFuel pump relay—W21—0.5SPEEDUINO-A-35———
OISC valve low side—W24—0.5SPEEDUINO-A-31———
QVICS solenoid (intake butterflies)————————
SEGR boost sensor————————
TEGR boost solenoid————————
UCanister drain cut valve (CDCV)————————
VRear O2 heater—W23—0.5SPEEDUINO-A-38———
WInjector 1—W14—0.5SPEEDUINO-A-1———
XInjector 2—W15—0.5SPEEDUINO-A-2———
YInjector 3—W16—0.5SPEEDUINO-A-3———
ZInjector 4—W17—0.5SPEEDUINO-A-5———

SP-0V

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1——W6—0.5OEM-3-F———
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-3-C———
1——W4—0.85SPEEDUINO-A-10———
1——W5—0.85SPEEDUINO-A-9———

SPEEDUINO-A

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

Pin map

OEM pointOEM functionOEM familyTarget pointTarget functionTarget familyWire colourEvidence
OEM-1-AConstant +12Vpower_in———single_source
OEM-1-BECU power +14V (main relay)power_in———single_source
OEM-1-EMalfunction indicator lamp (MIL)low_side_outSPEEDUINO-A-32Idle stepper 1Bhbridge_outsingle_source
OEM-1-FBrake switchdigital_inSPEEDUINO-A-18Proto area 5 (clutch)digital_insingle_source
OEM-1-GPower steering pressure switchdigital_in———single_source
OEM-1-ICondenser fan relaylow_side_outSPEEDUINO-A-16Proto area 3 (fuel pump)low_side_outsingle_source
OEM-1-OAlternator controllow_side_outSPEEDUINO-A-29Idle stepper 2Bhbridge_outsingle_source
OEM-1-PA/C requestdigital_in———single_source
OEM-1-QCharge lamplow_side_outSPEEDUINO-A-30Idle stepper 2Ahbridge_outsingle_source
OEM-1-RCooling fan relaylow_side_outSPEEDUINO-A-15Proto area 2 (fan)low_side_outsingle_source
OEM-1-SA/C clutch relaylow_side_outSPEEDUINO-A-36Idle 2 (3-wire idle)low_side_outsingle_source
OEM-1-UFront O2 heaterlow_side_outSPEEDUINO-A-37PWM idlelow_side_outsingle_source
OEM-1-VNeutral switchdigital_in———single_source
OEM-2-AFuel tank pressureanalog_in———single_source
OEM-2-BIntake air temperature (IAT)temp_inSPEEDUINO-A-20Inlet air temp (IAT)temp_insingle_source
OEM-2-CFront O2 signallambda_nb_inSPEEDUINO-A-21O2 sensorlambda_nb_insingle_source
OEM-2-DVehicle speeddigital_inSPEEDUINO-A-14Proto area 1 (flex fuel)digital_insingle_source
OEM-2-ECoolant temperature (ECT)temp_inSPEEDUINO-A-19Coolant temp (CLT)temp_insingle_source
OEM-2-FKnock sensorknock_in———single_source
OEM-2-HCam position (CMP)trigger_inSPEEDUINO-A-24Cam input / VR2+trigger_insingle_source
OEM-2-I+5V sensor supplyvrefSPEEDUINO-A-135Vvrefsingle_source
OEM-2-JCrank position (CKP)trigger_inSPEEDUINO-A-25Crank input / VR1+trigger_insingle_source
OEM-2-KTachometer outputtacho_outSPEEDUINO-A-17Proto area 4 (tachometer)tacho_outsingle_source
OEM-2-LMass air flow (MAF)analog_in———single_source
OEM-2-MEGR valvelow_side_out———single_source
OEM-2-NEGR valvelow_side_out———single_source
OEM-2-OEGR valvelow_side_out———single_source
OEM-2-PEGR valvelow_side_out———single_source
OEM-3-APower groundgroundSPEEDUINO-A-10 + SPEEDUINO-A-9Ground + Groundgroundsingle_source
OEM-3-BPower groundgroundSPEEDUINO-A-10 + SPEEDUINO-A-9Ground + Groundgroundsingle_source
OEM-3-CPower groundgroundSPEEDUINO-A-10 + SPEEDUINO-A-9Ground + Groundgroundsingle_source
OEM-3-EThrottle position (TPS)analog_inSPEEDUINO-A-22TPS inputanalog_insingle_source
OEM-3-FSignal groundsensor_groundSPEEDUINO-A-12 + SPEEDUINO-A-23Ground + Groundsensor_groundsingle_source
OEM-3-GIgnition 1 (coils 1+4, wasted spark)ignition_outSPEEDUINO-A-7Ignition 1ignition_outsingle_source
OEM-3-HIgnition 2 (coils 2+3, wasted spark)ignition_outSPEEDUINO-A-34Ignition 2ignition_outsingle_source
OEM-3-IClutch switchdigital_in———single_source
OEM-3-JRear O2 signallambda_nb_in———single_source
OEM-3-KFuel levelanalog_in———single_source
OEM-3-LEvap purge solenoidlow_side_out———single_source
OEM-3-MISC valve +14V feedpower_in———single_source
OEM-3-NFuel pump relaylow_side_outSPEEDUINO-A-35Boostlow_side_outsingle_source
OEM-3-OISC valve low sidelow_side_outSPEEDUINO-A-31Idle stepper 1Ahbridge_outsingle_source
OEM-3-QVICS solenoid (intake butterflies)low_side_out———single_source
OEM-3-SEGR boost sensoranalog_in———single_source
OEM-3-TEGR boost solenoidlow_side_out———single_source
OEM-3-UCanister drain cut valve (CDCV)low_side_out———single_source
OEM-3-VRear O2 heaterlow_side_outSPEEDUINO-A-38VVTlow_side_outsingle_source
OEM-3-WInjector 1injector_outSPEEDUINO-A-1Injector 1injector_outsingle_source
OEM-3-XInjector 2injector_outSPEEDUINO-A-2Injector 2injector_outsingle_source
OEM-3-YInjector 3injector_outSPEEDUINO-A-3Injector 3injector_outsingle_source
OEM-3-ZInjector 4injector_outSPEEDUINO-A-5Injector 4injector_outsingle_source

Cut list

WireFromToGauge (mm²)ColourLengthSignalIdent
W1OEM-3-ASP-GND-10.85no routePower ground—
W2OEM-3-BSP-GND-10.85no routePower ground—
W3OEM-3-CSP-GND-10.85no routePower ground—
W4SP-GND-1SPEEDUINO-A-100.85no routeGround—
W5SP-GND-1SPEEDUINO-A-90.85no routeGround—
W6OEM-3-FSP-0V-10.5no routeSignal ground—
W7SP-0V-1SPEEDUINO-A-120.5no routeGround—
W8SP-0V-1SPEEDUINO-A-230.5no routeGround—
W9OEM-2-ISPEEDUINO-A-130.5no route+5V sensor supply—
W10OEM-2-JSPEEDUINO-A-250.5no routeCrank position (CKP)—
W11OEM-2-HSPEEDUINO-A-240.5no routeCam position (CMP)—
W12OEM-3-GSPEEDUINO-A-70.5no routeIgnition 1 (coils 1+4, wasted spark)—
W13OEM-3-HSPEEDUINO-A-340.5no routeIgnition 2 (coils 2+3, wasted spark)—
W14OEM-3-WSPEEDUINO-A-10.5no routeInjector 1—
W15OEM-3-XSPEEDUINO-A-20.5no routeInjector 2—
W16OEM-3-YSPEEDUINO-A-30.5no routeInjector 3—
W17OEM-3-ZSPEEDUINO-A-50.5no routeInjector 4—
W18OEM-1-ISPEEDUINO-A-160.5no routeCondenser fan relay—
W19OEM-1-RSPEEDUINO-A-150.5no routeCooling fan relay—
W20OEM-1-SSPEEDUINO-A-360.5no routeA/C clutch relay—
W21OEM-3-NSPEEDUINO-A-350.5no routeFuel pump relay—
W22OEM-1-USPEEDUINO-A-370.5no routeFront O2 heater—
W23OEM-3-VSPEEDUINO-A-380.5no routeRear O2 heater—
W24OEM-3-OSPEEDUINO-A-310.5no routeISC valve low side—
W25OEM-1-ESPEEDUINO-A-320.5no routeMalfunction indicator lamp (MIL)—
W26OEM-1-OSPEEDUINO-A-290.5no routeAlternator control—
W27OEM-1-QSPEEDUINO-A-300.5no routeCharge lamp—
W28OEM-2-KSPEEDUINO-A-170.5no routeTachometer output—
W29OEM-3-ESPEEDUINO-A-220.5no routeThrottle position (TPS)—
W30OEM-2-CSPEEDUINO-A-210.5no routeFront O2 signal—
W31OEM-2-ESPEEDUINO-A-190.5no routeCoolant temperature (ECT)—
W32OEM-2-BSPEEDUINO-A-200.5no routeIntake air temperature (IAT)—
W33OEM-2-DSPEEDUINO-A-140.5no routeVehicle speed—
W34OEM-1-FSPEEDUINO-A-180.5no routeBrake switch—

Bill of materials

CategoryPart numberManufacturerDescriptionQtyUnit

ECU setup sheet

RoleEngine refEngine signalSensorECU pointECU functionECU classSetup flag
No configured channels.

Findings

Open (12)

SeverityCodeSubjectMessage
errorREQUIRED_UNMAPPEDOEM-1-BRequired OEM function "ECU power +14V (main relay)" (power_in) is not connected to the new ECU.
errorREQUIRED_UNMAPPEDOEM-2-LRequired 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-1-R Cooling 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-1-I Condenser fan relay (load 0.2 A) but its current rating is unknown. Check the ECU manual.
warnLOAD_UNKNOWNSPEEDUINO-A-31SPEEDUINO-A-31 "Idle stepper 1A" drives OEM-3-O ISC valve low side (load 1.0 A) but its current rating is unknown. Check the ECU manual.
warnLOAD_UNKNOWNSPEEDUINO-A-35SPEEDUINO-A-35 "Boost" drives OEM-3-N 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-1-S A/C clutch relay (load 0.2 A) but its current rating is unknown. Check the ECU manual.
warnNET_FAMILYOEM-1-E ↔ SPEEDUINO-A-32OEM-1-E "Malfunction indicator lamp (MIL)" [low_side_out] is wired to SPEEDUINO-A-32 "Idle stepper 1B" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-1-O ↔ SPEEDUINO-A-29OEM-1-O "Alternator control" [low_side_out] is wired to SPEEDUINO-A-29 "Idle stepper 2B" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-1-Q ↔ SPEEDUINO-A-30OEM-1-Q "Charge lamp" [low_side_out] is wired to SPEEDUINO-A-30 "Idle stepper 2A" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-3-O ↔ SPEEDUINO-A-31OEM-3-O "ISC valve low side" [low_side_out] is wired to SPEEDUINO-A-31 "Idle stepper 1A" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
infoUNMAPPEDOEM18 optional OEM pins are not mapped: OEM-1-G Power steering pressure switch; OEM-1-P A/C request; OEM-1-V Neutral switch; OEM-2-A Fuel tank pressure; OEM-2-F Knock sensor; OEM-2-M EGR valve; OEM-2-N EGR valve; OEM-2-O EGR valve; OEM-2-P EGR valve; OEM-3-I Clutch switch; OEM-3-J Rear O2 signal; OEM-3-K Fuel level; OEM-3-L Evap purge solenoid; OEM-3-M ISC valve +14V feed; OEM-3-Q VICS solenoid (intake butterflies); OEM-3-S EGR boost sensor; OEM-3-T EGR boost solenoid; OEM-3-U Canister drain cut valve (CDCV)

Accepted (1)

CodeSubjectReasonBy
REQUIRED_UNMAPPEDOEM-1-ABattery-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-04. 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-2 L: Mass air flow (MAF): no free maf/analog_0_5 on Speeduino Speeduino - OEM-1 B: ECU power +14V (main relay): no rule for class ecu_main_power; wire by hand Not wired: - OEM-1 A: Constant +12V: Speeduino Speeduino has no battery-constant input; not needed - OEM-2 F: Knock sensor: no free knock input on Speeduino Speeduino - OEM-2 M: EGR valve: no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-2 N: EGR valve: no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-2 O: EGR valve: no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-2 P: EGR valve: no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-3 L: Evap purge solenoid: no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-3 Q: VICS solenoid (intake butterflies): no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-3 T: EGR boost solenoid: no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-3 U: Canister drain cut valve (CDCV): no free low_side/ls_hs/injector/hbridge on Speeduino Speeduino - OEM-3 J: Rear O2 signal: no free o2_narrowband/analog_0_5 on Speeduino Speeduino - OEM-2 A: Fuel tank pressure: no free analog_0_5 on Speeduino Speeduino - OEM-3 K: Fuel level: no free analog_0_5 on Speeduino Speeduino - OEM-3 S: EGR boost sensor: no free analog_0_5 on Speeduino Speeduino - OEM-1 G: Power steering pressure switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-1 P: A/C request: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-1 V: Neutral switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-3 I: Clutch switch: no free switch_in/frequency_in/analog_0_5 on Speeduino Speeduino - OEM-3 M: ISC valve +14V feed: no rule for class switched_feed; wire by hand

Sources

ReliabilityKindTitleURL
4vendor_docLink G4X MX5NB1X install manual (NB1 1999-00)https://linkecu.com/documentation/MX5XNB1.pdf
4vendor_docSpeeduino Manual (08/04/25) — V0.4 board IDC40 pinout & featureshttps://speeduino.com/Speeduino_manual.pdf