On OBD1 Honda and Acura ECUs, transistor Q31 drives the EVAP purge control solenoid (PCS). The usual reason Q31 burns is that the purge control solenoid connector on the engine harness is plugged into the intake air temperature (IAT) sensor instead of the solenoid.
A burned Q31 transistor on an OBD1 ECU board.
Why the connectors get swapped
The purge control solenoid and the IAT sensor both use the same style of two-pin connector. On many OBD1 Civic and Integra engines they also sit close to each other on the intake manifold, so it is easy to swap them during an engine swap or when the harness is reconnected.
How that burns Q31
The purge control solenoid is a basic on/off solenoid. The engine harness supplies 12 volts to one side of the connector, and the ECU grounds the other side through Q31 when it wants the solenoid on. The IAT sensor is a thermistor, not a solenoid.
If the powered purge connector is plugged into the IAT sensor, that 12-volt supply is routed through the sensor and back to the ECU, which burns Q31. The IAT sensor is usually damaged at the same time. If you remove it from the engine, the tip often shows brown or black discoloration.
A burned Q31 usually does not set a check engine light on an OBD1 ECU. If the IAT sensor is melted or otherwise damaged, that can set code 10. See Check Engine Light Codes / Diagnostic Trouble Codes.
The purge control solenoid output on common OBD1 Honda and Acura ECUs is pin A20. The IAT sensor input is pin D15. See OBD1 ECU Pinouts.
What to do
First correct the connectors so the purge solenoid and the IAT sensor are plugged in correctly. If Q31 is replaced without fixing the mix-up, the new transistor will burn as well.
Replace the damaged IAT sensor.
The ECU can still be used without replacing Q31. After the connectors are corrected and the IAT sensor is replaced, the engine will run normally. The ECU will simply not operate the purge control solenoid, which is an emissions function and does not affect normal engine operation.
If you want the purge solenoid to work again, Q31 can be replaced once the wiring is corrected. A D1691 replacement transistor is made for the Q31 location on OBD1 ECUs.