Silent PerformanceECU Wiki
PLEN
Home

Stepper motor – 4 wires

A bipolar motor connected directly to two H-bridges of the controller.

A stepper motor moves the valve pintle one step at a time and stays where it stops. The controller counts the steps, so after every ignition on it first homes: it drives to an end stop to know where zero is.

Requirements since 0.5.31

  • a board with two H-bridges: uaEFI, K12 or Proteus (K8: use a STEP / DIR driver or a unipolar motor),
  • both bridges free: cable throttle, no compressor flap,
  • firmware 0.5.31, and for the motor test from the program 0.5.32 with ECU Studio 0.6.214 or newer.
New function. Take the first start carefully: measurements first, then the test with the engine stopped, only then cranking. Save a copy of the project before changes.

1. Find and measure the coils

  • there is resistance between the two wires of one coil,
  • there is no continuity between the coils or to the body,
  • both coils should read about the same.
Coil resistancePower while moving
about 40–60 Ω (typical 12 V car motor)80–90 %
20–40 Ωstart lower and watch temperature and current
below 20 Ωset 20 % or less before connecting
below 5 Ωdo not connect
The bridges do not limit the coil current. Only the power setting does. Check the current with the calculator.

2. Wire it

ControllerStepper motor – 4 wiresBridge 1 +Bridge 1 −Bridge 2 +Bridge 2 −coil Acoil Bthe two wires of one coilthe other coilBoth ends of a coil always go to the same bridge.
Coil A on bridge 1, coil B on bridge 2.
BoardCoil A (bridge 1)Coil B (bridge 2)Bridge supply
uaEFIA5 (+) and A1 (−)A6 (+) and A2 (−)A8: +12 V from the main relay
ProteusBlack23: 7 (+) and 6 (−)Black23: 15 (+) and 8 (−)Black23: 23
K12118 and 121117 and 116120

3. Set up the program

Bipolar motor on two H-bridges (uaEFI).
Bipolar motor on two H-bridges (uaEFI).

Idle and DBW → Setup. Starting values:

SettingTo begin with
Idle air actuatorStepper motor
WiringBipolar motor on two H-bridges
Coil power while moving80 % (follow the resistance table)
Steps of the whole travelfrom the motor data; 200 if unknown
Speed150 steps/s
Extra travel when homing20 %
Current off after standing500 ms
Smallest movement2 steps
Keep the current when standingoff
Home against the open stopoff

Save to the controller: F2.

4. Test with the engine stopped since 0.5.32

Ignition on, engine not running. The Motor test frame uses the settings stored in the controller. It is safest to start with the valve removed from the engine.

  1. Home again – you hear and feel the motor, after a moment it stands.
  2. Closed 0 %, 50 %, Open 100 % – the pintle moves smoothly both ways.
  3. Direction: at 100 % the valve must be open. If it is closed, tick Reverse the direction and save.
  4. Step count: long rattling at an end stop means too many steps, incomplete opening means too few.
  5. After 10 minutes touch the motor and the controller. Hot – lower the power.
In a removed valve the pintle can fall out with too many steps. Do not drive it further than it reaches in the body.

The test ends by itself when the engine turns, you leave the page or the connection drops.

5. First start

  1. Begin in open loop.
  2. After ignition on wait about 2 s for homing. If that bothers you, tick Home against the open stop.
  3. Cranking position 45 %: the engine dies – raise it; speed too high – lower it.
  4. Set the position curve over coolant temperature, then switch on closed loop.
  5. Compare the idle speed after several ignition cycles. Different speeds at the same temperature mean lost steps.

What each setting does

SettingEffect
Coil power while moving (10–95 %)motor force; corrected for battery voltage (reference 13.5 V)
Coil power when standingused with keep current; usually much lower, e.g. 30 %
Steps (20–2000)the whole travel from closed to open
Speed (10–500 steps/s)a motor that is too fast loses steps
Extra travel when homingsteps beyond the travel to be sure the end stop is reached
Current off after standingafter this time the coils stop heating
Keep the currenthelps when the pintle creeps by itself
Smallest movement (0–20)tiny controller corrections do not move the motor; the ends are always reached
Home against the open stopzero is set at the open end

The positions in percent (minimum, maximum, cranking, temperature curve and controller gain) are set lower on the same page, in the idle air valve frame.

When something does not work

Symptom or messageWhat to do
"An electronic throttle or compressor flap motor uses an H-bridge"remove that motor assignment in the I/O settings
"In the controller the stepper motor is not selected"check the settings and save to the ECU
"H-bridge fault"short circuit or resistance too low: ignition off, measure the coils, lower the power; the controller retries every second
the motor shakes on the spotwire pairs (each coil on its own bridge), speed 100
steps count in the program, motor standswires, plug, resistance; raise the power, even to 90 %
loses steps, sticksspeed 80–100, power 90 %, keep current at 30 %
constant small movements at idlesmallest movement 3–4
the test ends by itselfthe engine turned, the page was left or the connection dropped
Power and current values apply to 12 V motors of the stated resistance. When asking for support, give the motor model, coil resistance, project and the message text.
Silent Performance · Silent ECU controller documentation. You install and tune at your own risk.