Tuning Wiki
Applies to

Check the hardware and software limits stated in this article.

AEM EMS Series 2 30-6820 is an application-specific Subaru engine-management system. The AEM manual identifies 30-6820 for the 2004 US-market Subaru Impreza WRX STI 2.5-litre turbo, and 30-6821 for the 2005–2006 model. Verify hardware, market and harness before connecting.

AEM Series 2 30-6052 ECU
AEM 30-6052 shown as a Series 2 family illustration; connectors and applications differ. AEM / Holley manufacturer photograph, reproduced with permission.

Manufacturer source discrepancies

The manual cover and application notes identify 30-6820 and 30-6821, but the connection chart itself is headed 30-6820 while showing both model years, and its earlier model-year discussion refers to Series 1 part numbers 30-1820/1821. The page 16 illustration shows five connectors whereas the chart diagrams show four. Verify the exact ECU connector and application with AEM before wiring. The application summary and chart disagree over Coil 5/6 at B13/B14; chart pin A33 is labelled “Out” but described as an available 0–5 V sensor. Additionally, the Series 1 conversion comparison says Injector 5/6 moved from A2/A3 to C2/C1 and gives A2/A3 no Series 2 function, while the chart labels those positions Injector 5/6; the summary calls C26/C27 spare inputs but the chart labels them TGV position sensors. These are preserved as printed, not resolved assumptions.

The source says the fuel-pump control signal is B26 on the 2004 application and B27 on the 2005–2006 application and must connect to the original fuel pump control unit, not directly to a pump relay. It also says the original oxygen sensors are unsupported and an aftermarket wideband is required. Confirm the manual’s year-specific starred entries and switch polarities before installation.

Manufacturer connection chart

All 135 positions listed in the AEM chart, PDF pages 17–20, are transcribed below, retaining its asterisks, paired year-dependent assignments, I/O labels and source notes. The chart is explicitly labelled 30-6820: it is not an independently confirmed 30-6821 cavity schedule. Follow the source’s wire-view connector illustration and resolve the discrepancies above with AEM. A dash or “Not Used” is the source entry for its stated application; do not infer safe wiring for other builds.

Connector A

PinOriginal vehicle functionAEM EMS functionI/OManufacturer notes
A1Clutch SwitchSwitch 3InAvailable, switch should connect to +12V when closed
A2Front Oxygen Sensor Heater (Signal 2)Injector 5OutAvailable, can be used for additional injectors (1.5A max)
A3Front Oxygen Sensor Heater (Signal 1)Injector 6OutAvailable, can be used for additional injectors (1.5A max)
A4---Sensor GroundOutDedicated, sensors only, connects to pin C31
A5---O2 #1InAvailable, 0-5V O2 sensor #1, connects to pin A26
A6GND (Front Oxygen A/F Heater 2)Injector 7OutAvailable, can be used for additional injectors (1.5A max)
A7GND (Front Oxygen A/F Heater 1)Injector 8OutAvailable, can be used for additional injectors (1.5A max)
A8Tumble Generator Valve RH (close)Idle 6OutPnP for TGV
A9Tumble Generator Valve RH (open)Idle 5OutPnP for TGV
A10Tumble Generator Valve LH (close)Idle 8OutPnP for TGV
A11Tumble Generator Valve LH (open)Idle 7OutPnP for TGV
A12Pressure control solenoid valve (fuel tank)Low Side 3OutAvailable, can be used for Switched Ground (1.5A max)
A13Drain ValveLow Side 2OutAvailable, can be used for Switched Ground (1.5A max)
A14Purge Control solenoid valveLow Side 4OutAvailable, can be used for Switched Ground (1.5A max)
A15Main light ("Cruise" lamp on dash)Cruise lightOutDedicated, ETC system output
A16Cruise Set light ("Set" lamp on dash)Set lightOutDedicated, ETC system output
A17Malfunction Indicator LampLow Side 10OutAvailable, can be used for Switched Ground (1.5A max)
A18Oil flow control solenoid (RH) Signal (+)+12V Switched Ignition PowerOutDedicated, also connects to A19, B5, B6
A19Oil flow control solenoid (LH) Signal (+)+12V Switched Ignition PowerOutDedicated, also connects to A18, B5, B6
A20------Not Used
A21------Not Used
A22AlternatorLow Side 1OutAvailable, can be used for Switched Ground (1.5A max)
A23Engine Speed Output (to OEM tachometer)Tacho out (LS7)OutPnP for Tachometer
A24Fuel Tank sensor control valveLow Side 11OutAvailable, can be used for Switched Ground (1.5A max)
A25Front Oxygen sensor shield---Not Used
A26Front Oxygen sensor signal (-)O2 #1InAvailable, 0-5V O2 sensor #1, connects to pin A5
A27------Not Used
A28Oil flow control solenoid (RH) Signal (-)Injector 9OutPnP for VVC #1 (Active Valve Control Solenoid)
A29Oil flow control solenoid (LH) Signal (-)Injector 10OutPnP for VVC #2 (Active Valve Control Solenoid)
A30------Not Used
A31------Not Used
A32Wastegate Control solenoid valvePW 2OutPnP for Boost Control Solenoid
A33Front Oxygen sensor signal (+)ADCR13OutAvailable, 0-5V sensor
A34Engine GroundPower GroundInDedicated, also B1,B4,B12,B31,C32,C33,D1,D2,D7,D31

Connector B

PinOriginal vehicle functionAEM EMS functionI/OManufacturer notes
B1GND (Power Supply)Power GroundInDedicated, also A34,B4,B12,B31,C32,C33,D1,D2,D7,D31
B2Rear Oxygen Sensor heater signal---Not Used
B3------Not Used
B4GND (Power Supply)Power GroundInDedicated, also A34,B1,B12,B31,C32,C33,D1,D2,D7,D31
B5Control Unit Power Supply+12V Switched Ignition PowerInDedicated, also connects to A18, A19, B6
B6Control Unit Power Supply+12V Switched Ignition PowerInDedicated, also connects to A18, A19, B5
B7------Not Used
B8Camshaft position sensor (LH)Vehicle SpeedInPnP for Cam sensor (LH)
B9Camshaft position sensor (RH)CamInPnP for Cam sensor (RH)
B10Crankshaft position sensor Signal (+)CrankInDedicated
B11------Not Used
B12GND (Ignition System)Power GroundInDedicated, also A34,B1, B4,B31,C32,C33,D1,D2,D7,D31
B13---Coil 6OutAvailable Coil 6 output, 0/5V falling edge trigger
B14---Coil 5OutAvailable Coil 5 output, 0/5V falling edge trigger
B15Ignition Control #4Coil 4OutPnP for Coil 4, 0/5V falling edge trigger
B16Ignition Control #3Coil 3OutPnP for Coil 3, 0/5V falling edge trigger
B17Ignition Control #2Coil 2OutPnP for Coil 2, 0/5V falling edge trigger
B18Ignition Control #1Coil 1OutPnP for Coil 1, 0/5V falling edge trigger
B19Back-up Power SupplyPermanent +12VInDedicated, back-up power for internal datalog memory
B20------Not Used
B21------Not Used
B22Crankshaft position sensor Signal (-)Timing GroundOutDedicated, timing sensors only
B23------Not Used
B24Radiator Fan relay 2 controlLow Side 9OutPnP for A/C Fan
B25Radiator Fan relay 1 controlLow Side 8OutPnP for Radiator Fan
B26*Fuel Pump control unit Signal 1 / Vehicle Speed*FPCU circuit (Coil 8) / Spare Speed*Out*Dedicated, 0-5V signal to Fuel Pump Control Unit
B27*Vehicle Speed / Fuel Pump control unit sig 1*Spare Speed / FPCU circuit (Coil 8)*In*PnP for wheel speed input, shared with speedometer
B28---CANHDedicated
B29---CANLDedicated
B30------Not Used
B31Crankshaft Position sensor ShieldPower GroundOutDedicated, also A34,B1, B4,B12,C32,C33,D1,D2,D7,D31
B32------Not Used
B33A/C relay controlLow Side 6OutPnP for A/C compressor clutch
B34---High Side 1OutAvailable switched +12V output driver
B35Electronic Throttle control motor relayETC relay controlOutDedicated

Connector C

PinOriginal vehicle functionAEM EMS functionI/OManufacturer notes
C1---Injector 6OutAvailable, can be used for additional injectors (1.5A max)
C2---Injector 5OutAvailable, can be used for additional injectors (1.5A max)
C3Fuel Injector #4Injector 4OutPnP for Injector 4 (Peak & Hold 4A / 1A driver)
C4Fuel Injector #3Injector 3OutPnP for Injector 3 (Peak & Hold 4A / 1A driver)
C5Fuel Injector #2Injector 2OutPnP for Injector 2 (Peak & Hold 4A / 1A driver)
C6Fuel Injector #1Injector 1OutPnP for Injector 1 (Peak & Hold 4A / 1A driver)
C7Main switchMain SwitchInDedicated, ETC system input
C8Brake Switch 2---Not Used
C9Brake Switch 1Switch #2InAvailable, switch should connect to GND when closed
C10Resume / Accel switch---Not Used
C11Set / Coast switchSet SwitchInDedicated, ETC system input
C12Fuel Temperature Sensor signalEGT #1InAvailable, jumper set for 0-5V input
C13Intake Air Temperature sensor signalAITInPnP for Air Intake Temp sensor, RTD type thermistor
C14Engine Coolant Temperature sensorCoolantInPnP for Coolant Temp sensor, RTD type thermistor
C15Accelerator Pedal Position sensor PowerAccelerator Pedal +5V referenceOutDedicated, reference power to accelerator pedal
C16Electronic Throttle control Power Supply+5V Sensor referenceOutDedicated, sensor reference power
C17Accelerator Pedal Position sensor MainAccelerator Pedal signal 1InDedicated, main 0-5V signal from accelerator pedal
C18Electronic Throttle control MainTPS / Electronic Throttle signal 1InDedicated, main 0-5V signal from throttle motor
C19------Not Used
C20Fuel Level Sensor---Not Used
C21Fuel Tank Pressure Sensor signal---Not Used
C22Manifold Absolute Pressure sensor signalMAPInPnP for Manifold Pressure sensor
C23Mass Air Flow sensor SignalMAFInAvailable, 0-5V MAF input signal
C24--Knock 2InDedicated, software – configurable knock filter circuit
C25Knock Sensor SignalKnock 1InDedicated, software – configurable knock filter circuit
C26Tumble Generator Valve position sensor LHADCR14InPnP for TGV, 0-5V input
C27Tumble Generator Valve position sensor RHADCR11InPnP for TGV, 0-5V input
C28Accelerator Pedal Position sensor SubAccelerator Pedal signal 2InDedicated, secondary 0-5V signal from accelerator pedal
C29Electronic Throttle control SubElectronic Throttle signal 2OutDedicated, secondary 0-5V signal from throttle motor
C30------Not Used
C31Mass Air Flow sensor GNDSensor GroundOutDedicated, sensors only, connects to pin A4, C35,
C32Mass Air Flow sensor ShieldPower GroundOutDedicated, also A34,B1, B4,B12,B31, C33,D1,D2,D7,D31
C33Knock Sensor ShieldPower GroundOutDedicated, also A34,B1, B4,B12,B31,C32,D1,D2,D7,D31
C34Accelerator Pedal Position sensor GNDAccelerator Pedal GroundOutDedicated, ground to accelerator pedal
C35GND (sensor)Sensor GroundOutDedicated, sensors only, connects to pin A4, C31,

Connector D

PinOriginal vehicle functionAEM EMS functionI/OManufacturer notes
D1GND (control systems)Power GroundInDedicated, also A34,B1, B4,B12,B31,C32,C33,D2,D7,D31
D2GND (control systems)Power GroundInDedicated, also A34,B1, B4,B12,B31,C32,C33,D1, D7,D31
D3Electronic Throttle control GND (sensor)Electronic Throttle GroundOutDedicated
D4Electronic Throttle control motor (-)Electronic Throttle Motor -OutDedicated, ETC system output
D5Electronic Throttle control motor (+)Electronic Throttle Motor +OutDedicated, ETC system output
D6Electronic Throttle control Motor PowerElectronic Throttle PowerInDedicated, ETC power
D7GND (Injectors)Power GroundInDedicated, also A34,B1, B4,B12,B31,C32,C33,D1,D2,D31
D8Starter switchMain Relay circuit (Switch #1)InDedicated
D9Neutral Position switch---Not Used
D10Power Steering oil pressure switch---Not Used
D11Rear Defogger switchSwitch #4InAvailable, switch should connect to GND when closed
D12(not used by stock ECU)---Not Used
D13Blower Fan switchSwitch #5InAvailable, switch should connect to GND when closed
D14*Test Mode Connector / Ignition Switch*--- / Main Relay circuit (Switch1)**Not Used
D15*Ignition Switch / Test Mode Connector*Main Relay circuit (Switch 1) / - -- *In*Dedicated
D16*AC Switch / Main Relay control*Switch 6 / Main Relay circuit (Coil 7) *In*PnP for A/C request switch
D17*Main Relay control / AC Switch*Main Relay circuit (Coil 7) / Switch 6 *Out*Dedicated, activates main relay with switched GND
D18------Not Used
D19------Not Used
D20SSM / GST communication lineEGT #2InAvailable, jumper set for 0-5V input
D21------Not Used
D22------Not Used
D23------Not Used
D24Blow-by Leak diagnosis signalEGT #3InAvailable, jumper set for 0-5V input
D25Rear Oxygen sensor SignalLambda #2InAvailable, 0-5V O2 #2 signal
D26------Not Used
D27------Not Used
D28Fuel Pump control unit Signal 2Low Side Driver #5OutAvailable, can be used for Switched Ground (1.5A max)
D29--EGT #4InAvailable, jumper set for 0-5V input
D30------Not Used
D31Rear Oxygen sensor ShieldPower GroundOutDedicated, also A34,B1, B4,B12,B31,C32,C33,D1,D2,D7

Documentation

AEM installation manual for 30-6820 / 30-6821, including application notes and connector chart.