← Back

MX-5 Miata NB1 1999-00 (BP-4W) → MoTeC M170 13170 (auto)

MX-5 Miata NB1 1999-00 (BP-4W) — MoTeC — M170
Drawn by Michael Gnankou · Rev 0 · proposal · 2026-10-05

Revisions

RevLabelByDate
No revisions yet.

Schematic

M170-AOEM-1OEM-2OEM-3SP-0VSP-14VSP-GND

Connectors

M170-A

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1Low Side Ignition 1—W22—0.5OEM-3-G———
10Low Side Ignition 4————————
11Sensor 0V A—W16—0.5SP-0V-1———
12Analogue Voltage Input 5—W46—0.5OEM-2-A———
13Universal Digital Input 7—W53—0.5OEM-1-V———
14Battery Negative 1—W10—0.85SP-GND-1———
15Battery Negative 2—W11—0.85SP-GND-1———
16Sensor 5.0V A—W18—0.5OEM-2-I———
17Low Side Ignition 5————————
18Analogue Voltage Input 2—W41—0.5OEM-3-E———
19Battery Negative 3—W12—0.85SP-GND-1———
2Low Side Ignition 8————————
20Battery Negative 4—W13—0.85SP-GND-1———
21Battery Negative 5—W14—0.85SP-GND-1———
22Universal Digital Input 8—W54—0.5OEM-3-I———
23Battery Positive—W3—0.85SP-14V-1———
24Peak Hold Injector 5—W30—0.5OEM-1-S———
25Low Side Ignition 6————————
26Analogue Voltage Input 1—W40—0.5OEM-2-L———
27Sensor 0V B—W17—0.5SP-0V-1———
28Analogue Temperature Input 1—W44—0.5OEM-2-E———
29Knock Input 1—W21—0.5OEM-2-F———
3Low Side Ignition 7————————
30Analogue Temperature Input 3————————
31CAN Bus 1 Low————————
32Battery Positive—W4—0.85SP-14V-1———
33Peak Hold Injector 1—W24—0.5OEM-3-W———
34Sensor 5.0V B————————
35Analogue Voltage Input 7—W48—0.5OEM-3-S———
36Analogue Voltage Input 6—W47—0.5OEM-3-K———
37Sensor 6.3V————————
38Analogue Temperature Input 2—W45—0.5OEM-2-B———
39Analogue Temperature Input 4————————
4Low Side Ignition 3————————
40CAN Bus 1 High————————
41Battery Positive—W5—0.85SP-14V-1———
42Peak Hold Injector 6—W31—0.5OEM-3-N———
43Low Side Injector 1—W25—0.5OEM-3-X———
44Analogue Voltage Input 8————————
45Universal Digital Input 4—W50—0.5OEM-1-F———
46Universal Digital Input 3—W49—0.5OEM-2-D———
47Ethernet Transmit -————————
48Ethernet Transmit +————————
49Universal Digital Input 1—W19—0.5OEM-2-J———
5Low Side Ignition 2—W23—0.5OEM-3-H———
50Peak Hold Injector 2—W26—0.5OEM-3-Y———
51Low Side Injector 2—W27—0.5OEM-3-Z———
52Universal Digital Input 5—W51—0.5OEM-1-G———
53Universal Digital Input 6—W52—0.5OEM-1-P———
54Battery Backup—W6—0.85OEM-1-A———
55Ethernet Receive +————————
56Universal Digital Input 2—W20—0.5OEM-2-H———
57Peak Hold Injector 7—W34—0.5OEM-3-O———
58Half Bridge Output 5—W38—0.5OEM-2-M———
59Half Bridge Output 3—W36—0.5OEM-1-O———
6Analogue Voltage Input 3—W42—0.5OEM-2-C———
60Knock Input 2————————
61Ethernet Receive -————————
62Peak Hold Injector 8—W35—0.5OEM-1-E———
63Peak Hold Injector 3—W28—0.5OEM-1-I———
64Half Bridge Output 6—W39—0.5OEM-2-N———
65Half Bridge Output 4—W37—0.5OEM-1-Q———
66Peak Hold Injector 4—W29—0.5OEM-1-R———
7Analogue Voltage Input 4—W43—0.5OEM-3-J———
8Half Bridge Output 2—W33—0.5OEM-3-V———
9Half Bridge Output 1—W32—0.5OEM-1-U———

OEM-1

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
AConstant +12V—W6—0.85M170-A-54———
BECU power +14V (main relay)—W1—0.85SP-14V-1———
EMalfunction indicator lamp (MIL)—W35—0.5M170-A-62———
FBrake switch—W50—0.5M170-A-45———
GPower steering pressure switch—W51—0.5M170-A-52———
ICondenser fan relay—W28—0.5M170-A-63———
OAlternator control—W36—0.5M170-A-59———
PA/C request—W52—0.5M170-A-53———
QCharge lamp—W37—0.5M170-A-65———
RCooling fan relay—W29—0.5M170-A-66———
SA/C clutch relay—W30—0.5M170-A-24———
UFront O2 heater—W32—0.5M170-A-9———
VNeutral switch—W53—0.5M170-A-13———

OEM-2

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
AFuel tank pressure—W46—0.5M170-A-12———
BIntake air temperature (IAT)—W45—0.5M170-A-38———
CFront O2 signal—W42—0.5M170-A-6———
DVehicle speed—W49—0.5M170-A-46———
ECoolant temperature (ECT)—W44—0.5M170-A-28———
FKnock sensor—W21—0.5M170-A-29———
HCam position (CMP)—W20—0.5M170-A-56———
I+5V sensor supply—W18—0.5M170-A-16———
JCrank position (CKP)—W19—0.5M170-A-49———
KTachometer output————————
LMass air flow (MAF)—W40—0.5M170-A-26———
MEGR valve—W38—0.5M170-A-58———
NEGR valve—W39—0.5M170-A-64———
OEGR valve————————
PEGR valve————————

OEM-3

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
APower ground—W7—0.85SP-GND-1———
BPower ground—W8—0.85SP-GND-1———
CPower ground—W9—0.85SP-GND-1———
EThrottle position (TPS)—W41—0.5M170-A-18———
FSignal ground—W15—0.5SP-0V-1———
GIgnition 1 (coils 1+4, wasted spark)—W22—0.5M170-A-1———
HIgnition 2 (coils 2+3, wasted spark)—W23—0.5M170-A-5———
IClutch switch—W54—0.5M170-A-22———
JRear O2 signal—W43—0.5M170-A-7———
KFuel level—W47—0.5M170-A-36———
LEvap purge solenoid————————
MISC valve +14V feed—W2—0.85SP-14V-1———
NFuel pump relay—W31—0.5M170-A-42———
OISC valve low side—W34—0.5M170-A-57———
QVICS solenoid (intake butterflies)————————
SEGR boost sensor—W48—0.5M170-A-35———
TEGR boost solenoid————————
UCanister drain cut valve (CDCV)————————
VRear O2 heater—W33—0.5M170-A-8———
WInjector 1—W24—0.5M170-A-33———
XInjector 2—W25—0.5M170-A-43———
YInjector 3—W26—0.5M170-A-50———
ZInjector 4—W27—0.5M170-A-51———

SP-0V

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1——W15—0.5OEM-3-F———
1——W16—0.5M170-A-11———
1——W17—0.5M170-A-27———

SP-14V

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1——W1—0.85OEM-1-B———
1——W2—0.85OEM-3-M———
1——W3—0.85M170-A-23———
1——W4—0.85M170-A-32———
1——W5—0.85M170-A-41———

SP-GND

CavityFunctionSignalWireColourGauge (mm²)DestinationTerminalSealPlug
1——W7—0.85OEM-3-A———
1——W8—0.85OEM-3-B———
1——W9—0.85OEM-3-C———
1——W10—0.85M170-A-14———
1——W11—0.85M170-A-15———
1——W12—0.85M170-A-19———
1——W13—0.85M170-A-20———
1——W14—0.85M170-A-21———

Pin map

OEM pointOEM functionOEM familyTarget pointTarget functionTarget familyWire colourEvidence
OEM-1-AConstant +12Vpower_inM170-A-54Battery Backuppower_insingle_source
OEM-1-BECU power +14V (main relay)power_inM170-A-23 + M170-A-32 + M170-A-41Battery Positive + Battery Positive + Battery Positivepower_insingle_source
OEM-1-EMalfunction indicator lamp (MIL)low_side_outM170-A-62Peak Hold Injector 8injector_outsingle_source
OEM-1-FBrake switchdigital_inM170-A-45Universal Digital Input 4digital_insingle_source
OEM-1-GPower steering pressure switchdigital_inM170-A-52Universal Digital Input 5digital_insingle_source
OEM-1-ICondenser fan relaylow_side_outM170-A-63Peak Hold Injector 3injector_outsingle_source
OEM-1-OAlternator controllow_side_outM170-A-59Half Bridge Output 3hbridge_outsingle_source
OEM-1-PA/C requestdigital_inM170-A-53Universal Digital Input 6digital_insingle_source
OEM-1-QCharge lamplow_side_outM170-A-65Half Bridge Output 4hbridge_outsingle_source
OEM-1-RCooling fan relaylow_side_outM170-A-66Peak Hold Injector 4injector_outsingle_source
OEM-1-SA/C clutch relaylow_side_outM170-A-24Peak Hold Injector 5injector_outsingle_source
OEM-1-UFront O2 heaterlow_side_outM170-A-9Half Bridge Output 1hbridge_outsingle_source
OEM-1-VNeutral switchdigital_inM170-A-13Universal Digital Input 7digital_insingle_source
OEM-2-AFuel tank pressureanalog_inM170-A-12Analogue Voltage Input 5analog_insingle_source
OEM-2-BIntake air temperature (IAT)temp_inM170-A-38Analogue Temperature Input 2temp_insingle_source
OEM-2-CFront O2 signallambda_nb_inM170-A-6Analogue Voltage Input 3analog_insingle_source
OEM-2-DVehicle speeddigital_inM170-A-46Universal Digital Input 3digital_insingle_source
OEM-2-ECoolant temperature (ECT)temp_inM170-A-28Analogue Temperature Input 1temp_insingle_source
OEM-2-FKnock sensorknock_inM170-A-29Knock Input 1knock_insingle_source
OEM-2-HCam position (CMP)trigger_inM170-A-56Universal Digital Input 2digital_insingle_source
OEM-2-I+5V sensor supplyvrefM170-A-16Sensor 5.0V Avrefsingle_source
OEM-2-JCrank position (CKP)trigger_inM170-A-49Universal Digital Input 1digital_insingle_source
OEM-2-KTachometer outputtacho_out———single_source
OEM-2-LMass air flow (MAF)analog_inM170-A-26Analogue Voltage Input 1analog_insingle_source
OEM-2-MEGR valvelow_side_outM170-A-58Half Bridge Output 5hbridge_outsingle_source
OEM-2-NEGR valvelow_side_outM170-A-64Half Bridge Output 6hbridge_outsingle_source
OEM-2-OEGR valvelow_side_out———single_source
OEM-2-PEGR valvelow_side_out———single_source
OEM-3-APower groundgroundM170-A-14 + M170-A-15 + M170-A-19 + M170-A-20 + M170-A-21Battery Negative 1 + Battery Negative 2 + Battery Negative 3 + Battery Negative 4 + Battery Negative 5groundsingle_source
OEM-3-BPower groundgroundM170-A-14 + M170-A-15 + M170-A-19 + M170-A-20 + M170-A-21Battery Negative 1 + Battery Negative 2 + Battery Negative 3 + Battery Negative 4 + Battery Negative 5groundsingle_source
OEM-3-CPower groundgroundM170-A-14 + M170-A-15 + M170-A-19 + M170-A-20 + M170-A-21Battery Negative 1 + Battery Negative 2 + Battery Negative 3 + Battery Negative 4 + Battery Negative 5groundsingle_source
OEM-3-EThrottle position (TPS)analog_inM170-A-18Analogue Voltage Input 2analog_insingle_source
OEM-3-FSignal groundsensor_groundM170-A-11 + M170-A-27Sensor 0V A + Sensor 0V Bsensor_groundsingle_source
OEM-3-GIgnition 1 (coils 1+4, wasted spark)ignition_outM170-A-1Low Side Ignition 1ignition_outsingle_source
OEM-3-HIgnition 2 (coils 2+3, wasted spark)ignition_outM170-A-5Low Side Ignition 2ignition_outsingle_source
OEM-3-IClutch switchdigital_inM170-A-22Universal Digital Input 8digital_insingle_source
OEM-3-JRear O2 signallambda_nb_inM170-A-7Analogue Voltage Input 4analog_insingle_source
OEM-3-KFuel levelanalog_inM170-A-36Analogue Voltage Input 6analog_insingle_source
OEM-3-LEvap purge solenoidlow_side_out———single_source
OEM-3-MISC valve +14V feedpower_inM170-A-23 + M170-A-32 + M170-A-41Battery Positive + Battery Positive + Battery Positivepower_insingle_source
OEM-3-NFuel pump relaylow_side_outM170-A-42Peak Hold Injector 6injector_outsingle_source
OEM-3-OISC valve low sidelow_side_outM170-A-57Peak Hold Injector 7injector_outsingle_source
OEM-3-QVICS solenoid (intake butterflies)low_side_out———single_source
OEM-3-SEGR boost sensoranalog_inM170-A-35Analogue Voltage Input 7analog_insingle_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_outM170-A-8Half Bridge Output 2hbridge_outsingle_source
OEM-3-WInjector 1injector_outM170-A-33Peak Hold Injector 1injector_outsingle_source
OEM-3-XInjector 2injector_outM170-A-43Low Side Injector 1injector_outsingle_source
OEM-3-YInjector 3injector_outM170-A-50Peak Hold Injector 2injector_outsingle_source
OEM-3-ZInjector 4injector_outM170-A-51Low Side Injector 2injector_outsingle_source

Cut list

WireFromToGauge (mm²)ColourLengthSignalIdent
W1OEM-1-BSP-14V-10.85no routeECU power +14V (main relay)—
W2OEM-3-MSP-14V-10.85no routeISC valve +14V feed—
W3SP-14V-1M170-A-230.85no routeBattery Positive—
W4SP-14V-1M170-A-320.85no routeBattery Positive—
W5SP-14V-1M170-A-410.85no routeBattery Positive—
W6OEM-1-AM170-A-540.85no routeConstant +12V—
W7OEM-3-ASP-GND-10.85no routePower ground—
W8OEM-3-BSP-GND-10.85no routePower ground—
W9OEM-3-CSP-GND-10.85no routePower ground—
W10SP-GND-1M170-A-140.85no routeBattery Negative 1—
W11SP-GND-1M170-A-150.85no routeBattery Negative 2—
W12SP-GND-1M170-A-190.85no routeBattery Negative 3—
W13SP-GND-1M170-A-200.85no routeBattery Negative 4—
W14SP-GND-1M170-A-210.85no routeBattery Negative 5—
W15OEM-3-FSP-0V-10.5no routeSignal ground—
W16SP-0V-1M170-A-110.5no routeSensor 0V A—
W17SP-0V-1M170-A-270.5no routeSensor 0V B—
W18OEM-2-IM170-A-160.5no route+5V sensor supply—
W19OEM-2-JM170-A-490.5no routeCrank position (CKP)—
W20OEM-2-HM170-A-560.5no routeCam position (CMP)—
W21OEM-2-FM170-A-290.5no routeKnock sensor—
W22OEM-3-GM170-A-10.5no routeIgnition 1 (coils 1+4, wasted spark)—
W23OEM-3-HM170-A-50.5no routeIgnition 2 (coils 2+3, wasted spark)—
W24OEM-3-WM170-A-330.5no routeInjector 1—
W25OEM-3-XM170-A-430.5no routeInjector 2—
W26OEM-3-YM170-A-500.5no routeInjector 3—
W27OEM-3-ZM170-A-510.5no routeInjector 4—
W28OEM-1-IM170-A-630.5no routeCondenser fan relay—
W29OEM-1-RM170-A-660.5no routeCooling fan relay—
W30OEM-1-SM170-A-240.5no routeA/C clutch relay—
W31OEM-3-NM170-A-420.5no routeFuel pump relay—
W32OEM-1-UM170-A-90.5no routeFront O2 heater—
W33OEM-3-VM170-A-80.5no routeRear O2 heater—
W34OEM-3-OM170-A-570.5no routeISC valve low side—
W35OEM-1-EM170-A-620.5no routeMalfunction indicator lamp (MIL)—
W36OEM-1-OM170-A-590.5no routeAlternator control—
W37OEM-1-QM170-A-650.5no routeCharge lamp—
W38OEM-2-MM170-A-580.5no routeEGR valve—
W39OEM-2-NM170-A-640.5no routeEGR valve—
W40OEM-2-LM170-A-260.5no routeMass air flow (MAF)—
W41OEM-3-EM170-A-180.5no routeThrottle position (TPS)—
W42OEM-2-CM170-A-60.5no routeFront O2 signal—
W43OEM-3-JM170-A-70.5no routeRear O2 signal—
W44OEM-2-EM170-A-280.5no routeCoolant temperature (ECT)—
W45OEM-2-BM170-A-380.5no routeIntake air temperature (IAT)—
W46OEM-2-AM170-A-120.5no routeFuel tank pressure—
W47OEM-3-KM170-A-360.5no routeFuel level—
W48OEM-3-SM170-A-350.5no routeEGR boost sensor—
W49OEM-2-DM170-A-460.5no routeVehicle speed—
W50OEM-1-FM170-A-450.5no routeBrake switch—
W51OEM-1-GM170-A-520.5no routePower steering pressure switch—
W52OEM-1-PM170-A-530.5no routeA/C request—
W53OEM-1-VM170-A-130.5no routeNeutral switch—
W54OEM-3-IM170-A-220.5no routeClutch switch—

Bill of materials

CategoryPart numberManufacturerDescriptionQtyUnit

ECU setup sheet

RoleEngine refEngine signalSensorECU pointECU functionECU classSetup flag
No configured channels.

Findings

Open (15)

SeverityCodeSubjectMessage
warnNET_FAMILYOEM-1-O ↔ M170-A-59OEM-1-O "Alternator control" [low_side_out] is wired to M170-A-59 "Half Bridge Output 3" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-1-Q ↔ M170-A-65OEM-1-Q "Charge lamp" [low_side_out] is wired to M170-A-65 "Half Bridge Output 4" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-1-U ↔ M170-A-9OEM-1-U "Front O2 heater" [low_side_out] is wired to M170-A-9 "Half Bridge Output 1" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-2-H ↔ M170-A-56OEM-2-H "Cam position (CMP)" [trigger_in] is wired to M170-A-56 "Universal Digital Input 2" [digital_in]. Hall-type cam/speed signals can use a digital input if it handles the frequency; VR signals cannot.
warnNET_FAMILYOEM-2-J ↔ M170-A-49OEM-2-J "Crank position (CKP)" [trigger_in] is wired to M170-A-49 "Universal Digital Input 1" [digital_in]. Hall-type cam/speed signals can use a digital input if it handles the frequency; VR signals cannot.
warnNET_FAMILYOEM-2-M ↔ M170-A-58OEM-2-M "EGR valve" [low_side_out] is wired to M170-A-58 "Half Bridge Output 5" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-2-N ↔ M170-A-64OEM-2-N "EGR valve" [low_side_out] is wired to M170-A-64 "Half Bridge Output 6" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
warnNET_FAMILYOEM-3-V ↔ M170-A-8OEM-3-V "Rear O2 heater" [low_side_out] is wired to M170-A-8 "Half Bridge Output 2" [hbridge_out]. A half-bridge can act as a low-side switch only if configured that way.
infoNET_FAMILYOEM-1-E ↔ M170-A-62OEM-1-E "Malfunction indicator lamp (MIL)" [low_side_out] is wired to M170-A-62 "Peak Hold Injector 8" [injector_out]. Injector drivers can usually run general low-side loads; check current and PWM frequency.
infoNET_FAMILYOEM-1-I ↔ M170-A-63OEM-1-I "Condenser fan relay" [low_side_out] is wired to M170-A-63 "Peak Hold Injector 3" [injector_out]. Injector drivers can usually run general low-side loads; check current and PWM frequency.
infoNET_FAMILYOEM-1-R ↔ M170-A-66OEM-1-R "Cooling fan relay" [low_side_out] is wired to M170-A-66 "Peak Hold Injector 4" [injector_out]. Injector drivers can usually run general low-side loads; check current and PWM frequency.
infoNET_FAMILYOEM-1-S ↔ M170-A-24OEM-1-S "A/C clutch relay" [low_side_out] is wired to M170-A-24 "Peak Hold Injector 5" [injector_out]. Injector drivers can usually run general low-side loads; check current and PWM frequency.
infoNET_FAMILYOEM-3-N ↔ M170-A-42OEM-3-N "Fuel pump relay" [low_side_out] is wired to M170-A-42 "Peak Hold Injector 6" [injector_out]. Injector drivers can usually run general low-side loads; check current and PWM frequency.
infoNET_FAMILYOEM-3-O ↔ M170-A-57OEM-3-O "ISC valve low side" [low_side_out] is wired to M170-A-57 "Peak Hold Injector 7" [injector_out]. Injector drivers can usually run general low-side loads; check current and PWM frequency.
infoUNMAPPEDOEM7 optional OEM pins are not mapped: OEM-2-K Tachometer output; OEM-2-O EGR valve; OEM-2-P EGR valve; OEM-3-L Evap purge solenoid; OEM-3-Q VICS solenoid (intake butterflies); OEM-3-T EGR boost solenoid; OEM-3-U Canister drain cut valve (CDCV)

Accepted (0)

CodeSubjectReasonBy

Notes

Auto-mapped by auto_map() from the library pin data on 2026-10-04. Review every wire against both manuals before building. Not wired: - OEM-2 O: EGR valve: no free low_side/ls_hs/injector/hbridge on MoTeC M170 - OEM-2 P: EGR valve: no free low_side/ls_hs/injector/hbridge on MoTeC M170 - OEM-3 L: Evap purge solenoid: no free low_side/ls_hs/injector/hbridge on MoTeC M170 - OEM-3 Q: VICS solenoid (intake butterflies): no free low_side/ls_hs/injector/hbridge on MoTeC M170 - OEM-3 T: EGR boost solenoid: no free low_side/ls_hs/injector/hbridge on MoTeC M170 - OEM-3 U: Canister drain cut valve (CDCV): no free low_side/ls_hs/injector/hbridge on MoTeC M170 - OEM-2 K: Tachometer output: no free tacho/frequency_out/low_side/ls_hs on MoTeC M170

Sources

ReliabilityKindTitleURL
4vendor_docLink G4X MX5NB1X install manual (NB1 1999-00)https://linkecu.com/documentation/MX5XNB1.pdf
4vendor_docMoTeC: M1 ECU Hardware manual (7 Nov 2013) — M130/M150/M170/M190 pinout tableshttps://web.archive.org/web/2023id_/https://www.motec.com.au/hessian/uploads/M1_ECU_Hardware_c2517380e4.pdf