Last updated: November 30, 2026

Advanced Menu

The Advanced menu holds the extra features beyond basic fuel, ignition and idle: launch control, anti-lag, flat shift, nitrous, boost control, general purpose PWM outputs, electronic throttle, VVT, analog multi-switch, Lua and transmission. It is the Advanced button in the TunerStudio top menu bar.

Almost every feature here is off by default. Dialog fields stay greyed out until the feature is turned on with its first field (for example Launch Control = enabled). Set up and test one feature at a time.

Group Items
Power control Launch Control, Anti-Lag ALS, Torque Control, Nitrous Control, VVL Control, Cylinder offsets
Boost Boost Control, Boost blend tables
Outputs Generic PWM
DC motors DC motor actuator(s) function, Electronic Throttle Body, ETB bias curve, ETB pedal target, Electronic Wastegate
Cams VVT outputs and PID, VVT intake target, VVT exhaust target
Inputs Analog multi-switch 1-4
Scripts Lua, Lua Calibrations
Transmission Transmission Settings and the other pages marked (alpha)

The Advanced menu differs between boards. The example below is from a Mazduino Mini 6CH, which has an H-bridge and so shows the DC motor and Electronic Throttle Body items. LITE and Compact do not have them.

Advanced menu on a Mini 6CH


Launch Control

Advanced → Launch Control

Launch Control

Holds RPM while the car waits at the line, for consistent starts. The dialog also calls it Rolling antilag. In the screenshot the feature is still disabled, so every field is greyed out.

Activation

  • Launch Control: enabled turns it on.
  • Activation Mode: Launch Button (a separate button), Clutch Down Switch (clutch pedal switch), Speed Based, Brake Pedal or Lua.
  • Launch Button / Clutch Down and their pin modes: the input pin for the chosen Activation Mode. The clutch pin comes preset on some boards. For a switch to ground pick INVERTED PULLUP, like the Clutch Down preset in the screenshot.
  • Speed Threshold: launch is off above this speed (when above 0).

RPM Limit and Corrections

Field Description
Launch RPM The RPM held during launch.
Launch Control Window Distance below Launch RPM where corrections start. Example from the help: Launch RPM 4000 and a 500 window, corrections start at 3500 RPM.
TPS Threshold Minimum throttle opening for launch to be active.
Use Absolute Timing at Launch / Absolute Timing at Launch Timing is locked to an absolute value instead of being reduced. -10 means 10° ATDC.
Smooth Retard Mode Timing moves gradually from the table to Absolute Timing across the window.
Launch Corrections End RPM Distance below Launch RPM where corrections reach their final value. Example from the help: 4000 and 50, final value at 3950 RPM.
Fuel Added % Extra fuel during launch.

Hard Cut Mode

  • Ignition Cut: cuts spark to hold RPM. Initial Ignition Cut % at the start of the window, rising linearly to Final Ignition Cut % Before launch at the Corrections End RPM.
  • Fuel Cut: cuts injection.

How the cuts work is described in Fuel & Spark Cut.

Launch Not Active? Check This

The launch_control_state panel on the right of the dialog shows which condition is not met:

  1. activateSwitchCondition: the activation input reads ON. isSwitchActivated / isClutchActivated / isBrakePedalActivated only show which Activation Mode is selected. For Launch Button, its pin state is in launchActivatePinState. If it is not ON, check the pin and pin mode.
  2. isValidInputPin: the pin for the chosen Activation Mode is set.
  3. speedCondition: speed is below Speed Threshold. Without a speed sensor, set it to 0.
  4. tpsCondition: throttle is open above TPS Threshold.
  5. rpmLaunchCondition: RPM is inside the window.
  6. isLaunchCondition: every condition is met, launch is active.

Anti-Lag ALS

Advanced → Anti-Lag ALS

Anti-lag for turbo engines: keeps the turbo spinning off throttle by adding air and fuel and retarding timing. The dialog says "Also known as Rotational Idle", but this is not the Rotational Idle in the Idle menu.

Warning

ALS puts a lot of heat into the turbo, manifold and exhaust. Use it for racing only, with a short time limit.

  • AntiLag: enabled turns it on.
  • Activation Mode: Switch Input, Always Active or Lua. Switch Input uses Switch Input and ALS Button mode.
  • ALS timeout: how long ALS may stay active (seconds, 10 max). The current firmware does not use this value yet, so ALS stays active while the activation input is ON and its conditions are met.
  • Max TPS, Min RPM / Max RPM, Min CLT / Max CLT: conditions for ALS to be allowed.
  • Idle Air Add / ETB Air Add: extra air through the idle valve or the electronic throttle.
  • Fuel adjustment and Ignition adjustment: RPM x TPS tables for fuel and timing during ALS.

Torque Control

Advanced → Torque Control

Shift Torque Reduction (Flat Shift)

Cuts power briefly for a gear change without lifting.

  • Enable Shift Torque Reduction: turns it on.
  • Activation Mode: Torque Reduction Button, Launch Button, Clutch Down Switch or Clutch Up Switch, then set its pin.
  • Minimal Engine Temperature: the feature is off below this temperature.
  • Torque Reduction Arming RPM: the button is often shared with launch control. Below this RPM the button means launch, above it means flat shift.
  • Torque Reduction Arming APP: minimum pedal position for the reduction to run.

Torque Reduction Tables

Shift Torque Reduction Time table, Torque Reduction Ignition Retard Table and Torque Reduction Ignition Cut Table: how long power is reduced, the timing retard and the cut percentage. Y axis = current gear. Pick the X axis in the dialog first; the table appears only once it is set.


Nitrous Control

Advanced → Nitrous Control

  • Nitrous Control: turns it on.
  • Arming Method: Digital Switch Input (an arming button) or Lua Gauge (a value from a Lua script).
  • Nitrous Relay and its mode: the nitrous solenoid relay output.
  • Conditions: Minimum Vehicle Speed, Minimum TPS, Minimum CLT, Maximum MAP, Maximum AFR, Activation RPM, Dectivation RPM and Dectivation RPM Window (spelled as in the dialog).
  • Fuel Adder (%) and Ignition Retard: extra fuel and timing retard while nitrous is active. The retard is taken off final timing after all corrections.

VVL Control

Advanced → VVL Control

For cams that switch profile through a relay or an on/off solenoid (VVL / switched cam). The fields are like Nitrous: VVL Relay, TPS, CLT, MAP and AFR conditions, Activation RPM, Deactivation RPM and window, plus Fuel Adder and Ignition Retard while the second profile is active.

Cylinder Offsets

Advanced → Cylinder offsets

Angle offset per cylinder for odd fire engines (for example a V-twin or some V6/V10s). Positive = retard, negative = advance. Applies to both ignition and injection timing. A normal 4-cylinder: leave them all at 0.


Boost Control

Advanced → Boost Control → Boost control options

Boost Control

Drives a wastegate solenoid (or another actuator) with PWM. The screenshot values are only an example, and the feature is still disabled.

Field Description
Boost Control enabled turns it on. The other Boost Control items appear after this.
Control Mode Open Loop (duty from a table) or Open + Closed Loop (duty table plus a PID towards a boost target).
Output / Output Mode Boost solenoid pin and output mode.
Bench Test Boost Solenoid Tests the solenoid without the engine running. Active once Output is set.
Frequency PWM frequency to suit the solenoid.
Safe duty cycle Duty used on a sensor error, or while the RPM/TPS/MAP conditions below are not met. Set the duty that gives the least boost.
No boost control below RPM / TPS / MAP Below these limits Safe duty cycle is used, for example so the solenoid does not chatter at idle.

Other items in the Boost Control group:

  • Boost control Open loop base duty cycle: duty table (RPM x a selectable Y axis). Start here, in closed loop mode too.
  • Boost control open loop gear adder: extra duty per gear.
  • Boost control target (closed loop only): boost target in kPa (RPM x TPS).
  • Boost control PID (closed loop only): Enable closed loop above (minimum MAP before the PID runs), P/I/D gains, adjustment limits.
  • CLT / IAT boost duty multiplier and CLT / IAT boost target adder: temperature corrections.

Boost Blend Tables

Advanced → Boost blend tables

Two blend tables for the open loop duty (Open loop 1/2 bias and adder) and two for the closed loop target (Closed loop 1/2). They work like the other blend tables: pick the Blend parameter, fill the bias curve, then the adder table. Example from the dialog: +10 in the table with a 50% bias adds 5% duty. Map switching examples are in Map Switching and Second Table.


Generic PWM

Advanced → Generic PWM → General Purpose PWM 1-4

Four general purpose PWM outputs whose duty comes from a 2D table with selectable X and Y axes (RPM, TPS, CLT, MAP and other channels).

  • Output: output pin. The table appears once the pin is set.
  • Frequency: PWM frequency. 0 Hz = on/off mode: the output turns ON when the table value is above On above duty and OFF below Off below duty (hysteresis).
  • Duty if error: duty on a sensor error. Set a value that is safe for the connected device.
  • X Axis, Y Axis, Note: table axes and a name note.

For outputs that only switch ON/OFF from logic conditions, see also Logic Outputs.


DC Motors and Electronic Throttle

The DC motor and ETB items can only be used on boards with an H-bridge: Mazduino Core and Mazduino Mini 6CH.

Board Menus Notes
Mazduino Core, Mini 6CH DC motor actuator(s) function, ETB, EWG Has an H-bridge. ETB is off by default. The DC hardware menu is hidden because the pins are preset.
Mazduino LITE, Compact Only the ETB curves, no ETB dialog No H-bridge. The throttle function is always cleared, also for a tune made on another board.
Mazduino Mega100 ETB menus still shown The board has no H-bridge, so ETB is not supported.
Mazduino Mega100-512 No ETB ETB is not built into this firmware.

TPS and Pedal Sensors for ETB

An ETB needs four sensor inputs, all set in the Sensors menu:

Sensor Dialog Field
TPS1 Sensors → TPS Primary sensor input
TPS2 (second sensor on the same throttle body) Sensors → TPS Secondary sensor input
PPS1 Sensors → Accelerator pedal Accelerator position primary sensor
PPS2 Sensors → Accelerator pedal Accelerator position secondary sensor
  • An electronic throttle body and an electronic pedal each have two sensors. The firmware compares the pair. If one is not set, or they differ by more than TPS/PPS Error Detection Threshold, the ETB will not move (error status Redundancy).
  • Wire the two sensors to separate inputs. If their calibrations are almost identical, the firmware assumes one sensor is wired to both inputs and shows an error.
  • Calibrate the pedal with the Grab buttons in Accelerator Pedal. Calibrate the TPS with Auto Calibrate ETB 1 in the ETB dialog, not the Grab buttons in the TPS dialog. See TPS.
  • Throttle bodies whose second sensor has a special scale use Ford/Toyota redundant TPS mode in the TPS dialog.
  • A second throttle body (ETB 2) uses Throttle Body #2 Sensor(s) in the same dialog.

DC Motor Actuator(s) Function

Advanced → DC motor actuator(s) function

DC motor actuator(s) function

H-Bridge #1 function and H-Bridge #2 function: None, Throttle 1, Throttle 2, Idle Valve or Wastegate.

Since the 24 November 2026 firmware, Core and Mini 6CH ship with both functions = None, so cars with a cable throttle can use the TPS calibration buttons. To use an ETB, set H-Bridge #1 function = Throttle 1 and burn. While a throttle function is set, the TPS grab buttons in TPS calibration are disabled.

Electronic Throttle Body

Advanced → Electronic Throttle Body actuator

Electronic Throttle Body

Setup order:

  1. Calibrate the TPS sensor (Sensors menu) and burn.
  2. Bench Test ETB 1 (open 300ms): watch that the throttle opens first, then closes. If it is the other way round, swap the ETB+ and ETB- wires.
  3. Auto Calibrate ETB 1: needs ignition voltage.
  4. Start ETB PID Autotune, let it run 10-15 seconds, then Stop ETB PID Autotune. The result is used for every ETB.

Other settings:

  • Disable ETB if engine is stopped: turns the motor off with the engine stopped, reducing current draw and PWM noise.
  • PWM Frequency, Minimum ETB position (so the throttle does not slam into its mechanical stop), Maximum ETB position.
  • ETB idle maximum angle: the same as Electronic throttle idle range in Idle hardware.
  • Jam detection: the ETB is shut off when the position error lasts too long. The Temporarily disable jam detection button turns it off until the ECU is powered off, for testing only.

ETB bias curve (feed forward): base duty against TPS. ETB pedal target: target throttle opening (RPM x pedal position). ETB #2 Trim: second throttle only.

Electronic Wastegate

Advanced → Electronic Wastegate actuator and EWG bias curve: shown when one H-bridge = Wastegate and Boost Control is enabled. Calibrate the wastegate position sensor first (Auto Calibrate EWG), then set the PID. The dialog marks this PID as advanced users only.


VVT

Advanced → VVT outputs and PID

VVT

The dialog stays greyed out until a VVT cam decoder is set in Setup → Trigger, as in the screenshot. The screenshot values are the sample project's defaults.

Configuration:

Field Description
Activation Delay Delays VVT control after start (ms) so oil pressure builds first.
Do not control below RPM / CLT VVT is not controlled below these limits.
VVT solenoid bank 1/2 intake/exhaust VVT solenoid pins.
VVT solenoid intake / exhaust cams control direction advance if more duty raises the VVT angle, retard if it lowers it. Intake is usually advance, exhaust usually retard.

Intake PID: offset (feed forward, base duty), P/I/D factor, Min / Max duty. The Bench bank 1 / Bench bank 2 buttons test the solenoid with the engine stopped.

VVT intake target / VVT exhaust target: cam angle target table (RPM x load), 16x16 on Compact, Core, LITE and Mini 6CH (8x8 on Mega100). VVT offset bank 1 intake in the target dialog = angle between the cam sensor and the VVT zero position. The exhaust target appears once the exhaust decoder and pin are set.

Older tunes

The VVT target tables grew from 8x8 to 16x16. Older tunes are not compatible: after updating the firmware, fill the VVT tables in again.


Analog Multi-Switch

Advanced → Analog multi-switch → Analog multi-switch 1-4

Analog multi-switch

Reads up to 16 rotary switch positions from one analog input. Pick the Analog input, then fill the Voltage → Position curve. In the screenshot the curve still has the default 0-15 spread evenly over 0-5 V.

Setup, the default curve and how to use the switch position are explained in Analog Multi-Switch.


Lua

Advanced → Lua and Advanced → Lua Calibrations

Lua is available on every Mazduino board except Mega100-512. Scripts are edited in the rusEFI console (rusefi_console.jar in the firmware bundle), not in these dialogs. The dialogs only set up inputs, outputs and calibration values for the script:

  • Lua Analog Inputs, Lua Digital Inputs: inputs the script reads.
  • Lua Script PWM Outputs: outputs #0-#7 for the script. The script calls startPwm, then setPwmDuty / setPwmFreq.
  • Lua Buttons: command buttons sent to the script.
  • Lua Script Settings: named values the script reads.
  • Script Table #1-4, Script Curve #1-6: tables and curves filled in from TunerStudio and read by the script.

An example script that adds fuel following the idle valve is on the AC page.


Transmission (alpha)

Advanced → Transmission Settings (alpha) and the other pages marked (alpha)

Transmission Settings

Automatic transmission or electric shift control. In Mazduino firmware this control really runs on every board that shows its pages (all but Mega100-512), but it stays idle until enabled. Its status is alpha: not widely tested, so test on the bench first.

  • TCU Enabled: turns it on.
  • Gear Controller: None, Button Shift, Automatic or Generic.
  • Transmission Controller: None, Simple Transmission, Generic 4-Speed or GM 4L6X.
  • Shift Solenoids: solenoid outputs 1-6 and the 3-2 solenoid.
  • Other Solenoids: TCC on/off, TCC PWM and pressure control solenoid.
  • Assumed Shift Time: expected gear change duration.

Other pages:

Page Contents
Gear Selection Settings Upshift/downshift button pins and range selector inputs
Input Speed Sensor Pin and tooth count of the input speed sensor
Automatic Shift Points Shift speeds against TPS
Shift Solenoids Which solenoids are on in each gear
TCC Lock/Unlock Speed Torque converter lock and unlock speeds
Line Pressure Per Gear / Per Shift Line pressure
3-2 Shift Solenoid Percent by Speed 3-2 solenoid duty
Range Selector Input Matrix Pin combinations for P/R/N/D/M. 0 = pin must be low, 1 = high, 2 = ignored