P codepowertrainMedium severity

P0334Knock Sensor 2 Circuit Input Intermittent (Bank 2)

The PCM detected an intermittent or erratic signal from the bank 2 knock sensor (sensor 2) circuit.

Definition

The knock sensor is a piezoelectric device bolted to the engine block or head that converts detonation vibration (roughly 6-15 kHz) into an AC voltage the PCM uses to fine-tune ignition timing. P0334 sets when the sensor 2 signal on bank 2 drops out or spikes sporadically rather than failing outright, which usually points to a wiring or connection problem. When the fault is active the PCM ignores the sensor and defaults to a retarded, conservative timing map, so expect the MIL, reduced power, and worse fuel economy; true detonation also goes undetected, which can damage pistons under heavy load.

Common causes

  • Chafed, pinched, or heat-damaged knock sensor harness making intermittent contact
  • Loose, corroded, or oil-contaminated sensor connector terminals
  • Failing knock sensor with an internal intermittent open
  • Sensor loosened from its mounting boss (incorrect torque)
  • EMI from damaged ignition components inducing noise into the sensor circuit
  • Damaged shield/ground on the sensor's shielded cable

Common misdiagnoses

  • Replacing the knock sensor when the harness or connector is the actual fault
  • Replacing ignition coils or spark plugs for the perceived 'pinging'
  • Replacing the PCM
  • Chasing internal engine noise as mechanical knock

Troubleshooting steps

  1. 1.Record freeze frame and check for related codes

    Note engine temperature, load, and RPM when the code set, and whether other bank 2 knock codes (P0330-P0333) are stored.

  2. 2.Wiggle-test the harness with a scan tool connected

    Watch live knock sensor data or the code's pending status while flexing the harness from the sensor to the PCM; a dropout during the test localizes the break.

  3. 3.Inspect the connector and sensor mounting

    Look for oil intrusion, spread terminals, and green corrosion, and confirm the sensor is torqued to spec (typically 15-25 Nm — over- or under-torque skews output).

  4. 4.Check circuit continuity and resistance

    With the connector unplugged, measure sensor resistance against the service spec (often 90-110 kΩ on resistor-type sensors) and verify harness continuity with no short to ground or power.

  5. 5.Scope the sensor output

    Tap the block near the sensor with a small wrench at idle and confirm a clean AC burst on a lab scope; a missing or ragged response with good wiring condemns the sensor.

  6. 6.Clear the code and verify the repair

    Drive under the freeze-frame conditions (typically warm engine, moderate load) and confirm the code does not reset.