EN ▾
EnglishItalianoDeutschFrançaisEspañolPortuguêsČeštinaPolskiMagyarRomână
Download
  1. DrivePulse
  2. Fault codes
  3. Timing and position sensors
  4. P0340

P0340: camshaft position sensor circuit

Watch engine speed while cranking: a value, usually 150 to 300 rpm, means the crankshaft sensor works, and a long crank points to the camshaft signal. Check the voltage too: below about 9.5 V a weak battery alone can set the code. You can usually drive gently; with P0016 or chain noise, only to the garage.

Get DrivePulse

What to look at in live data

Watch engine revs while the engine is cranking: if a value shows up in the data, usually between 150 and 300 rpm, the crankshaft sensor is working, and a long crank suggests the ECU is waiting for the camshaft signal before it fires. If revs stay at zero, the fault is elsewhere.

Watch the voltage during cranking too: if it drops below about 9.5 V the battery is weak, and on some cars that alone can set P0340. If the car shows actual camshaft angle, a value that is frozen or missing with the engine running confirms the signal is not getting through.

How serious is it and can you drive?

Severity is medium. You can usually drive gently: the engine works, just worse. It's a different story if it appears with P0016 or you hear chain noise: then only drive as far as the garage, because the problem may be the timing drive.

Read P0340 on your car

With an OBD2 adapter, DrivePulse reads your car's fault codes and tells you what they mean, whether you can drive and what to check. It's read-only: it writes nothing to the ECU.

Get DrivePulse

What it means

The crankshaft tells the ECU where the pistons are, but not whether a cylinder is on compression or exhaust: for that it needs the camshaft, which turns at half speed. Its sensor gives the ECU this information, and the ECU uses it to inject into the right cylinder at the right moment. With P0340 it says the signal is missing or the circuit is open.

Many engines can still start without this signal by working out the phase by trial: that's why the most typical symptom is longer cranking rather than a car that won't go.

Symptoms

  • Longer cranking than usual, especially with a warm engine.
  • Rough idle and the odd jerk.
  • Slightly higher fuel consumption.
  • Rarely, stalling.

Most likely causes, in order

  • A failed sensor.
  • The connector or wiring, with oil, corrosion or a broken wire.
  • A weak battery that pulls the sensor voltage too low while cranking.
  • Rarely, the timing drive: a jumped chain or belt changes the camshaft position. In that case P0016 nearly always appears as well.

What to check before the garage

  • Look at the sensor connector, usually high on the engine near the cylinder head: fully seated, no oil inside.
  • Read all the codes. If P0016 is there too, it's no longer just a sensor: the timing drive needs checking soon.
  • Check the battery if cranking is slow in general.

At the garage: what to ask for

A check of the sensor signal and wiring. The sensor is often cheap and easy to reach. If P0016 is also present, a timing check before replacing parts.

What DrivePulse shows

DrivePulse reads P0340 and opens its card, which warns: if it appears together with P0016, the timing drive comes first. You see all the codes together, with their pending or confirmed state, so you know straight away whether P0340 is on its own.

In Health, the cranking battery test helps rule out a simply tired battery.

Frequently asked questions

Can I drive with P0340?

Usually yes, gently. If it appears with P0016 or you hear chain noise, only to the garage.

What's the difference from P0341?

P0340 says the signal is missing or the circuit is open. P0341 says the signal is there but irregular or out of place.

What's the difference from P0335?

P0335 is the crankshaft sensor and more serious: without it the engine often won't run. P0340 is the camshaft sensor, and the engine usually keeps working.

Related codes

Related guides

What you need to read it

All you need is an ELM327 OBD2 adapter, plugged into the diagnostic port, usually under the steering wheel. On iPhone it has to be Bluetooth Low Energy (BLE) or Wi-Fi, like the Veepeak OBDCheck BLE or the Vgate iCar Pro 2S; on Android classic Bluetooth adapters work too, once paired in the phone's settings. Veepeak recommends DrivePulse to its customers, and the Vgate is the one the Italian site Macitynet tested together with the app. The full list is on Which adapters work.

DrivePulse is on iPhone and Android. It's read-only: it writes nothing to the ECU and doesn't clear codes. You try it for 7 days from the first connection or for 15 trips, whichever comes first, then unlock it with a single purchase, no subscription and no account.

← All codes