Crank and Cam Sensors: Wiring, Setup and Common Trigger Errors

Crank and Cam Sensors: Wiring, Setup and Common Trigger Errors

Crank and cam sensors are two of the most important inputs to a standalone ECU. The crank sensor tells the ECU how fast the engine is turning and where the crankshaft is positioned. The cam sensor identifies the engine cycle so the ECU can correctly control functions such as sequential injection, fully sequential ignition and variable cam timing.

Not every engine uses a separate cam sensor. Some simpler systems operate from the crank sensor alone, particularly engines using wasted-spark ignition with batch or group injection. These strategies do not need to identify which of the two crankshaft revolutions the engine is on, so the ECU can operate without full 720-degree engine-cycle information.

A cam signal is normally required for fully sequential injection, variable cam timing and direct-spark ignition where each coil fires only on the compression stroke. However, wasted-spark ignition does not automatically mean there will be no cam sensor. Some systems still use one for sequential injection, engine synchronisation or cam position control.

If a trigger signal required by the chosen system is missing or unstable, the engine may crank without starting, show an erratic RPM reading, misfire at higher engine speeds or lose trigger synchronisation completely. Depending on the ECU and trigger strategy, an engine may still run without a cam signal but fall back to batch injection or wasted-spark operation.

Many trigger problems are caused by the wiring rather than the sensor or ECU. Using the wrong sensor supply, reversing the polarity of a reluctor sensor, grounding the shield incorrectly or routing trigger wiring beside ignition and starter cables can all create faults that look like a tuning problem.

This guide explains how Hall effect and variable reluctance sensors should be wired and what to check when an ECU reports trigger errors.

Identify the sensor type before wiring it

Crank and cam sensors are not all wired in the same way. The first step is to confirm whether each sensor is a Hall effect sensor or a variable reluctance sensor, often shortened to VR or reluctor.

Do not identify a sensor only by the number of pins or the original wire colours. Check the sensor data sheet, the vehicle wiring diagram or the ECU manufacturer's information before making any connections.

Hall effect sensors

A Hall effect sensor will normally have three connections:

  • Power supply
  • Sensor ground
  • Signal output

The required supply may be 5V, 8V or 12V depending on the sensor. Supplying the wrong voltage can prevent the sensor from working and may damage it, so this should never be guessed.

The ground should normally return to the ECU's sensor or trigger ground rather than being connected to the engine or chassis. The signal wire connects to the appropriate crank or cam trigger input.

Hall sensors produce a digital signal that switches between low and high voltage as the trigger teeth pass the sensor. Some Hall sensors have an open-collector output and require a pull-up resistor. Many aftermarket ECUs provide a selectable internal pull-up, but whether it should be enabled depends on the sensor and ECU.

Optical trigger sensors also produce a digital signal and are generally wired and configured in a similar way, although their voltage and pull-up requirements still need to be confirmed.

Variable reluctance sensors

A VR sensor is normally a two-wire passive sensor:

  • Trigger positive
  • Trigger negative

It does not require a power supply. Some VR sensors have a third terminal for the cable shield. This is not a power connection, and the shield should normally be grounded at one end only. In most standalone ECU looms, it is terminated at the ECU end using the trigger ground, sensor ground or dedicated shield ground specified by the ECU manufacturer. We cover this in more detail in the shielded cable section below.

The sensor creates an AC waveform as the teeth pass its magnetic tip. The voltage is usually lowest during cranking and increases with engine speed. This makes correct air gap, wiring, shielding and ECU setup especially important.

VR sensor polarity matters. Reversing the positive and negative wires changes the direction of the waveform and can make the ECU trigger from the wrong edge. This may cause unstable timing, poor starting or trigger errors as engine speed increases.

Wire colours are not a reliable way to determine VR polarity. Use the manufacturer's pinout and confirm the waveform with the ECU's trigger scope where possible.

Connect each sensor to the correct ECU input

On most standalone ECUs, the crank sensor connects to Trigger 1 and the cam sensor connects to Trigger 2. Other manufacturers may describe these as crank, cam, home or sync inputs, so always follow the wiring diagram for the ECU being installed.

For a Hall sensor, the usual connections are:

  • Correct regulated or switched power supply
  • ECU sensor or trigger ground
  • Crank or cam trigger input

For a VR sensor, the usual connections are:

  • Trigger positive to the ECU trigger input
  • Trigger negative to the ECU trigger negative or trigger ground specified by the manufacturer

Avoid unnecessary joins in trigger wiring. If a join is required, use a proper sealed crimp or splice and maintain the shielding through the repaired section.

Do not assume a crank or cam signal can simply be shared with another ECU, dashboard or control unit. Adding another device can load or distort the signal, particularly with a VR sensor. If a signal must be shared, check the requirements of both devices and use a suitable signal conditioner or CAN data where required.

Use shielded cable correctly

Crank and cam signals are sensitive to electrical interference, particularly a VR signal during cranking when its output voltage is low.

Use the cable type specified by the ECU manufacturer. This will normally be a twisted, shielded cable for VR sensors and may also be recommended for Hall or optical sensors.

The shield is the braided or foil layer around the signal conductors. It protects the trigger signal from electrical noise but should not carry normal sensor current.

In most standalone ECU installations, the shield should:

  • Connect at the ECU end to the dedicated shield ground, trigger ground or sensor ground specified by the ECU manufacturer
  • Be grounded at one end only, normally at the ECU
  • Remain isolated from the engine block and chassis
  • Remain continuous along the shielded section of cable

If a VR sensor has a third pin for the shield, do not automatically ground the shield again at both the sensor and ECU ends. Grounding a shield at both ends can create a ground loop and introduce the interference it is intended to prevent. The wiring diagram for the exact sensor and ECU should always take priority.

Correct shielding is only one part of the grounding system. Our guide to common ECU grounding mistakes explains how ECU power grounds, sensor grounds and high-current grounds should be kept separate.

Keep trigger wiring away from electrical noise

In a complete engine loom, it is normal for the shielded crank and cam cables to be bundled inside the main harness with other circuits for part of their route. Keeping them completely separate is often not practical.

The more important consideration is how the complete loom is routed around the engine bay. Keep it away from strong sources of electrical interference and high-current switching, particularly:

  • Ignition coils, coil power wiring and HT leads
  • Starter motors and starter cables
  • Alternators and alternator output cables
  • Electric motors such as fuel pumps and cooling fans
  • Relays, solenoids and other high-current switched devices

Where the loom must pass near one of these components, keep the distance as short as possible and avoid running alongside its power cable for a long distance. If two cables must cross, crossing at roughly 90 degrees reduces the length over which noise can be induced.

The cable should also be secured away from exhaust heat, sharp edges and moving components. A trigger circuit that works when the car is first built may become intermittent later if heat or vibration damages the cable near the sensor.

Check sensor air gap and mounting

Good wiring cannot compensate for a poorly mounted sensor.

The air gap between the sensor and trigger wheel must match the sensor manufacturer's specification. Too much gap can create a weak or missing signal, while too little can allow the sensor to contact the trigger wheel as parts move or expand.

The sensor bracket must be rigid. Bracket movement, crank pulley runout or damaged trigger teeth can change the air gap as the engine rotates and create an inconsistent waveform.

Also check that:

  • The sensor is suitable for the trigger wheel material and tooth shape
  • The trigger wheel is secure and runs true
  • Missing teeth or reference marks match the ECU configuration
  • The sensor is protected from excessive heat

There is no universal air-gap setting that is correct for every Hall or VR sensor. Always start with the specification for the sensor and trigger kit being used.

During fault-finding, inspect the sensor and connector as well as the loom. Metal particles can collect on the magnetic tip of a VR sensor and affect the signal or effective air gap. Loose terminals, damaged connector locks, oil, water or corrosion can also create an intermittent fault that looks like a trigger configuration problem.

Configure the ECU for the sensor and trigger pattern

The wiring and ECU settings must agree. A correctly wired sensor can still produce trigger errors if the ECU is configured for the wrong input type or trigger pattern.

Check the following settings:

  • Hall or reluctor input type
  • Trigger wheel pattern
  • Number of teeth and missing teeth
  • Crank and cam triggering edge
  • Pull-up resistor setting
  • Trigger arming thresholds
  • Input filtering

Do not add filtering simply to hide an unstable signal. Excessive filtering can cause the ECU to miss genuine trigger teeth, particularly at higher engine speeds. The cause of the noise or incorrect waveform should be found first.

How to check the signals before starting the engine

Before attempting to start a newly wired engine, disable the fuel and ignition outputs and crank the engine while monitoring the ECU.

Start with these checks:

  1. Confirm continuity from each sensor connector to the correct ECU pin.
  2. Check for shorts between the signal, ground, power and shield.
  3. For a Hall sensor, confirm the correct supply voltage and sensor ground at the connector.
  4. Crank the engine and check for a stable RPM reading in the ECU software.
  5. Record a trigger scope or trigger log if the ECU supports it.
  6. Check the ECU's trigger error or synchronisation counter.

A trigger scope is much more useful than replacing parts at random. It can show reversed VR polarity, missing teeth, electrical noise, a weak cranking signal or a cam signal arriving in the wrong position.

Verify the base ignition timing with a timing light

Once the ECU has a stable engine speed reading and is synchronising correctly, the base ignition timing must be checked with a timing light. This is the process that matches the crank position calculated by the ECU to the engine's true mechanical position.

The ECU cannot see the timing mark on the crank pulley. It calculates engine position from the crank and cam trigger signals. The timing mark gives the person setting up the ECU a physical reference, allowing the trigger offset in the software to be corrected until the ECU's commanded ignition angle matches the real crankshaft position.

Find and mark true top dead centre

Before changing the ECU settings, make sure the timing mark is accurate.

  1. Remove the spark plug from cylinder one and turn the engine over by hand in its normal direction of rotation. Do not use the starter motor while measuring piston position.
  2. Confirm that cylinder one is approaching TDC on its compression stroke. On a four-stroke engine, both valves should be closed at this point.
  3. Establish true TDC mechanically using a dial indicator or a suitable piston stop. Do not judge it only by inserting a screwdriver through the spark plug hole, because the piston moves very little while the crankshaft passes through TDC.
  4. With a dial indicator, take readings at equal piston travel on either side of the top of the stroke. True TDC is halfway between the two corresponding crank positions.
  5. With a piston stop, position the piston safely below TDC before fitting the tool. Gently rotate the crank by hand until the piston touches the stop and mark the pulley, then rotate it in the opposite direction until it touches again and make a second mark. True TDC is halfway between those two marks. Remove the piston stop before cranking or starting the engine.
  6. Once true TDC has been established, make a clear zero-degree mark on the crank pulley or crank hub and a matching fixed reference mark on the engine or timing cover.

Do not automatically trust an old factory mark on a modified engine. Trigger wheels, pulleys and timing covers may have been changed, and the outer ring of a worn bonded crank damper can move in relation to the crankshaft. If the engine already has timing marks, verify them mechanically before using them to calibrate the ECU.

If the timing will be locked at a value other than zero, such as 10 degrees before top dead centre, the pulley or timing scale must also give an accurate reference for that angle.

Match the ECU timing to the engine

Once the true TDC mark has been confirmed:

  1. Complete the initial trigger checks and make sure the ECU shows a stable engine speed while cranking.
  2. Keep the fuel system or injector outputs disabled so the engine cannot start during the first check. Re-enable the ignition output so the timing light can detect the spark.
  3. Connect the timing light to the ignition circuit for cylinder one.
  4. In the ECU software, enable the ignition timing lock or base timing calibration mode and command a fixed angle, commonly 0 or 10 degrees before top dead centre. Follow the ECU manufacturer's recommended value and procedure.
  5. Crank the engine and point the timing light at the crank pulley and fixed reference mark.
  6. Compare the position shown by the timing light with the angle commanded in the ECU.
  7. If they do not match, adjust the ECU's trigger offset, TDC offset or base timing calibration until the physical timing mark agrees with the commanded angle. The name of this setting varies between ECU manufacturers.

Do not correct a base timing error by changing the main ignition table. The table can only be trusted after the ECU and engine have been correctly synchronised.

Once the cranking check is correct, re-enable the fuel system and start the engine. Keep the timing locked and repeat the check at idle and at a slightly higher engine speed. The timing should remain aligned and stable as RPM increases.

If the timing moves or drifts away from the locked value as engine speed rises, investigate the trigger edge, VR sensor polarity, sensor air gap, ignition delay settings and signal quality before tuning the engine.

When the checks are complete, turn off the ignition timing lock and return the ECU to normal timing control.

Why correct base timing is so important

Every ignition value in the ECU is calculated from its assumed crankshaft position. If the base timing calibration is 10 degrees out, an ignition table requesting 20 degrees may actually produce 10 or 30 degrees at the engine.

Timing that is too far advanced can cause detonation, difficult cranking and serious engine damage. Timing that is too retarded can cause poor starting, low power and excessive exhaust temperature.

Accurate crank position is also important for correctly phased sequential injection, sequential ignition and variable cam control. Base timing should therefore be checked on every new ECU installation and checked again if the crank sensor, trigger wheel, pulley, ECU or trigger settings are changed.

Base timing is one part of the wider ECU setup. Our guide to MAP, IAT, TPS and flex fuel sensors in ECU tuning explains how the other main engine inputs affect the calibration once the trigger system is working correctly.

Common causes of crank and cam trigger errors

If the ECU shows trigger errors or loses synchronisation, check for:

  • The wrong sensor type selected in the ECU
  • Incorrect Hall sensor supply voltage
  • A missing or incorrectly enabled pull-up resistor
  • Reversed VR sensor polarity
  • Trigger positive and negative connected to the wrong ECU pins
  • Sensor ground connected to the chassis instead of the ECU
  • Shield grounded at both ends
  • Damaged or incomplete shielding
  • The complete loom routed directly over or alongside strong interference sources such as coils, starter cables or electric motors
  • Excessive sensor air gap
  • A flexible sensor bracket or trigger wheel runout
  • Damaged, incorrectly spaced or incorrectly configured trigger teeth
  • Metal debris on a magnetic sensor tip
  • Loose, damaged, contaminated or corroded sensor connector terminals
  • A trigger signal incorrectly shared with another device
  • Poor ECU grounding
  • Low battery voltage or slow cranking speed
  • Incorrect trigger edge, arming threshold or filtering settings

The point at which the fault occurs can also help identify it. No RPM while cranking usually suggests a wiring, supply, sensor or basic configuration problem. A fault that appears only at higher RPM is more likely to involve polarity, noise, air gap, trigger thresholds or mechanical movement.

Final checks

Reliable crank and cam signals begin with identifying the sensors correctly, using the correct ECU inputs and building the trigger wiring as a sensitive signal circuit.

Use the correct supply voltage, return sensor grounds to the ECU, maintain the shielding, route the complete loom carefully, confirm the trigger waveform and calibrate the base ignition timing before tuning the engine.

Always use the wiring and setup information for the exact sensor and ECU being installed. Our ECU downloads and resources page links to official software, manuals and wiring documentation for the brands we support. If the pinout or sensor type is unknown, confirm it before applying power.

ShopECU supplies standalone ECUs and wiring components, designs and builds custom engine looms, and carries out ECU setup and tuning for performance and motorsport applications. Explore our custom wiring and ECU services, or contact ShopECU if you need help selecting an ECU, planning the wiring or setting up your engine management system.

Back to blog