MX-5 Miata NA8 1996-97 (BP-ZE, 1.8, OBD-II) → MoTeC M170 13170 (auto)
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.
| Status | draft · not yet verified: nobody has reported building and running this harness |
|---|---|
| Open errors | none |
| Size of the job | 49 wires · 7 connectors · 0 part lines |
| Tools | Crimp and extraction tools for each terminal family (see Connectors) · wire strippers · multimeter · heat gun + heat-shrink |
| Order of work | 1. 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 Ω.
| Wire | From | To | Gauge | Colour | Cut | Label | Crimp A | Crimp B | Pin A | Pin B | Continuity |
|---|---|---|---|---|---|---|---|---|---|---|---|
| W1 | OEM-4-B | SP-14V-1 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W2 | SP-14V-1 | M170-A-23 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W3 | SP-14V-1 | M170-A-32 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W4 | SP-14V-1 | M170-A-41 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W5 | OEM-4-I | M170-A-54 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W6 | OEM-4-A | SP-GND-1 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W7 | OEM-4-C | SP-GND-1 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W8 | OEM-4-D | SP-GND-1 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W9 | OEM-4-K | SP-GND-1 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W10 | SP-GND-1 | M170-A-14 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W11 | SP-GND-1 | M170-A-15 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W12 | SP-GND-1 | M170-A-19 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W13 | SP-GND-1 | M170-A-20 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W14 | SP-GND-1 | M170-A-21 | 0.85 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W15 | OEM-3-O | SP-0V-1 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W16 | OEM-4-H | SP-0V-1 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W17 | SP-0V-1 | M170-A-11 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W18 | SP-0V-1 | M170-A-27 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W19 | OEM-3-I | M170-A-16 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W20 | OEM-4-E | M170-A-49 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W21 | OEM-4-G | M170-A-56 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W22 | OEM-4-F | M170-A-46 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W23 | OEM-4-N | M170-A-1 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W24 | OEM-4-R | M170-A-5 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W25 | OEM-4-U | M170-A-33 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W26 | OEM-4-V | M170-A-43 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W27 | OEM-4-W | M170-A-50 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W28 | OEM-4-X | M170-A-51 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W29 | OEM-3-B | M170-A-26 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W30 | OEM-3-F | M170-A-18 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W31 | OEM-3-G | M170-A-28 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W32 | OEM-1-A | M170-A-63 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W33 | OEM-1-B | M170-A-66 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W34 | OEM-1-G | M170-A-24 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W35 | OEM-1-U | M170-A-42 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W36 | OEM-3-M | M170-A-57 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W37 | OEM-1-E | M170-A-62 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W38 | OEM-3-H | M170-A-6 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W39 | OEM-3-N | M170-A-7 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W40 | OEM-3-C | M170-A-12 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W41 | OEM-3-D | M170-A-36 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W42 | OEM-3-K | M170-A-38 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W43 | OEM-3-J | M170-A-35 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W44 | OEM-1-M | M170-A-45 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W45 | OEM-1-C | M170-A-52 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W46 | OEM-1-K | M170-A-53 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W47 | OEM-1-L | M170-A-13 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W48 | OEM-1-Q | M170-A-22 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | |
| W49 | OEM-3-L | M170-A-44 | 0.5 | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ |
Bench test (before first power-up)
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 A | Probe B | Expect | Why | Reading |
|---|---|---|---|---|---|
| 1 | M170-A-16 | M170-A-11 | open (OL) | 5 V sensor reference must not touch sensor ground | |
| 2 | M170-A-16 | M170-A-14 | open (OL) | 5 V sensor reference must not touch power ground | |
| 3 | M170-A-11 | M170-A-23 | open (OL) | sensor ground must not touch +12 V supply | |
| 4 | M170-A-11 | M170-A-54 | open (OL) | sensor ground must not touch +12 V supply | |
| 5 | M170-A-14 | M170-A-23 | open (OL) | power ground must not touch +12 V supply | |
| 6 | M170-A-14 | M170-A-54 | open (OL) | power ground must not touch +12 V supply | |
| 7 | M170-A-16 | M170-A-23 | open (OL) | 5 V sensor reference must not touch +12 V supply | |
| 8 | M170-A-16 | M170-A-54 | open (OL) | 5 V sensor reference must not touch +12 V supply |
If any reading doesn't match, stop and get help before powering up.
Revisions
| Rev | Label | By | Date |
|---|---|---|---|
| No revisions yet. | |||
Schematic
Connectors
M170-A
| Cavity | Function | Signal | Wire | Colour | Gauge (mm²) | Destination | Terminal | Seal | Plug |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Low Side Ignition 1 | — | W23 | — | 0.5 | OEM-4-N | — | — | — |
| 10 | Low Side Ignition 4 | — | — | — | — | — | — | — | — |
| 11 | Sensor 0V A | — | W17 | — | 0.5 | SP-0V-1 | — | — | — |
| 12 | Analogue Voltage Input 5 | — | W40 | — | 0.5 | OEM-3-C | — | — | — |
| 13 | Universal Digital Input 7 | — | W47 | — | 0.5 | OEM-1-L | — | — | — |
| 14 | Battery Negative 1 | — | W10 | — | 0.85 | SP-GND-1 | — | — | — |
| 15 | Battery Negative 2 | — | W11 | — | 0.85 | SP-GND-1 | — | — | — |
| 16 | Sensor 5.0V A | — | W19 | — | 0.5 | OEM-3-I | — | — | — |
| 17 | Low Side Ignition 5 | — | — | — | — | — | — | — | — |
| 18 | Analogue Voltage Input 2 | — | W30 | — | 0.5 | OEM-3-F | — | — | — |
| 19 | Battery Negative 3 | — | W12 | — | 0.85 | SP-GND-1 | — | — | — |
| 2 | Low Side Ignition 8 | — | — | — | — | — | — | — | — |
| 20 | Battery Negative 4 | — | W13 | — | 0.85 | SP-GND-1 | — | — | — |
| 21 | Battery Negative 5 | — | W14 | — | 0.85 | SP-GND-1 | — | — | — |
| 22 | Universal Digital Input 8 | — | W48 | — | 0.5 | OEM-1-Q | — | — | — |
| 23 | Battery Positive | — | W2 | — | 0.85 | SP-14V-1 | — | — | — |
| 24 | Peak Hold Injector 5 | — | W34 | — | 0.5 | OEM-1-G | — | — | — |
| 25 | Low Side Ignition 6 | — | — | — | — | — | — | — | — |
| 26 | Analogue Voltage Input 1 | — | W29 | — | 0.5 | OEM-3-B | — | — | — |
| 27 | Sensor 0V B | — | W18 | — | 0.5 | SP-0V-1 | — | — | — |
| 28 | Analogue Temperature Input 1 | — | W31 | — | 0.5 | OEM-3-G | — | — | — |
| 29 | Knock Input 1 | — | — | — | — | — | — | — | — |
| 3 | Low Side Ignition 7 | — | — | — | — | — | — | — | — |
| 30 | Analogue Temperature Input 3 | — | — | — | — | — | — | — | — |
| 31 | CAN Bus 1 Low | — | — | — | — | — | — | — | — |
| 32 | Battery Positive | — | W3 | — | 0.85 | SP-14V-1 | — | — | — |
| 33 | Peak Hold Injector 1 | — | W25 | — | 0.5 | OEM-4-U | — | — | — |
| 34 | Sensor 5.0V B | — | — | — | — | — | — | — | — |
| 35 | Analogue Voltage Input 7 | — | W43 | — | 0.5 | OEM-3-J | — | — | — |
| 36 | Analogue Voltage Input 6 | — | W41 | — | 0.5 | OEM-3-D | — | — | — |
| 37 | Sensor 6.3V | — | — | — | — | — | — | — | — |
| 38 | Analogue Temperature Input 2 | — | W42 | — | 0.5 | OEM-3-K | — | — | — |
| 39 | Analogue Temperature Input 4 | — | — | — | — | — | — | — | — |
| 4 | Low Side Ignition 3 | — | — | — | — | — | — | — | — |
| 40 | CAN Bus 1 High | — | — | — | — | — | — | — | — |
| 41 | Battery Positive | — | W4 | — | 0.85 | SP-14V-1 | — | — | — |
| 42 | Peak Hold Injector 6 | — | W35 | — | 0.5 | OEM-1-U | — | — | — |
| 43 | Low Side Injector 1 | — | W26 | — | 0.5 | OEM-4-V | — | — | — |
| 44 | Analogue Voltage Input 8 | — | W49 | — | 0.5 | OEM-3-L | — | — | — |
| 45 | Universal Digital Input 4 | — | W44 | — | 0.5 | OEM-1-M | — | — | — |
| 46 | Universal Digital Input 3 | — | W22 | — | 0.5 | OEM-4-F | — | — | — |
| 47 | Ethernet Transmit - | — | — | — | — | — | — | — | — |
| 48 | Ethernet Transmit + | — | — | — | — | — | — | — | — |
| 49 | Universal Digital Input 1 | — | W20 | — | 0.5 | OEM-4-E | — | — | — |
| 5 | Low Side Ignition 2 | — | W24 | — | 0.5 | OEM-4-R | — | — | — |
| 50 | Peak Hold Injector 2 | — | W27 | — | 0.5 | OEM-4-W | — | — | — |
| 51 | Low Side Injector 2 | — | W28 | — | 0.5 | OEM-4-X | — | — | — |
| 52 | Universal Digital Input 5 | — | W45 | — | 0.5 | OEM-1-C | — | — | — |
| 53 | Universal Digital Input 6 | — | W46 | — | 0.5 | OEM-1-K | — | — | — |
| 54 | Battery Backup | — | W5 | — | 0.85 | OEM-4-I | — | — | — |
| 55 | Ethernet Receive + | — | — | — | — | — | — | — | — |
| 56 | Universal Digital Input 2 | — | W21 | — | 0.5 | OEM-4-G | — | — | — |
| 57 | Peak Hold Injector 7 | — | W36 | — | 0.5 | OEM-3-M | — | — | — |
| 58 | Half Bridge Output 5 | — | — | — | — | — | — | — | — |
| 59 | Half Bridge Output 3 | — | — | — | — | — | — | — | — |
| 6 | Analogue Voltage Input 3 | — | W38 | — | 0.5 | OEM-3-H | — | — | — |
| 60 | Knock Input 2 | — | — | — | — | — | — | — | — |
| 61 | Ethernet Receive - | — | — | — | — | — | — | — | — |
| 62 | Peak Hold Injector 8 | — | W37 | — | 0.5 | OEM-1-E | — | — | — |
| 63 | Peak Hold Injector 3 | — | W32 | — | 0.5 | OEM-1-A | — | — | — |
| 64 | Half Bridge Output 6 | — | — | — | — | — | — | — | — |
| 65 | Half Bridge Output 4 | — | — | — | — | — | — | — | — |
| 66 | Peak Hold Injector 4 | — | W33 | — | 0.5 | OEM-1-B | — | — | — |
| 7 | Analogue Voltage Input 4 | — | W39 | — | 0.5 | OEM-3-N | — | — | — |
| 8 | Half Bridge Output 2 | — | — | — | — | — | — | — | — |
| 9 | Half Bridge Output 1 | — | — | — | — | — | — | — | — |
OEM-1
| Cavity | Function | Signal | Wire | Colour | Gauge (mm²) | Destination | Terminal | Seal | Plug |
|---|---|---|---|---|---|---|---|---|---|
| A | Cooling fan relay (low-side) | — | W32 | — | 0.5 | M170-A-63 | — | — | — |
| B | A/C condenser fan relay | — | W33 | — | 0.5 | M170-A-66 | — | — | — |
| C | Starter input (12V while cranking) | — | W45 | — | 0.5 | M170-A-52 | — | — | — |
| E | Check engine light (MIL) | — | W37 | — | 0.5 | M170-A-62 | — | — | — |
| G | A/C clutch relay | — | W34 | — | 0.5 | M170-A-24 | — | — | — |
| K | A/C pressure switch (A/C request) | — | W46 | — | 0.5 | M170-A-53 | — | — | — |
| L | Clutch switch | — | W47 | — | 0.5 | M170-A-13 | — | — | — |
| M | Vehicle speed sensor (VSS) | — | W44 | — | 0.5 | M170-A-45 | — | — | — |
| Q | Brake switch | — | W48 | — | 0.5 | M170-A-22 | — | — | — |
| U | Fuel pump relay (low-side) | — | W35 | — | 0.5 | M170-A-42 | — | — | — |
OEM-3
| Cavity | Function | Signal | Wire | Colour | Gauge (mm²) | Destination | Terminal | Seal | Plug |
|---|---|---|---|---|---|---|---|---|---|
| B | MAF sensor input | — | W29 | — | 0.5 | M170-A-26 | — | — | — |
| C | Front O2 sensor input | — | W40 | — | 0.5 | M170-A-12 | — | — | — |
| D | Rear O2 sensor input | — | W41 | — | 0.5 | M170-A-36 | — | — | — |
| F | Throttle position (TPS) | — | W30 | — | 0.5 | M170-A-18 | — | — | — |
| G | Engine coolant temp (CLT) | — | W31 | — | 0.5 | M170-A-28 | — | — | — |
| H | EGR boost sensor | — | W38 | — | 0.5 | M170-A-6 | — | — | — |
| I | +5V sensor reference | — | W19 | — | 0.5 | M170-A-16 | — | — | — |
| J | EGR valve position sensor | — | W43 | — | 0.5 | M170-A-35 | — | — | — |
| K | Intake air temp (IAT) | — | W42 | — | 0.5 | M170-A-38 | — | — | — |
| L | Idle switch (closed throttle) | — | W49 | — | 0.5 | M170-A-44 | — | — | — |
| M | Front O2 heater control | — | W36 | — | 0.5 | M170-A-57 | — | — | — |
| N | EGR boost sensor (2nd channel) | — | W39 | — | 0.5 | M170-A-7 | — | — | — |
| O | Sensor ground | — | W15 | — | 0.5 | SP-0V-1 | — | — | — |
| P | Power steering pressure switch | — | — | — | — | — | — | — | — |
OEM-4
| Cavity | Function | Signal | Wire | Colour | Gauge (mm²) | Destination | Terminal | Seal | Plug |
|---|---|---|---|---|---|---|---|---|---|
| A | Chassis ground | — | W6 | — | 0.85 | SP-GND-1 | — | — | — |
| B | ECU power +12V (main relay) | — | W1 | — | 0.85 | SP-14V-1 | — | — | — |
| C | Chassis ground | — | W7 | — | 0.85 | SP-GND-1 | — | — | — |
| D | Chassis ground | — | W8 | — | 0.85 | SP-GND-1 | — | — | — |
| E | Crank position (CKP) sensor | — | W20 | — | 0.5 | M170-A-49 | — | — | — |
| F | CAS SGT (cam trigger) | — | W22 | — | 0.5 | M170-A-46 | — | — | — |
| G | CAS SGC (cam sync) | — | W21 | — | 0.5 | M170-A-56 | — | — | — |
| H | Crank pickup timing ground (CKP gnd) | — | W16 | — | 0.5 | SP-0V-1 | — | — | — |
| I | Permanent +12V (battery) | — | W5 | — | 0.85 | M170-A-54 | — | — | — |
| J | PRC solenoid (FPR control) | — | — | — | — | — | — | — | — |
| K | Chassis ground | — | W9 | — | 0.85 | SP-GND-1 | — | — | — |
| L | Tachometer output | — | — | — | — | — | — | — | — |
| N | Ignition coil trigger (cyl 1&4) | — | W23 | — | 0.5 | M170-A-1 | — | — | — |
| O | EGR vent solenoid | — | — | — | — | — | — | — | — |
| P | EGR vacuum solenoid | — | — | — | — | — | — | — | — |
| Q | Idle air control (IAC) valve | — | — | — | — | — | — | — | — |
| R | Ignition coil trigger (cyl 2&3) | — | W24 | — | 0.5 | M170-A-5 | — | — | — |
| T | EVAP purge solenoid | — | — | — | — | — | — | — | — |
| U | Injector 1 (cyl 1) | — | W25 | — | 0.5 | M170-A-33 | — | — | — |
| V | Injector 2 (cyl 2) | — | W26 | — | 0.5 | M170-A-43 | — | — | — |
| W | Injector 3 (cyl 3) | — | W27 | — | 0.5 | M170-A-50 | — | — | — |
| X | Injector 4 (cyl 4) | — | W28 | — | 0.5 | M170-A-51 | — | — | — |
SP-0V
| Cavity | Function | Signal | Wire | Colour | Gauge (mm²) | Destination | Terminal | Seal | Plug |
|---|---|---|---|---|---|---|---|---|---|
| 1 | — | — | W15 | — | 0.5 | OEM-3-O | — | — | — |
| 1 | — | — | W16 | — | 0.5 | OEM-4-H | — | — | — |
| 1 | — | — | W17 | — | 0.5 | M170-A-11 | — | — | — |
| 1 | — | — | W18 | — | 0.5 | M170-A-27 | — | — | — |
SP-14V
| Cavity | Function | Signal | Wire | Colour | Gauge (mm²) | Destination | Terminal | Seal | Plug |
|---|---|---|---|---|---|---|---|---|---|
| 1 | — | — | W1 | — | 0.85 | OEM-4-B | — | — | — |
| 1 | — | — | W2 | — | 0.85 | M170-A-23 | — | — | — |
| 1 | — | — | W3 | — | 0.85 | M170-A-32 | — | — | — |
| 1 | — | — | W4 | — | 0.85 | M170-A-41 | — | — | — |
SP-GND
| Cavity | Function | Signal | Wire | Colour | Gauge (mm²) | Destination | Terminal | Seal | Plug |
|---|---|---|---|---|---|---|---|---|---|
| 1 | — | — | W6 | — | 0.85 | OEM-4-A | — | — | — |
| 1 | — | — | W7 | — | 0.85 | OEM-4-C | — | — | — |
| 1 | — | — | W8 | — | 0.85 | OEM-4-D | — | — | — |
| 1 | — | — | W9 | — | 0.85 | OEM-4-K | — | — | — |
| 1 | — | — | W10 | — | 0.85 | M170-A-14 | — | — | — |
| 1 | — | — | W11 | — | 0.85 | M170-A-15 | — | — | — |
| 1 | — | — | W12 | — | 0.85 | M170-A-19 | — | — | — |
| 1 | — | — | W13 | — | 0.85 | M170-A-20 | — | — | — |
| 1 | — | — | W14 | — | 0.85 | M170-A-21 | — | — | — |
Pin map
| OEM point | OEM function | OEM family | Target point | Target function | Target family | Wire colour | Evidence |
|---|---|---|---|---|---|---|---|
| OEM-1-A | Cooling fan relay (low-side) | low_side_out | M170-A-63 | Peak Hold Injector 3 | injector_out | corroborated | |
| OEM-1-B | A/C condenser fan relay | low_side_out | M170-A-66 | Peak Hold Injector 4 | injector_out | corroborated | |
| OEM-1-C | Starter input (12V while cranking) | digital_in | M170-A-52 | Universal Digital Input 5 | digital_in | corroborated | |
| OEM-1-E | Check engine light (MIL) | low_side_out | M170-A-62 | Peak Hold Injector 8 | injector_out | corroborated | |
| OEM-1-G | A/C clutch relay | low_side_out | M170-A-24 | Peak Hold Injector 5 | injector_out | corroborated | |
| OEM-1-K | A/C pressure switch (A/C request) | digital_in | M170-A-53 | Universal Digital Input 6 | digital_in | corroborated | |
| OEM-1-L | Clutch switch | digital_in | M170-A-13 | Universal Digital Input 7 | digital_in | corroborated | |
| OEM-1-M | Vehicle speed sensor (VSS) | digital_in | M170-A-45 | Universal Digital Input 4 | digital_in | corroborated | |
| OEM-1-Q | Brake switch | digital_in | M170-A-22 | Universal Digital Input 8 | digital_in | corroborated | |
| OEM-1-U | Fuel pump relay (low-side) | low_side_out | M170-A-42 | Peak Hold Injector 6 | injector_out | corroborated | |
| OEM-3-B | MAF sensor input | analog_in | M170-A-26 | Analogue Voltage Input 1 | analog_in | corroborated | |
| OEM-3-C | Front O2 sensor input | lambda_nb_in | M170-A-12 | Analogue Voltage Input 5 | analog_in | corroborated | |
| OEM-3-D | Rear O2 sensor input | lambda_nb_in | M170-A-36 | Analogue Voltage Input 6 | analog_in | corroborated | |
| OEM-3-F | Throttle position (TPS) | analog_in | M170-A-18 | Analogue Voltage Input 2 | analog_in | corroborated | |
| OEM-3-G | Engine coolant temp (CLT) | temp_in | M170-A-28 | Analogue Temperature Input 1 | temp_in | corroborated | |
| OEM-3-H | EGR boost sensor | analog_in | M170-A-6 | Analogue Voltage Input 3 | analog_in | corroborated | |
| OEM-3-I | +5V sensor reference | vref | M170-A-16 | Sensor 5.0V A | vref | corroborated | |
| OEM-3-J | EGR valve position sensor | analog_in | M170-A-35 | Analogue Voltage Input 7 | analog_in | corroborated | |
| OEM-3-K | Intake air temp (IAT) | temp_in | M170-A-38 | Analogue Temperature Input 2 | temp_in | corroborated | |
| OEM-3-L | Idle switch (closed throttle) | digital_in | M170-A-44 | Analogue Voltage Input 8 | analog_in | corroborated | |
| OEM-3-M | Front O2 heater control | low_side_out | M170-A-57 | Peak Hold Injector 7 | injector_out | corroborated | |
| OEM-3-N | EGR boost sensor (2nd channel) | analog_in | M170-A-7 | Analogue Voltage Input 4 | analog_in | corroborated | |
| OEM-3-O | Sensor ground | sensor_ground | M170-A-11 + M170-A-27 | Sensor 0V A + Sensor 0V B | sensor_ground | corroborated | |
| OEM-3-P | Power steering pressure switch | digital_in | — | — | — | corroborated | |
| OEM-4-A | Chassis ground | ground | M170-A-14 + M170-A-15 + M170-A-19 + M170-A-20 + M170-A-21 | Battery Negative 1 + Battery Negative 2 + Battery Negative 3 + Battery Negative 4 + Battery Negative 5 | ground | corroborated | |
| OEM-4-B | ECU power +12V (main relay) | power_in | M170-A-23 + M170-A-32 + M170-A-41 | Battery Positive + Battery Positive + Battery Positive | power_in | corroborated | |
| OEM-4-C | Chassis ground | ground | M170-A-14 + M170-A-15 + M170-A-19 + M170-A-20 + M170-A-21 | Battery Negative 1 + Battery Negative 2 + Battery Negative 3 + Battery Negative 4 + Battery Negative 5 | ground | corroborated | |
| OEM-4-D | Chassis ground | ground | M170-A-14 + M170-A-15 + M170-A-19 + M170-A-20 + M170-A-21 | Battery Negative 1 + Battery Negative 2 + Battery Negative 3 + Battery Negative 4 + Battery Negative 5 | ground | corroborated | |
| OEM-4-E | Crank position (CKP) sensor | trigger_in | M170-A-49 | Universal Digital Input 1 | digital_in | corroborated | |
| OEM-4-F | CAS SGT (cam trigger) | trigger_in | M170-A-46 | Universal Digital Input 3 | digital_in | corroborated | |
| OEM-4-G | CAS SGC (cam sync) | trigger_in | M170-A-56 | Universal Digital Input 2 | digital_in | corroborated | |
| OEM-4-H | Crank pickup timing ground (CKP gnd) | sensor_ground | M170-A-11 + M170-A-27 | Sensor 0V A + Sensor 0V B | sensor_ground | corroborated | |
| OEM-4-I | Permanent +12V (battery) | power_in | M170-A-54 | Battery Backup | power_in | corroborated | |
| OEM-4-J | PRC solenoid (FPR control) | low_side_out | — | — | — | corroborated | |
| OEM-4-K | Chassis ground | ground | M170-A-14 + M170-A-15 + M170-A-19 + M170-A-20 + M170-A-21 | Battery Negative 1 + Battery Negative 2 + Battery Negative 3 + Battery Negative 4 + Battery Negative 5 | ground | corroborated | |
| OEM-4-L | Tachometer output | tacho_out | — | — | — | corroborated | |
| OEM-4-N | Ignition coil trigger (cyl 1&4) | ignition_out | M170-A-1 | Low Side Ignition 1 | ignition_out | corroborated | |
| OEM-4-O | EGR vent solenoid | low_side_out | — | — | — | corroborated | |
| OEM-4-P | EGR vacuum solenoid | low_side_out | — | — | — | corroborated | |
| OEM-4-Q | Idle air control (IAC) valve | low_side_out | — | — | — | corroborated | |
| OEM-4-R | Ignition coil trigger (cyl 2&3) | ignition_out | M170-A-5 | Low Side Ignition 2 | ignition_out | corroborated | |
| OEM-4-T | EVAP purge solenoid | low_side_out | — | — | — | corroborated | |
| OEM-4-U | Injector 1 (cyl 1) | injector_out | M170-A-33 | Peak Hold Injector 1 | injector_out | corroborated | |
| OEM-4-V | Injector 2 (cyl 2) | injector_out | M170-A-43 | Low Side Injector 1 | injector_out | corroborated | |
| OEM-4-W | Injector 3 (cyl 3) | injector_out | M170-A-50 | Peak Hold Injector 2 | injector_out | corroborated | |
| OEM-4-X | Injector 4 (cyl 4) | injector_out | M170-A-51 | Low Side Injector 2 | injector_out | corroborated |
Cut list
| Wire | From | To | Gauge (mm²) | Colour | Length | Signal | Ident |
|---|---|---|---|---|---|---|---|
| W1 | OEM-4-B | SP-14V-1 | 0.85 | no route | ECU power +12V (main relay) | — | |
| W2 | SP-14V-1 | M170-A-23 | 0.85 | no route | Battery Positive | — | |
| W3 | SP-14V-1 | M170-A-32 | 0.85 | no route | Battery Positive | — | |
| W4 | SP-14V-1 | M170-A-41 | 0.85 | no route | Battery Positive | — | |
| W5 | OEM-4-I | M170-A-54 | 0.85 | no route | Permanent +12V (battery) | — | |
| W6 | OEM-4-A | SP-GND-1 | 0.85 | no route | Chassis ground | — | |
| W7 | OEM-4-C | SP-GND-1 | 0.85 | no route | Chassis ground | — | |
| W8 | OEM-4-D | SP-GND-1 | 0.85 | no route | Chassis ground | — | |
| W9 | OEM-4-K | SP-GND-1 | 0.85 | no route | Chassis ground | — | |
| W10 | SP-GND-1 | M170-A-14 | 0.85 | no route | Battery Negative 1 | — | |
| W11 | SP-GND-1 | M170-A-15 | 0.85 | no route | Battery Negative 2 | — | |
| W12 | SP-GND-1 | M170-A-19 | 0.85 | no route | Battery Negative 3 | — | |
| W13 | SP-GND-1 | M170-A-20 | 0.85 | no route | Battery Negative 4 | — | |
| W14 | SP-GND-1 | M170-A-21 | 0.85 | no route | Battery Negative 5 | — | |
| W15 | OEM-3-O | SP-0V-1 | 0.5 | no route | Sensor ground | — | |
| W16 | OEM-4-H | SP-0V-1 | 0.5 | no route | Crank pickup timing ground (CKP gnd) | — | |
| W17 | SP-0V-1 | M170-A-11 | 0.5 | no route | Sensor 0V A | — | |
| W18 | SP-0V-1 | M170-A-27 | 0.5 | no route | Sensor 0V B | — | |
| W19 | OEM-3-I | M170-A-16 | 0.5 | no route | +5V sensor reference | — | |
| W20 | OEM-4-E | M170-A-49 | 0.5 | no route | Crank position (CKP) sensor | — | |
| W21 | OEM-4-G | M170-A-56 | 0.5 | no route | CAS SGC (cam sync) | — | |
| W22 | OEM-4-F | M170-A-46 | 0.5 | no route | CAS SGT (cam trigger) | — | |
| W23 | OEM-4-N | M170-A-1 | 0.5 | no route | Ignition coil trigger (cyl 1&4) | — | |
| W24 | OEM-4-R | M170-A-5 | 0.5 | no route | Ignition coil trigger (cyl 2&3) | — | |
| W25 | OEM-4-U | M170-A-33 | 0.5 | no route | Injector 1 (cyl 1) | — | |
| W26 | OEM-4-V | M170-A-43 | 0.5 | no route | Injector 2 (cyl 2) | — | |
| W27 | OEM-4-W | M170-A-50 | 0.5 | no route | Injector 3 (cyl 3) | — | |
| W28 | OEM-4-X | M170-A-51 | 0.5 | no route | Injector 4 (cyl 4) | — | |
| W29 | OEM-3-B | M170-A-26 | 0.5 | no route | MAF sensor input | — | |
| W30 | OEM-3-F | M170-A-18 | 0.5 | no route | Throttle position (TPS) | — | |
| W31 | OEM-3-G | M170-A-28 | 0.5 | no route | Engine coolant temp (CLT) | — | |
| W32 | OEM-1-A | M170-A-63 | 0.5 | no route | Cooling fan relay (low-side) | — | |
| W33 | OEM-1-B | M170-A-66 | 0.5 | no route | A/C condenser fan relay | — | |
| W34 | OEM-1-G | M170-A-24 | 0.5 | no route | A/C clutch relay | — | |
| W35 | OEM-1-U | M170-A-42 | 0.5 | no route | Fuel pump relay (low-side) | — | |
| W36 | OEM-3-M | M170-A-57 | 0.5 | no route | Front O2 heater control | — | |
| W37 | OEM-1-E | M170-A-62 | 0.5 | no route | Check engine light (MIL) | — | |
| W38 | OEM-3-H | M170-A-6 | 0.5 | no route | EGR boost sensor | — | |
| W39 | OEM-3-N | M170-A-7 | 0.5 | no route | EGR boost sensor (2nd channel) | — | |
| W40 | OEM-3-C | M170-A-12 | 0.5 | no route | Front O2 sensor input | — | |
| W41 | OEM-3-D | M170-A-36 | 0.5 | no route | Rear O2 sensor input | — | |
| W42 | OEM-3-K | M170-A-38 | 0.5 | no route | Intake air temp (IAT) | — | |
| W43 | OEM-3-J | M170-A-35 | 0.5 | no route | EGR valve position sensor | — | |
| W44 | OEM-1-M | M170-A-45 | 0.5 | no route | Vehicle speed sensor (VSS) | — | |
| W45 | OEM-1-C | M170-A-52 | 0.5 | no route | Starter input (12V while cranking) | — | |
| W46 | OEM-1-K | M170-A-53 | 0.5 | no route | A/C pressure switch (A/C request) | — | |
| W47 | OEM-1-L | M170-A-13 | 0.5 | no route | Clutch switch | — | |
| W48 | OEM-1-Q | M170-A-22 | 0.5 | no route | Brake switch | — | |
| W49 | OEM-3-L | M170-A-44 | 0.5 | no route | Idle switch (closed throttle) | — |
Bill of materials
| Category | Part number | Manufacturer | Description | Qty | Unit |
|---|
ECU setup sheet
| Role | Engine ref | Engine signal | Sensor | ECU point | ECU function | ECU class | Setup flag |
|---|---|---|---|---|---|---|---|
| No configured channels. | |||||||
Findings
Open (11)
| Severity | Code | Subject | Message |
|---|---|---|---|
| warn | NET_FAMILY | OEM-3-L ↔ M170-A-44 | OEM-3-L "Idle switch (closed throttle)" [digital_in] is wired to M170-A-44 "Analogue Voltage Input 8" [analog_in]. Analog and digital on one net. A switch on an analog input works with a pull-up and a threshold; an analog sensor on a digital input loses its value. |
| warn | NET_FAMILY | OEM-4-E ↔ M170-A-49 | OEM-4-E "Crank position (CKP) sensor" [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. |
| warn | NET_FAMILY | OEM-4-F ↔ M170-A-46 | OEM-4-F "CAS SGT (cam trigger)" [trigger_in] is wired to M170-A-46 "Universal Digital Input 3" [digital_in]. Hall-type cam/speed signals can use a digital input if it handles the frequency; VR signals cannot. |
| warn | NET_FAMILY | OEM-4-G ↔ M170-A-56 | OEM-4-G "CAS SGC (cam sync)" [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. |
| info | NET_FAMILY | OEM-1-A ↔ M170-A-63 | OEM-1-A "Cooling fan relay (low-side)" [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. |
| info | NET_FAMILY | OEM-1-B ↔ M170-A-66 | OEM-1-B "A/C condenser 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. |
| info | NET_FAMILY | OEM-1-E ↔ M170-A-62 | OEM-1-E "Check engine light (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. |
| info | NET_FAMILY | OEM-1-G ↔ M170-A-24 | OEM-1-G "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. |
| info | NET_FAMILY | OEM-1-U ↔ M170-A-42 | OEM-1-U "Fuel pump relay (low-side)" [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. |
| info | NET_FAMILY | OEM-3-M ↔ M170-A-57 | OEM-3-M "Front O2 heater control" [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. |
| info | UNMAPPED | OEM | 7 optional OEM pins are not mapped: OEM-3-P Power steering pressure switch; OEM-4-J PRC solenoid (FPR control); OEM-4-L Tachometer output; OEM-4-O EGR vent solenoid; OEM-4-P EGR vacuum solenoid; OEM-4-Q Idle air control (IAC) valve; OEM-4-T EVAP purge solenoid |
Accepted (0)
| Code | Subject | Reason | By |
|---|
Notes
Fit check: unconfirmed. Confirm these before building: - Trigger pattern for Mazda BP-ZE not found in the ECU's docs (No native BP-ZE (NA8) mode; MoTeC support (N. Butler) is "fairly certain" the 4G63T mode works — not confirmed.) Auto-mapped by auto_map() from the library pin data on 2026-10-11. Review every wire against both manuals before building. Not wired: - OEM-4 J: PRC solenoid (FPR control): no free low_side/relay_control/heater_low_side/ls_hs/injector on MoTeC M170 - OEM-4 O: EGR vent solenoid: no free low_side/relay_control/heater_low_side/ls_hs/injector on MoTeC M170 - OEM-4 P: EGR vacuum solenoid: no free low_side/relay_control/heater_low_side/ls_hs/injector on MoTeC M170 - OEM-4 Q: Idle air control (IAC) valve: no free low_side/relay_control/heater_low_side/ls_hs/injector on MoTeC M170 - OEM-4 T: EVAP purge solenoid: no free low_side/relay_control/heater_low_side/ls_hs/injector on MoTeC M170 - OEM-4 L: Tachometer output: no free tacho/frequency_out/low_side/ls_hs on MoTeC M170 - OEM-3 P: Power steering pressure switch: no free switch_in/frequency_in/analog_0_5 on MoTeC M170
Sources
| Reliability | Kind | Title | URL | Archive | Captured | SHA-256 |
|---|---|---|---|---|---|---|
| 4 | vendor_doc | AEM EMS 30-1720 Plug-and-Play adapter manual (1996-97 Miata) | https://static.summitracing.com/global/images/instructions/avm-30-1720.pdf | — | — | — |
| 4 | vendor_doc | MoTeC: M1 ECU Hardware manual (7 Nov 2013) — M130/M150/M170/M190 pinout tables | https://web.archive.org/web/2023id_/https://www.motec.com.au/hessian/uploads/M1_ECU_Hardware_c2517380e4.pdf | — | 2026-10-05 | 03dc5975f739 |
| 3 | community_copy | Mellens.net: 1996 Mazda Miata wiring diagrams (FSM-derived) | http://www.mellens.net/mazda/mazda_miata_extra_manual/1996_wiring.pdf | — | — | — |