Megasquirt-3 Ignition System Setup
Complete guide to ignition setup: coil types, trigger wheels, dwell time, and ignition timing verification on Megasquirt-3
Introduction
The ignition system is one of the key subsystems controlled by the Megasquirt-3 ECU. Proper ignition setup directly affects engine stability, power output, and longevity. This guide covers all stages of the setup process: from selecting the ignition type and trigger wheel to verifying ignition timing with a timing light.
Warning: Working with ignition systems involves high voltage (up to 40,000 V on the coil secondary winding). Never touch high-voltage wires, coils, or spark plugs while the engine is running or during cranking. Failure to follow safety precautions can result in electric shock.
Ignition System Types
Megasquirt-3 supports several ignition system types. The choice depends on your engine configuration and available components.
Distributor
The classic setup with a single ignition output from the ECU. A mechanical distributor routes the spark to the appropriate cylinder. This is the simplest option for transitioning from a carbureted system to ECU control.
- Uses a single ignition output (Spark A)
- The distributor mechanically distributes spark to the cylinders
- No camshaft position sensor required
- Suitable for upgrading classic engines with minimal modifications
Wasted Spark
Each dual-output coil serves a pair of cylinders whose pistons move in sync (e.g., cylinders 1-4 and 2-3 on a four-cylinder engine). The spark fires simultaneously in both cylinders: one is on its power stroke while the other is on its exhaust stroke (hence the name "wasted" spark).
- One coil per pair of cylinders
- No camshaft position sensor required — the ECU does not need to determine the phase
- Reliable and simple setup, widely used in production vehicles
- A 4-cylinder engine requires 2 coils, a 6-cylinder requires 3
COP (Coil-on-Plug) — Individual Coils
Each cylinder has its own ignition coil mounted directly on the spark plug. This is the most modern and precise system.
- Individual coil for each cylinder
- Full sequential operation requires a camshaft position sensor (for cam phase detection)
- Without a camshaft sensor, MS3 can operate in wasted spark mode using COP coils
- Maximum tuning flexibility: individual timing and dwell can be set for each cylinder
CDI (Capacitive Discharge Ignition)
Capacitive discharge systems store energy in a capacitor rather than in an inductive coil. They produce a short, powerful spark.
- Used on high-revving and racing engines
- Spark rise time is significantly shorter than inductive systems
- MS3 controls the CDI unit via the ignition output
- Dwell settings differ from conventional coils — follow the CDI unit manufacturer's documentation
Trigger Wheels
A trigger wheel is a toothed wheel on the crankshaft (or camshaft) that the ECU uses to determine engine position. Correct trigger wheel selection and setup are critical for ignition operation.
Missing Tooth
The most common type. The wheel has evenly spaced teeth with one or two teeth missing to establish a reference point.
| Wheel Format | Teeth | Missing | Resolution | |-------------|-------|---------|------------| | 36-1 | 35 + 1 gap | 1 | 10° | | 60-2 | 58 + 2 gaps | 2 | 6° | | 12-1 | 11 + 1 gap | 1 | 30° |
The 60-2 wheel provides the best resolution and is recommended for most installations. The 36-1 wheel offers a good compromise between resolution and simplicity.
Dual Wheel
Two separate sensors are used: one on the crankshaft (primary) and another on the camshaft (for phase detection). This configuration is used when the factory engine design uses separate sensors.
Special Trigger Wheels
Many production engines use non-standard trigger wheels. MS3 has built-in support for most of them:
- GM LS1/LS2 24X — 24-tooth crank wheel + 1-tooth cam wheel
- Ford 36-1 with VR sensor — standard for Ford engines
- Nissan CAS — optical sensor in the distributor
- Mitsubishi 4G63 — specific tooth pattern (also used on Evo)
- Honda — various configurations depending on the engine series (D, B, K, H)
When selecting the trigger wheel mode in TunerStudio, make sure the pattern matches your engine exactly. A mismatch will prevent synchronization.
Sensor Types: VR vs Hall
There are two main types of crankshaft and camshaft position sensors.
VR (Variable Reluctance) — Inductive Sensor:
- Generates an analog sinusoidal signal
- Signal amplitude depends on RPM (weak signal at low RPM)
- Two wires, no external power required
- Correct wiring polarity is critical (which wire goes to signal, which to ground)
Hall Effect Sensor (Digital):
- Generates a square-wave digital signal (0 V / 5 V or 0 V / 12 V)
- Amplitude does not depend on RPM — stable signal even during cranking
- Three wires: power, ground, signal
- Polarity is unambiguous
Warning: When using a VR sensor, incorrect wiring polarity is one of the most common causes of synchronization problems. If the engine does not start or runs erratically, try swapping the VR sensor wires.
Going High / Going Low Settings
The Going High and Going Low parameters determine which signal edge the ECU uses to detect a trigger wheel tooth passing.
- Going High (rising edge) — the ECU registers a tooth when the signal transitions from low to high
- Going Low (falling edge) — the ECU registers a tooth when the signal transitions from high to low
The correct choice depends on the sensor type and the input circuit on the MS3 board. For VR sensors with a VR conditioner on the MS3 board, Going Low is typically used. For Hall sensors, it depends on the specific circuit.
How to determine the correct polarity:
- Connect the ECU and open TunerStudio
- Crank the engine with the starter
- Observe the signal on the Trigger Wizard or Composite Logger screen
- With the correct setting, RPM should be stable and the Sync indicator should be green
- With incorrect polarity, RPM will fluctuate, sync will be lost, and false triggers may occur
Incorrect polarity = unstable RPM, loss of sync, misfires, and inability to start the engine. This is the first thing to check when troubleshooting ignition problems.
Dwell Time (Coil Charge Time)
Dwell time is the duration during which current flows through the coil's primary winding, building up energy in the magnetic field. When the current is interrupted, this energy is released as a high-voltage pulse on the secondary winding.
Typical Dwell Values
| Coil Type | Dwell at 14 V | Notes | |-----------|--------------|-------| | Standard oil-filled | 3.0–4.0 ms | Classic coils | | Wasted spark (dual-output) | 2.5–3.5 ms | GM LS, Ford EDIS, etc. | | COP (individual) | 2.0–3.5 ms | Varies by manufacturer | | High-energy (performance) | 3.0–5.0 ms | Check specifications |
Important: Always check the coil manufacturer's recommendations. The values listed above are approximate.
Dwell vs Battery Voltage Table
Supply voltage affects the rate of current rise in the coil. At reduced voltage (e.g., during cranking, when voltage drops to 8–10 V), dwell must be increased to achieve full coil charge.
| Voltage (V) | Dwell Correction | |-------------|-----------------| | 6.0 | +60–80% | | 8.0 | +30–50% | | 10.0 | +15–25% | | 12.0 | +5–10% | | 14.0 | Base value (0%) | | 16.0 | −5–10% |
In TunerStudio, the dwell vs. voltage correction table is configured under Ignition Settings → Dwell. Fill it in according to your coil specifications.
Consequences of Incorrect Dwell
Dwell too long (overcharging):
- Overheating of the coil primary winding
- Excessive current through the ECU output transistors (IGBTs) — risk of failure
- Coil damage from prolonged operation
- At high RPM, dwell is physically limited by the time between spark events
Dwell too short (undercharging):
- Weak spark — incomplete combustion of the air-fuel mixture
- Misfires, especially under load
- Difficult starting
- Power loss
Warning: Excessive dwell can damage both the ignition coils and the ECU output stages. Start with conservative values and increase gradually while monitoring coil temperature.
Verifying Ignition Timing
After setting up the trigger wheel and ignition parameters, you must verify that the actual ignition timing angle matches the value displayed in TunerStudio. This is a critical step — a timing error can cause detonation and engine destruction.
Step-by-Step Verification Procedure
Step 1: Enable Test Mode (Fixed Timing)
In TunerStudio, go to Ignition Settings → Fixed Timing (or use the Test Mode button). Set a fixed ignition timing angle, for example 10° BTDC. In this mode, MS3 ignores the spark table and outputs a constant specified angle.
Step 2: Prepare the Timing Light
Connect the timing light to the first cylinder's spark plug wire (or use an inductive clamp). Make sure the timing marks on the crankshaft pulley and engine block are clean and clearly visible. If necessary, mark them with a white marker or correction fluid.
Step 3: Start the Engine and Check the Mark
Start the engine and aim the timing light at the crankshaft pulley. The mark on the pulley should align with the pointer on the engine block at the specified angle (10° BTDC in our example).
Step 4: Adjust if Misaligned
If the mark does not align with the specified angle:
- In TunerStudio, open the trigger wheel settings
- Find the Trigger Angle (or Tooth #1 Angle / Offset) parameter
- Adjust the value: if the actual angle is greater — decrease the offset; if smaller — increase it
- Repeat the timing light check
- Verify that the mark aligns at several fixed angle values (e.g., 0°, 10°, 20°)
Step 5: Disable Test Mode
After successful verification, be sure to disable Fixed Timing and return control to the spark table. Forgetting to disable test mode is a common mistake that results in driving with a fixed timing angle.
Warning: Never operate the engine under load without first verifying ignition timing with a timing light. Incorrect timing (especially too much advance) causes detonation that can destroy pistons and connecting rods within seconds.
Spark Table (Ignition Advance Table)
The spark table is a 3D map that defines the ignition advance angle based on engine RPM and load. It is the primary tool for controlling spark timing.
Table Axes
- X axis (horizontal): engine RPM
- Y axis (vertical): load — manifold absolute pressure MAP (kPa) when using Speed Density, or throttle position TPS (%) when using Alpha-N
- Cell values: ignition advance angle in degrees BTDC
Typical Values for a Naturally Aspirated Engine
| RPM / MAP | 20 kPa (idle) | 40 kPa | 60 kPa | 80 kPa | 100 kPa (WOT) | |-----------|--------------|--------|--------|--------|---------------| | 800 | 15° | 18° | 16° | 14° | 10° | | 2000 | 28° | 30° | 28° | 24° | 20° | | 3000 | 32° | 34° | 32° | 28° | 24° | | 4000 | 34° | 35° | 33° | 30° | 28° | | 5000 | 35° | 35° | 34° | 32° | 30° | | 6000 | 35° | 35° | 34° | 32° | 30° |
Note: These values are provided as a starting point. Every engine is different, and optimal timing angles can only be determined on a dynamometer or through road tuning with knock monitoring.
Considerations for Turbocharged Engines
Turbocharged engines operate at boost pressures above atmospheric (over 100 kPa), which significantly increases the tendency for detonation. Ignition advance angles under load (at boost pressure) must be considerably lower:
- At idle and partial load: angles similar to a naturally aspirated engine (25–35°)
- At full load (100 kPa): 18–25°
- At boost pressure (120–200 kPa): 15–20° depending on compression ratio, fuel, and boost pressure
- Higher boost pressure requires less ignition advance
Warning: For turbocharged engines, spark table tuning exclusively on a dynamometer with knock monitoring (knock sensor or audio monitoring) is strongly recommended. Detonation on a boosted engine destroys pistons and bearings almost instantly.
Spark Table Tuning Recommendations
- Start with conservative angles — slightly less than optimal is always better than too much. Insufficient advance costs a little power; excessive advance costs the engine.
- Use quality fuel — octane rating directly affects the maximum safe ignition advance. Do not tune on 95 octane if you plan to run 92 octane.
- Monitor for knock — use a knock sensor and/or audio monitoring on the dyno.
- Tune at operating temperature — a cold engine is less prone to knock, so tuning on a cold engine will result in overly aggressive timing.
- Test under various conditions — a tune set at 20°C ambient may be dangerous at 35°C. Leave a safety margin.
Additional Ignition Settings
Coolant Temperature Correction
A cold engine requires increased ignition advance for stable idle during warm-up. In TunerStudio, this is configured in the Spark Advance vs. Coolant Temperature table. Typical correction: +5–10° when coolant temperature is below 40°C, gradually decreasing to 0° at operating temperature (80–90°C).
Rev Limiter
MS3 can limit maximum RPM by cutting spark. Set the Spark Cut Rev Limit to a safe value for your engine. A soft cut (gradually cutting individual cylinders) before a hard cut (complete spark cut) is recommended — it is gentler on the drivetrain.
Cranking Advance
Ignition timing during cranking is typically fixed at 5–15° BTDC. This parameter is independent of the main spark table and is configured separately under Cranking Settings.
Troubleshooting Common Problems
| Problem | Possible Cause | Solution | |---------|---------------|----------| | No sync (Sync Loss) | Incorrect VR polarity, wrong wheel type | Check polarity, verify trigger wheel type | | Unstable RPM | Incorrect Going High / Going Low | Try the other polarity setting | | Backfiring during cranking | Incorrect Trigger Angle / Offset | Verify timing with a timing light | | Coil overheating | Excessive dwell time | Reduce dwell, check coil specifications | | Misfires at high RPM | Insufficient dwell, weak VR signal | Increase dwell, check sensor gap | | Knock under load | Excessive ignition advance | Reduce angles in the spark table |
Reference Materials
- Official MS3 documentation: msextra.com/doc/ms3
- MS3 Setting Up Guide (PDF) — Ignition section
- Support forum: msextra.com/forum
- Getting Started with Megasquirt 3 — basic ECU setup