How Camshaft and Crank Sensors Control a Nissan Engine
A modern Nissan engine does not guess when to fire a spark plug or spray fuel. It needs exact information about where the crankshaft and camshaft are at every moment. That information comes mainly from two sensors: the crankshaft position sensor and the camshaft position sensor.
These two sensors work together like a timing map for the engine computer. The crank sensor tells the computer how fast the engine is turning and where the pistons are. The camshaft sensor tells it which stroke each cylinder is on. With both signals, the engine control module can control spark timing, fuel injection, valve timing, idle quality, and starting.
When one of these sensors starts failing, a Nissan may crank but not start, stall at stoplights, run rough, lose power, or set a check engine light. Understanding what each sensor does makes those symptoms much easier to understand.

What the camshaft sensor tells the engine computer
The camshaft position sensor watches the rotation of the camshaft. The camshaft controls the opening and closing of the intake and exhaust valves. Because valves must open at the right time for each cylinder, the engine computer needs to know where the camshaft is in relation to the crankshaft.
The camshaft sensor usually reads a signal from a metal target, gear, or trigger wheel attached to the camshaft or cam sprocket. As the camshaft turns, the sensor sends an electrical signal to the engine control module, often called the ECM or PCM.
That signal helps the ECM identify:
Which cylinder is on its compression stroke
When to fire each ignition coil
When to pulse each fuel injector
Whether valve timing is in the correct position
Whether the camshaft and crankshaft are synchronized
On many Nissan engines, this signal is especially important because the engine uses sequential fuel injection. That means each injector sprays fuel for its own cylinder at the best time, instead of spraying fuel in groups. To do that correctly, the ECM must know which cylinder is ready.
The camshaft sensor also helps with variable valve timing systems. Nissan may refer to this type of system as intake valve timing control or a similar name depending on the engine. The ECM uses oil control solenoids to adjust cam timing while the engine runs. The camshaft sensor confirms whether the camshaft actually moved to the commanded position.
Think of the camshaft sensor as the sensor that tells the computer, “This cylinder is the one ready for spark and fuel now.”
Without that signal, the ECM may still see engine speed from the crank sensor, but it may not know the correct cylinder phase. On some Nissan engines, the car may still start in a backup mode. On others, it may crank for a long time or not start at all.
How the crank sensor tracks piston position and speed
The crankshaft position sensor is one of the most important sensors on the engine. The crankshaft is connected to the pistons through the connecting rods. Every time a piston moves up and down, the crankshaft rotates.
The crank sensor monitors that rotation. It usually reads a toothed reluctor wheel or signal plate on the crankshaft, flywheel, or flexplate. As the teeth pass the sensor, the sensor creates a signal pattern. The ECM reads that pattern to know crankshaft speed and position.
The crank sensor tells the ECM:
Engine speed in revolutions per minute
Piston position in relation to top dead center
When the engine is cranking
When the engine is running
Whether crankshaft speed is changing unevenly
The crank sensor is the main signal the ECM uses to determine engine rpm. Without a good crank signal, the computer may not know the engine is turning. If the ECM does not see that signal, it may not command spark or fuel injection.
That is why a bad crankshaft sensor can cause a sudden stall or a no-start condition. The starter can spin the engine, but the ECM may act like the engine is not moving.
The crank sensor is also used for misfire detection. A cylinder that misfires does not add power to the crankshaft at the expected moment. The ECM can detect tiny changes in crankshaft speed and compare them to the firing order. If the crankshaft slows down where one cylinder should have produced power, the ECM may set a misfire code.
The crank sensor is the engine’s main reference point. It tells the computer, “The pistons are here, and the engine is turning this fast.”
How Nissan uses both signals to control timing and fuel
A Nissan ECM works best when it can compare both sensor signals. The crank sensor gives the basic position and speed of the rotating assembly. The camshaft sensor gives cylinder identification and valve timing position. Together, they let the computer control the engine with much more precision.
For spark timing, the ECM needs to fire the ignition coil before the piston reaches the top of the compression stroke. Fire the spark too early, and the engine can knock or fight itself. Fire it too late, and the engine loses power and wastes fuel. The crank sensor gives the ECM the piston position. The cam sensor confirms which cylinder is ready.
For fuel injection, the ECM needs to know when to open each injector and for how long. It also uses information from other sensors, including the mass airflow sensor, oxygen sensors, coolant temperature sensor, throttle position sensor, and manifold pressure information where equipped. But the cam and crank sensors provide the timing foundation. Without correct position data, the computer cannot place fuel delivery at the right moment.
On Nissan engines with variable valve timing, the relationship between the camshaft and crankshaft matters even more. The ECM may advance or retard cam timing based on engine load, rpm, temperature, and throttle demand. It then watches the cam sensor signal to verify that the camshaft moved as expected.
A simple way to picture it:
Sensor | Main job | What the ECM does with it |
Crankshaft position sensor | Tracks crankshaft speed and piston position | Controls rpm reading, spark timing, fuel timing, and misfire detection |
Camshaft position sensor | Tracks camshaft position and cylinder phase | Controls injector sequence, ignition coil sequence, and valve timing feedback |
Both together | Confirm engine synchronization | Allows accurate starting, smooth idle, clean acceleration, and proper timing control |
When both signals match the expected pattern, the ECM knows the engine is mechanically in time. When the signal relationship is wrong, the ECM may suspect a stretched timing chain, slipped timing component, sensor issue, wiring problem, or actuator fault.
This is why scan tools often show cam and crank related trouble codes when the problem is not only the sensor itself. The sensor reports what it sees. The real issue could be a bad sensor, damaged connector, weak power or ground, oil contamination, timing chain wear, or a problem in a valve timing control system.
The camshaft and crankshaft sensors do not control the engine by themselves. They give the ECM the position data it needs, and the ECM uses that data to control spark, fuel, and valve timing.
Common symptoms when either sensor starts failing
A failing camshaft or crankshaft sensor can act up in different ways. Some sensors fail suddenly. Others become heat-sensitive and work when cold but stop sending a clean signal once the engine warms up.
Common symptoms include:
Long crank before starting
Crank but no start
Engine starts and then stalls
Random stalling while driving
Rough idle
Hesitation when accelerating
Reduced power
Poor fuel mileage
Check engine light
Tachometer dropping out or acting erratic
Hard restart after the engine is hot
A bad camshaft sensor often causes starting problems, rough running, poor acceleration, or trouble codes related to cam position. Common generic code families include P0340 and related camshaft position circuit codes.
A bad crankshaft sensor often causes a no-start, sudden stall, or loss of rpm signal. Common generic code families include P0335 and related crankshaft position circuit codes.
On many Nissan vehicles, bad cam or crank sensor signals can also trigger a fail-safe strategy. The ECM may limit power, change timing, or use a backup strategy so the engine can run well enough to get off the road. In some cases, the engine will not run at all.
Sensor problems can feel like fuel pump problems, ignition problems, or transmission problems. For example, a failing crank sensor may cause the engine to shut off cleanly with no sputtering, almost as if someone turned the key off. A failing cam sensor may cause a longer crank because the ECM needs extra time to figure out cylinder position.
A good diagnosis usually checks more than just the trouble code. A technician may inspect the connector, look for oil in the sensor plug, check wiring damage, verify power and ground, and use a scan tool or lab scope to look at the signal. Replacing parts without testing can get expensive, especially when wiring or timing issues are the real cause.

Why correct sensor data matters for starting and drivability
Starting an engine is one of the hardest jobs for the ECM because the engine is turning slowly and every signal matters. During cranking, the ECM looks for a steady crankshaft signal so it knows the engine is moving. It also looks for camshaft position so it can identify the correct cylinder sequence.
Once the ECM has good data, it can command spark and fuel at the right time. If either signal is missing, weak, or out of sync, the engine may crank without starting. It may also start only after several seconds because the ECM has to use a backup strategy.
Accurate cam and crank data also affects normal driving. At idle, timing errors can make the engine shake or stall. During acceleration, bad position data can cause hesitation because spark and fuel are not being delivered at the best moment. At highway speed, unstable signals can cause bucking, power loss, or sudden shutdown.
Correct data matters for engine protection too. The ECM uses timing information to prevent misfires, manage knock control, adjust valve timing, and protect the catalytic converter from unburned fuel. If the ECM cannot trust the cam and crank signals, it may reduce performance or store a code to prevent further damage.
For a Nissan, the camshaft and crankshaft sensors are not small side parts. They are core inputs for engine control. The crank sensor tells the ECM where the pistons are and how fast they are moving. The cam sensor tells the ECM which cylinder is ready and whether the valves are timed correctly. Together, they help the engine start quickly, idle smoothly, accelerate cleanly, and run in sync.
If a Nissan has a crank-no-start, random stall, long crank, or cam/crank sensor code, do not ignore it. Start with the basics: check the code, inspect the connectors, look for damaged wiring, and verify the sensor signal before replacing parts. A clean, accurate signal from both sensors is what lets the engine computer do its job.



Comments