⚠️ The 7th Gen Main Relay Location
This is a key 7th gen specific electrical consideration that is not covered in standard wiring references.
Unlike the 6th gen where the main relay is located under the dash, the 7th gen Civic has the PGM-FI main relay located behind the glove box. It is a blue relay secured against the metal frame, which can make access challenging.
Symptom: The engine cranks but does not start, the Fuel Pump does not prime, and no click is heard from the relay. This issue may occur intermittently.
Fix: Remove the glove box, locate the blue relay, and carefully spread the retainer tabs to remove it. Replace with a new OEM relay or re-solder the cracked joints on the circuit board. This is a known failure point on the D17 engine.
7th Generation — Civic (2001–2005) EM2/ES1/EP3/EU1
Your 7th gen Civic (EM2 coupe, ES1 sedan, EP3 Si hatchback, EU1 UK hatch) has a well-documented but aging electrical system. Chassis codes include EM2, ES1, EP3, and EU1. The D17 engine harness is known for chafing issues, and the main relay is a common failure point located behind the glove box — not under the dash like the 6th gen.
Here is the breakdown of each wire you need to know — including the 7th gen specific considerations that are not covered in generic wiring references.
Standard Honda Wire Color Legend — 7th Gen Specific
Honda uses a consistent wire color-coding system. When two colors are listed (e.g., GRN/YEL), the first is the base color, the second is the stripe. The 7th gen introduced new circuits compared to the 6th gen, including immobilizer and ELD (Electronic Load Detector) wiring.
| Code | Color | Common Function (7th Gen) |
|---|---|---|
| BLK | Black | Chassis ground — always ground |
| WHT | White | Sensor signal / ECU input |
| BLU | Blue | VTEC solenoid / VTC oil pressure / Crank position sensor |
| RED | Red | Switched 12V (ignition/accessory) / Headlight low beam (+) |
| YEL | Yellow | Starter signal / Injector power / Sensor voltage supply |
| GRN | Green | Sensors / ECU signals / Injector ground / Radiator fan control |
| ORN | Orange | Dash illumination / Dimmer |
| PNK | Pink | Sensor ground / ECU ground reference |
| BRN | Brown | Injector control / Ignition coil output / Logic ground |
| GRY | Gray | Speed sensor / Various sensor signals |
Stereo / Radio Wiring — 7th Gen (2001–2005)
The 7th gen Civic uses a standard Honda radio harness. Compatible with Metra 70-1721 harness adapter for non-amplified models (excluding Si and SE trims, 2001-2005).
| Function | Wire Color | Notes |
|---|---|---|
| Battery (+12V Constant) | YEL | Always powered — for stereo memory |
| Accessory (12V Switched) | RED | Ignition switched — turns stereo on/off with key |
| Ground | BLK | Chassis ground |
| Illumination / Dimmer | ORN/WHT | Dims display when headlights are on |
| Power Antenna / Amp Remote | BLU | Remote turn-on for amplifier or power antenna |
| Left Front Speaker (+) | GRN | — |
| Left Front Speaker (-) | GRN/BLK | — |
| Right Front Speaker (+) | VIO | — |
| Right Front Speaker (-) | VIO/BLK | — |
| Left Rear Speaker (+) | BLU/WHT | — |
| Left Rear Speaker (-) | GRY/WHT | — |
| Right Rear Speaker (+) | YEL/WHT | — |
| Right Rear Speaker (-) | BRN/WHT | — |
💡 Note: The 7th gen stereo harness uses the same connector as many other Honda models from this era. The Metra 70-1721 is confirmed to fit 2001-2005 Civic (excluding Si and SE trims), 2002-2005 Civic Si Hatchback, and many other Honda/Acura models from 1998-2013.
ECU Pinout — 7th Gen Civic (2001–2003 D17)
The ECU is located behind the glove box — consistent with the 6th gen, but the connector pinouts are different. The 7th gen uses Connector A (31-pin), Connector B (24-pin), Connector C (22-pin — automatic transmission only), and Connector E (31-pin).
Common 7th Gen ECU Part Numbers:
| Engine | ECU Part Number | Notes |
|---|---|---|
| D17A2 (EX / LX / HX) | 37820-PLM-Axx | VTEC — manual or automatic |
| D17A1 (DX / VP) | 37820-PLD-Axx | Non-VTEC |
| D17A6 (HX) | 37820-PLC-Axx | VTEC-E economy |
| K20A3 (EP3 Si) | 37820-PRB-Axx | DOHC i-VTEC — manual transmission |
ECU Connector A (31-Pin) — 2001-2003 D17
Connector A is the main engine control connector on all 7th gen OBD2 ECUs. Pin assignments shown are verified from factory service manual documentation.
| Pin | Function | Wire Color |
|---|---|---|
| A1 | Primary O2 Sensor Heater Control | BLK/WHT |
| A2 | Power Source | YEL/BLK |
| A3 | Power Source | YEL/BLK |
| A4 | Power Ground | BLK |
| A5 | Power Ground | BLK |
| A6 | Primary O2 Sensor Signal | WHT |
| A7 | Crankshaft Position Sensor | BLU |
| A8 | Sensor Return Voltage | YEL |
| A9 | Knock Sensor | RED/BLU |
| A10 | Sensor Ground | GRN/YEL |
| A11 | Sensor Ground | GRN/WHT |
| A12 | Idle Air Control Valve | BLK/RED |
| A13 | EGR Valve Position (VTEC ONLY) | WHT/BLK |
| A14 | Secondary O2 Heater Control | BLK/WHT |
| A15 | Throttle Position Sensor | RED/BLK |
| A18 | Vehicle Speed Sensor | WHT/GRN |
| A19 | MAP Sensor Signal | GRN/RED |
| A20 | Sensor Voltage Supply | YEL/BLU |
| A21 | Sensor Voltage Supply | YEL/RED |
| A23 | Logic Ground | BRN/YEL |
| A24 | Logic Ground | BRN/YEL |
| A25 | Secondary O2 Sensor Signal | WHT/RED |
| A26 | Top Dead Center Sensor | GRN |
| A27 | Ignition Coil 4 | BRN |
| A28 | Ignition Coil 3 | WHT/BLU |
| A29 | Ignition Coil 2 | BLU/RED |
| A30 | Ignition Coil 1 | YEL/GRN |
ECU Connector B (24-Pin) — 2001-2003 D17
| Pin | Function | Wire Color |
|---|---|---|
| B2 | Fuel Injector 4 | YEL |
| B3 | Fuel Injector 3 | BLU |
| B4 | Fuel Injector 2 | RED |
| B5 | Fuel Injector 1 | BRN |
| B6 | Radiator Fan Control | GRN |
| B7 | A/T Pressure Control Solenoid A | RED/BLK |
| B8 | Engine Coolant Temperature Sensor | RED/WHT |
| B9 | VTEC Oil Pressure Switch (VTEC ONLY) | BLU/BLK |
| B10 | Alternator L Signal | WHT/BLU |
| B13 | Alternator FR Signal | WHT/RED |
| B14 | EGR Valve (VTEC ONLY) | BLU/RED |
| B15 | VTEC Solenoid Valve | GRN/YEL |
| B16 | A/T Pressure Control Solenoid B | BLK/RED |
| B17 | Intake Air Temperature Sensor | RED/YEL |
| B18 | Alternator Control | WHT/GRN |
| B21 | EVAP Canister Purge Valve | YEL/BLU |
ECU Connector E (31-Pin) — Immobilizer & Main Relay
| Pin | Function | Wire Color |
|---|---|---|
| E1 | Immobilizer Fuel Pump Relay | GRN/YEL |
| E2 | Secondary O2 Sensor (EX Only) | WHT/RED |
| E3 | Logic Ground | BRN/YEL |
| E4 | Sensor Ground | PNK |
| E5 | Sensor Voltage Source | YEL/BLU |
| E6 | Secondary O2 Heater Control (EX Only) | BLK/WHT |
| E7 | PGM-FI Main Relay 1 | RED/YEL |
| E9 | Ignition Input Signal | YEL/BLK |
| E12 | Cruise Control Signal | BLU/ORN |
| E13 | Interlock Control Unit | WHT/BLU |
| E14 | Fuel Tank Pressure Sensor | LT GRN |
| E15 | Electrical Load Detector (ELD) | GRN/RED |
| E16 | Power Steering Pressure Switch | LT GRN/BLK |
| E18 | A/C Clutch | RED |
| E20 | BLU/RED | — |
⚠️ Critical Ground Warning: ECU logic ground pins A23 (BRN/YEL) and A24 (BRN/YEL) must be properly grounded. These are the ECU reference grounds. If these grounds are loose or missing, the ECU may behave erratically or fail to start. Check the G101 ground point on the top of the engine first.
Critical Ground Locations — 7th Gen
A significant portion of 7th gen electrical issues can be traced to poor grounds. These are the most critical ground locations:
| Ground Code | Location | What It Grounds |
|---|---|---|
| G101 | Top of engine / thermostat housing area | ECU reference ground, VTEC pressure switch, radiator fan thermo switch. A loose G101 connection can cause ECU damage during starting. |
| G201 | Radiator support / firewall | Body electronics, headlights, cooling fans |
| G401 | Transmission housing ground strap | Starter motor return — often overlooked after clutch replacements |
| G501 | Under dashboard, right of steering column | Stereo, interior lighting, dash electronics |
Headlight Wiring — 7th Gen
Factory halogen headlight connector — 3-pin. Useful for retrofitting LED or HID headlights.
| Function | Wire Color |
|---|---|
| Low Beam (+) | RED |
| High Beam (+) | WHT |
| Ground | BLK |
For wiring aftermarket gauges to the headlight circuit, the RED/BLK wire on the gauge cluster harness (blue connector) provides illumination power that is active when the parking lights are on.
Side Mirror Wiring — 7th Gen
Power mirror wiring is a common repair on the 7th gen. The mirror motors operate on 12V with two motors sharing one common terminal.
| Side | Wire Colors (Motor Side) | Harness Connection |
|---|---|---|
| Left (Driver) | LT GRN · GRY · YEL | BLU/BLK (cavity #7) · BLU/WHT (cavity #6) · GRN/WHT (cavity #8) |
| Right (Passenger) | BRN · PNK · ORN | WHT/RED · RED · GRN/WHT |
💡 Mirror Wiring Note: The mirror motors operate on 12V and share a common terminal between the two internal motors. For repair or diagnosis, use a multimeter to identify the common terminal (which will show continuity to both other terminals), then test the remaining two wires for up/down and left/right movement.
Important Notes — 7th Gen Specific Wiring Issues
⚠️ Main Relay Location — Behind the Glove Box
Unlike the 6th gen where the main relay is under the driver’s side dash, the 7th gen Civic has the PGM-FI main relay located behind the glove box. It is a blue relay secured against the metal frame. This is a significant difference that may be unfamiliar to owners accustomed to the 6th gen location.
Symptom: The engine cranks but does not start, the fuel pump does not prime, and no click is heard from the relay. This issue may occur intermittently, particularly when the vehicle is warm.
Fix: Remove the glove box, locate the blue relay, and carefully spread the retainer tabs to remove it. Replace with a new OEM relay or re-solder the cracked joints on the circuit board.
💡 Two Main Relays on the 7th Gen
The 7th gen Civic has two main relays — Relay 1 and Relay 2. Relay 1 is controlled by the ECU and switches Relay 2, which powers the fuel pump. This differs from the simpler single-relay setup on the 6th gen.
Fix: For installations such as a kill switch, the ground wire from Relay 1 to the ECU can be interrupted — this will disable both the injectors and the fuel pump. The YEL/BLK wire AT the relay is the injector power feed.
🔧 VTEC Wiring — EP3 Si (K20A3) Differences
The EP3 Si uses a K20A3 engine with different ECU wiring than the D17 models. The VAFC II (A’PEXi) installation differs — K-Series engines have additional TDC (Top Dead Center) and VTC (Variable Timing Control) circuits that are not present on D-Series engines.
Fix: For D17 VTEC wiring, the VTEC solenoid is on ECU pin B15 (GRN/YEL) and the VTEC Oil Pressure Switch is on pin B9 (BLU/BLK). For K20A3 (EP3 Si), these circuits are different — always refer to the K-series service manual.
DIY Projects — 7th Gen Quick Wiring References
Use the stereo wiring table above. Battery: YEL · ACC: RED · Ground: BLK · Illumination: ORN/WHT. Metra 70-1721 harness adapter is recommended.
The YEL/BLK wire is the injector power feed before it splits to all four injectors. Alternatively, the ground wire from Relay 1 to the ECU can be interrupted to disable both fuel and injectors. The main relay is located behind the glove box.
Tap the RED/BLK wire on the gauge cluster harness (blue connector) for illumination that activates with the parking lights. This provides a clean dimming signal for aftermarket gauges.
Boost gauge: tap MAP sensor signal (GRN/RED on ECU pin A19, 0-5V). Power: RED (ACC) and BLK (ground). Illumination: RED/BLK at the cluster for dimming control.
❓ 7th Gen Civic Wiring — Frequently Asked Questions
1. Where is the ECU located on a 7th gen Civic?
The ECU is located behind the glove box on the passenger side. Remove the glove box for access. The ECU part number is printed on the housing.
2. Where is the main relay on a 7th gen Civic?
The PGM-FI main relay is located behind the glove box — it is a blue relay secured against the metal frame. This differs from the 6th gen location under the driver’s dash.
3. What ECU does a 7th gen Civic EX use?
The 2001-2005 Civic EX with D17A2 engine uses ECU 37820-PLM-Axx. The LX and HX use different ECU variants (PLD and PLC respectively).
4. What is the radio wiring harness adapter for a 7th gen Civic?
The 7th gen Civic uses a standard Honda harness. Compatible adapters include Metra 70-1721 for non-amplified models (excluding Si and SE trims, 2001-2005).
5. What are the ground locations on a 7th gen Civic?
Key grounds: G101 (top of engine — ECU ground), G201 (Radiator Support), G401 (transmission ground strap), G501 (under dash, right of steering column).
6. What wire is the VTEC solenoid on a 7th gen Civic?
The VTEC solenoid wire is GRN/YEL and connects to ECU pin B15. The VTEC oil pressure switch is BLU/BLK on ECU pin B9.
7. How do I fix a 7th gen Civic that cranks but won’t start?
Check the main relay behind the glove box first — it is a known failure point. Also verify the fuel pump fuse and the immobilizer system (GRN/YEL wire on ECU pin E1).
8. What is the ELD (Electronic Load Detector) on a 7th gen Civic?
The ELD monitors electrical system load and is connected to ECU pin E15 (GRN/RED). A failing ELD can cause charging system issues and parasitic Battery Drain.
9. Is the 7th gen Civic wiring different from the 6th gen?
Yes — the 7th gen (D17) has significant differences: the ECU pinout is completely different, the main relay is located behind the glove box instead of under the dash, and additional circuits such as the immobilizer (E1) and ELD (E15) are present.
10. Where can I find the wiring diagrams for my 7th gen Civic?
The Honda factory service manual contains complete wiring diagrams. The 7th gen wiring diagrams are widely available through Honda service information portals and enthusiast forums. Always verify with a multimeter before cutting or splicing wires.
💡 Pro Tip: The 7th gen Civic electrical system has several key differences from the 6th gen — the main relay location (behind the glove box), the ECU pinout, and the addition of immobilizer and ELD circuits. Always use the correct diagrams for your model year. Use soldered connections with heat shrink for all splices.
Sources: Honda factory service manual (2001–2005), Electrical Troubleshooting Manual (ETM), and verified against real-world owner experience from 7th Gen Civic forums. Wire colors and pin assignments may vary by trim, market, and optional equipment. Always verify with a multimeter before cutting or splicing wires.

