HomeTrouble CodesP0331

P0331 — Knockcombustion Vibration Sensor B Circuit Rangeperformance

Generic OBD-II · all makesPowertrain (engine & transmission)

P0331 indicates the engine control module has detected a signal from the knock sensor on bank 2 that is outside the expected voltage or frequency range. This prevents the computer from properly adjusting ignition timing to prevent engine knocking. It usually points to a sensor fault or wiring issue rather than internal engine damage.

Symptoms

What causes it — most likely first

1. Failed knock sensor unit (Bank 2)

Internal sensor failure is the most common cause of range or performance codes.

2. Damaged wiring harness near the sensor

Heat and vibration often crack insulation or break wires near the sensor body.

3. Corroded or loose electrical connector

Poor contact at the plug can interrupt the signal voltage returning to the computer.

4. Excessive engine mechanical noise interfering with signal

Worn bearings or ticks can mimic knock vibrations and confuse the sensor.

5. Carbon buildup causing actual engine knocking

Heavy deposits can cause pre-ignition that the sensor detects as a circuit performance issue.

6. Faulty powertrain control module (rare)

Internal computer failure is possible but should only be considered after all other causes are ruled out.

How it's diagnosed

  1. Visually inspect sensor wiring and connectors for damage
  2. Check wiring continuity and resistance per specifications
  3. Test knock sensor signal output with a scan tool
  4. Listen for abnormal mechanical engine noises
  5. Replace sensor or repair wiring based on findings
  6. Clear codes and perform road test to verify repair

Code facts & related codes

SystemPowertrain (engine & transmission)
StandardizationSAE generic — identical on every make

Frequently asked

Is it safe to drive with this code?

Extended driving is not recommended as incorrect timing can damage the engine.

Do I need to replace the computer (PCM)?

No, PCM failure is rare; replace the sensor or fix wiring first.

What does Bank 2 mean?

It refers to the engine side that does not contain cylinder number one.

Can bad gasoline trigger this code?

Yes, low octane fuel can cause knocking that confuses the sensor circuit.