A CMP (camshaft position) sensor tells the ECU the camshaft’s position and speed so it can time fuel injection, spark, and variable valve timing.
What a CMP sensor does in your engine
The camshaft position sensor tracks the camshaft as it spins and sends a digital or analog signal to the engine control unit. The ECU pairs that signal with the crankshaft reading to know which cylinder is on its intake, compression, power, or exhaust stroke. With that timing map, the computer can deliver fuel at the right moment, fire the spark plug in sequence, and move variable valve timing actuators with precision.
Most late-model cars use a Hall-effect CMP sensor that outputs a square wave and needs a 5-volt or 12-volt supply. Older designs may use a magnetic pickup that creates a sine wave and does not need a power feed. Either way, the ECU counts the edges in the waveform and lines them up with a toothed trigger wheel on the camshaft. Manufacturers tune the pattern so the ECU can identify cylinder one and the exact phase of the valvetrain within a single rotation.
| Item | What it means | Notes |
|---|---|---|
| Sensor type | Hall effect or magnetic pickup | Hall uses supply voltage; magnetic is passive |
| Signal shape | Square wave or sine wave | Square wave is common on newer vehicles |
| Supply voltage | 5 V or 12 V (Hall) | Check spec before testing |
| Location | Near cam gear or valve cover | Aligned to a reluctor or windowed wheel |
| Main jobs | Sequential fuel, spark order, cam phasing | Pairs with crank sensor for sync |
| Typical DTCs | P0340–P0344 cluster | Set when signal is missing or implausible |
| Common symptoms | Hard start, misfire, rough idle | May stall or go to limp mode |
On many platforms the ECU performs a cam-crank “sync” check at start-up. If the two signals disagree, the ECU flags a fault and may disable sequential injection, falling back to batch injection. Some models also lock variable valve timing in a default position to protect the engine. That change can dull throttle response and lower fuel economy until the fault is cleared.
If you want a quick product view, Bosch outlines how a camshaft position sensor works, including fast start behavior. For a clear side-by-side with the crank sensor, this Denso note on camshaft and crankshaft sensors gives a good overview.
CMP sensor meaning, location, and role
Mechanically, the CMP sensor watches a feature on the camshaft: a notched wheel, a peg, or a shutter. As the feature passes the sensing face, the signal flips high or low. The spacing and count of those events across each rotation give the ECU a fingerprint of the cam phase. That fingerprint lets the computer spot cylinder one on its compression stroke, which is the reference for matching fuel and spark to the right cylinder.
Placement varies by engine layout. Overhead cam engines often mount the sensor through the valve cover or timing cover, pointed at the front cam gear. Pushrod engines may place it in a distributor-style housing that rides a cam gear. On engines with dual overhead cams, you may see one sensor per bank and, in some cases, one per cam. The wiring harness usually keeps the lead short to reduce interference.
Electrically, a Hall sensor needs three wires: power, ground, and signal. The signal toggles between low and high as the reluctor passes the sensing face. A magnetic pickup uses two wires and generates a rising and falling voltage with engine speed. The ECU conditions that analog waveform before counting it. During cranking, signal quality is weakest, so clean power and good grounds matter.
What is a camshaft position sensor used for?
Three jobs stand out. First, the ECU uses the cam signal to run sequential fuel injection. With the firing order known, each injector can spray just before its intake stroke. Second, ignition timing and coil-on-plug control rely on accurate phase, especially during start and at low speed. Third, variable valve timing systems need phase feedback to place the cam where the map asks, and to verify the actuator moved as commanded.
Emissions readiness ties into all of this. OBD-II rules require onboard checks that monitor sensors and actuators. When a CMP signal is missing or unreliable, readiness monitors may be blocked and the malfunction indicator lamp can come on. For background on why these checks exist, see the EPA’s OBD regulation update.
Common symptoms when a CMP sensor fails
A no-start after a hot soak is a frequent story. Heat-soaked electronics can fade or open until they cool. Cranking speed might feel normal, yet the engine never catches because the ECU can’t sync fuel and spark. In other cases the car starts but idles rough and stumbles on tip-in. Power can flatten above midrange as cam phasing gets frozen.
The check-engine light is the next giveaway. Codes in the P0340 to P0344 group point at the camshaft position circuit. That doesn’t always mean the sensor is bad. Wiring faults, poor grounds, contaminant buildup on the sensing face, or a damaged reluctor can trigger the same codes. A stretched timing chain that moves the cam out of range can do it, too.
Cold-weather hard starts, sudden stalling at idle, or a long crank after refueling can also trace back to a weak CMP signal. The longer the ECU takes to sync, the longer the crank. Some ECUs switch to batch injection and fixed timing to keep the engine running, which keeps you moving but reduces smoothness.
DIY CMP sensor testing and safety basics
Start with a scan. Read live data for cam and crank sync, and pull freeze-frame data for any codes. Clear codes only after saving the data. Next, inspect the connector. Look for bent pins, oil wicking into the harness, and brittle insulation. Reseat the plug and check for green corrosion at the terminals.
With a wiring diagram in hand, back-probe power and ground at the sensor. A Hall sensor should see clean battery ground and a steady supply. Wiggle the harness while watching a meter for drops or spikes. If supply and ground pass, scope the signal wire. You should see a steady square wave at idle that scales with RPM. A magnetic pickup will show a clean sine wave that grows with speed.
Use non-magnetic tools near the sensor face to avoid skewing the signal during testing. Keep the gap between the sensor and reluctor within spec. If the engine uses a replaceable shim, set it with care. After any timing chain or cam phaser work, torque fasteners in sequence and verify the index marks on the reluctor wheel.
| Test step | Tool | Expected |
|---|---|---|
| Scan for codes | OBD-II scanner | P0340–P0344 or manufacturer-specific variants |
| Check power/ground | Multimeter | 5 V or 12 V supply steady; near-zero ground drop |
| Scope the signal | Oscilloscope | Square or sine wave without dropped pulses |
| Wiggle test | Hands/eyes | No hiccups in live data while moving harness |
| Mechanical check | Feeler gauge | Air gap within spec; reluctor intact |
CMP sensor vs crank sensor in plain terms
The crank sensor watches total engine rotation and delivers a high-resolution speed signal. The cam sensor adds phase, which tells the ECU which stroke a cylinder is on. Think of the crank as the clock and the cam as the calendar. Both are needed for precise sequencing. Lose the cam signal and the ECU can still estimate, but it will guess wrong at times. Lose the crank signal and the engine stops because speed and basic timing vanish.
On some engines, swapping the two sensors is possible because they share form factors. Avoid that shortcut unless the parts are truly interchangeable by design. The trigger patterns and wiring can differ, and the ECU expects a specific waveform from each channel. Use the correct part number and revision for your VIN.
Replacement tips and relearn notes
Before replacing the sensor, fix any oil leaks above the connector. Oil wicks down wires and swells seals, which leads to intermittent faults. When installing the new sensor, clean the mounting pad, fit a new O-ring, and torque to spec. Do not pry on the plastic body. If the sensor uses a paper shim, follow the factory procedure to set the gap.
After the repair, clear codes and perform a drive cycle. Many ECUs relearn cam-crank sync on the first start and then confirm over several starts. Some platforms include a dedicated relearn routine in the service menu. If the light returns, recheck the harness routing near coils and alternator leads to reduce electromagnetic noise.
Preventing false CMP sensor faults
Keep the battery healthy. Low cranking voltage drags signal quality down. Replace weak grounds and clean the engine-to-chassis strap. Route aftermarket audio or lighting wires away from sensor harnesses. During timing work, avoid bending the reluctor. A tiny nick can throw the phase off by a few degrees at the sensor face.
Oil cleanliness also helps. Some designs place the sensing face near oil splash. Sludge and metallic fuzz can cling to the face and distort the signal. During oil changes, glance at the sensor area and wipe away buildup. If you see gray paste on the magnet, change oil sooner and check for wear elsewhere.
When to use a pro
Scope work, timing chain checks, and dual-cam phaser diagnosis can get complex. A trained technician with the right scan tool and service data can sort signal quality, actuator faults, and timing errors without guessing. If your car stalls in traffic or sets repeat CMP and crank correlation codes after repair, book a shop visit and share the freeze-frame data you saved.
Extra reading: Bosch camshaft position sensor overview and Denso cam vs. crank explainer. For emissions and OBD context, see the EPA OBD rule page.
