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 resistance | Power 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
| Board | Coil A (bridge 1) | Coil B (bridge 2) | Bridge supply |
|---|---|---|---|
| uaEFI | A5 (+) and A1 (−) | A6 (+) and A2 (−) | A8: +12 V from the main relay |
| Proteus | Black23: 7 (+) and 6 (−) | Black23: 15 (+) and 8 (−) | Black23: 23 |
| K12 | 118 and 121 | 117 and 116 | 120 |
3. Set up the program

Idle and DBW → Setup. Starting values:
| Setting | To begin with |
|---|---|
| Idle air actuator | Stepper motor |
| Wiring | Bipolar motor on two H-bridges |
| Coil power while moving | 80 % (follow the resistance table) |
| Steps of the whole travel | from the motor data; 200 if unknown |
| Speed | 150 steps/s |
| Extra travel when homing | 20 % |
| Current off after standing | 500 ms |
| Smallest movement | 2 steps |
| Keep the current when standing | off |
| Home against the open stop | off |
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.
- Home again – you hear and feel the motor, after a moment it stands.
- Closed 0 %, 50 %, Open 100 % – the pintle moves smoothly both ways.
- Direction: at 100 % the valve must be open. If it is closed, tick Reverse the direction and save.
- Step count: long rattling at an end stop means too many steps, incomplete opening means too few.
- 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
- Begin in open loop.
- After ignition on wait about 2 s for homing. If that bothers you, tick Home against the open stop.
- Cranking position 45 %: the engine dies – raise it; speed too high – lower it.
- Set the position curve over coolant temperature, then switch on closed loop.
- Compare the idle speed after several ignition cycles. Different speeds at the same temperature mean lost steps.
What each setting does
| Setting | Effect |
|---|---|
| Coil power while moving (10–95 %) | motor force; corrected for battery voltage (reference 13.5 V) |
| Coil power when standing | used 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 homing | steps beyond the travel to be sure the end stop is reached |
| Current off after standing | after this time the coils stop heating |
| Keep the current | helps 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 stop | zero 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 message | What 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 spot | wire pairs (each coil on its own bridge), speed 100 |
| steps count in the program, motor stands | wires, plug, resistance; raise the power, even to 90 % |
| loses steps, sticks | speed 80–100, power 90 %, keep current at 30 % |
| constant small movements at idle | smallest movement 3–4 |
| the test ends by itself | the 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.