Home / Case Studies / A Heart-Lung Machine That Has to Beat: Torque Ripple and Pulsatile Flow
Technical note
A Heart-Lung Machine That Has to Beat: Torque Ripple and Pulsatile Flow
A heart-lung machine's blood pump is a roller pump: rollers squeeze a tube, the tube refills, the next roller squeezes again. The load is not a smooth torque — it rises as a roller climbs onto the tube and falls as it leaves, once per roller, several times per revolution. On top of that the machine has two modes. In constant-flow mode the speed must be so steady that a surgeon watching the tubing cannot see it change. In pulsatile mode the speed must rise and fall on a programmable cycle to imitate a heartbeat, and the switch between the two modes must not produce a torque step. Both modes run on one drive, over Modbus-RTU, at speeds as low as 0.5 rpm.
Drive used in this class of machine: UF series · not sure which? five questions →
- Why this load is harder than its ratings suggest
- Problem one: the speed steps when a roller climbs onto the tube
- Problem two: a pulse that had to be programmable by a clinician
- Problem three: switching modes without a torque step
- Problem four: a blocked tube has to stop the motor, not reset the drive
- One more thing that mattered on the HMI
Why this load is harder than its ratings suggest
The motor is a low-speed, high-torque servo driving the pump head directly — no gearbox, so nothing filters the ripple. Continuous current is 7.5 A on the brushed variant and 10 A on the brushless one, with 3.8 N·m rated torque and a maximum of 125 to 250 rpm depending on the motor. The drive is a standard UF-48V15AMDN on Modbus-RTU with a 2500-line differential ABZ encoder. Nothing in that list is exotic. What makes it hard is the operating point: at 0.5 rpm the encoder produces very little information per control cycle, and the tube's compression ripple arrives as a torque disturbance at exactly the frequency the speed loop is trying to reject.| Item | Value | Consequence |
|---|---|---|
| Motor, brushed | 250 rpm max, 7.5 Arms continuous, 3.8 N·m | Direct drive, no gearbox to smooth ripple |
| Motor, brushless | 125 rpm max, 10 Arms continuous, 16 pole pairs | Higher torque per amp, more cogging to compensate |
| Encoder | 2500 line differential ABZ | At 0.5 rpm, few counts per cycle |
| Bus | Modbus-RTU | Cycle time is not the bottleneck; the profile is |
| Lowest working speed | 0.5 rpm | About 10 ml per revolution of the pump head |
Problem one: the speed steps when a roller climbs onto the tube
At first the pump ran evenly and then jerked each time a roller compressed the tube — visible on the tubing, audible in the room. The cause was not a tuning error. The load torque changes within a revolution, and a speed loop alone cannot cancel a disturbance it only sees after the fact. What fixed it was torque ripple compensation: we characterised the ripple against rotor position, stored it as a compensation table, and fed it forward so the current loop pre-empts the load instead of reacting to it. The same table is what keeps the speed flat at 0.5 rpm, where a reactive loop has the least information to work with.Problem two: a pulse that had to be programmable by a clinician
Pulsatile mode is a three-stage speed profile: a base speed, a rise, a peak, a fall, back to base. The clinician sets two things that matter — the pulse rate and the pulse width — and expects the flow to follow. We built the cycle from the drive's multi-segment mode, with the acceleration and deceleration ramps held fixed and the pulse width carried by the dwell at peak. At 2.5 Hz and 30% width the arithmetic is a 400 ms period, 280 ms at base speed and 120 ms in the pulse. Measured on the bench the period came out at 420 ms: the segment transition was waiting on the measured speed to reach its threshold, and that lag moved the beat. Switching the transition condition to the observer-estimated speed brought the period back onto the setpoint.| Parameter | Setting | Result |
|---|---|---|
| Pulse rate | 2.5 Hz (400 ms period) | 420 ms measured before the fix, on setpoint after |
| Pulse width | 30% | 120 ms in the pulse, carried by the dwell at peak |
| Base speed | 10 rpm | Flow baseline between beats |
| Peak speed | 50 rpm | Set by the clinician, not by the drive |
| Transition condition | Observer speed, not measured speed | Removed the beat-to-beat jitter |
Problem three: switching modes without a torque step
The original implementation ran constant flow in speed mode and pulsatile flow in multi-segment mode, and switched between them when the clinician pressed a button. Bench traces showed the current command stepping at the switch — a torque step, and therefore a speed step, which is exactly what the machine must not do during a procedure. The cause was a mode change that restarted the profile while the motor was still turning. The fix was structural: constant flow became a segment inside the same multi-segment program, with a zero-amplitude pulse, so the two modes are the same program with different parameters and switching is a parameter write rather than a mode change.- Constant flow = multi-segment program with the pulse amplitude set to zero
- Pulsatile flow = same program with the pulse enabled
- Switching writes parameters, it does not restart the profile
- Reference-signal rise time set to 80 ms to remove the audible step at the base-to-peak transition
Problem four: a blocked tube has to stop the motor, not reset the drive
When the line occludes, the pump keeps pushing and the 48 V rail collapses. On the first build the drive reset from undervoltage and the motor turned backwards before anyone could react — on a heart-lung machine that is not an acceptable failure. The bench measurement explained it: the rail fell in about 14 ms, and the drive's bus filter is two seconds wide, so a software undervoltage alarm can never win that race. We lowered the alarm threshold from 12 V to 19 V so the drive reacts earlier, and the machine builder added a comparator on its own board that fires an IO emergency stop the moment the rail drops. The drive was configured to brake to a hold rather than coast, so the pump stays locked instead of being pushed backwards by the pressure in the line.| Measure | Before | After |
|---|---|---|
| Undervoltage alarm threshold | 12 V | 19 V, ahead of the hardware protection |
| Rail collapse time measured | 14 ms | Faster than any software filter can catch |
| Trip path | Drive resets, motor reverses | External comparator to IO emergency stop, motor holds |
| Stop behaviour | Coast | Brake to hold, shaft locked against line pressure |
One more thing that mattered on the HMI
The machine's touchscreen showed a speed trace that looked noisy, and the customer read that as the drive being unstable. It was the measurement method: the register they were reading reports speed by counting pulses over a window, which is coarse at low speed. Pointing the display at the observer-estimated speed instead — a model-based estimate that does not depend on counting edges in a short window — produced a trace that matched what the pump was actually doing. Same motor, same tuning, different number on the screen.Key takeaways
- Torque ripple compensation, characterised against rotor position, is what makes a roller pump run evenly at 0.5 rpm.
- Constant flow and pulsatile flow are one multi-segment program with different parameters, so switching cannot produce a torque step.
- A 14 ms rail collapse cannot be caught by a software undervoltage alarm with a two-second filter; the trip has to come from hardware.
Common questions
Why not just use a bigger drive and more inertia?
Because the disturbance is periodic and known, not random. Inertia would average it out at the cost of response, and this machine needs the opposite — a pump head that follows a pulse shape within a few tens of milliseconds. Feedforward cancellation against a characterised ripple table removes the disturbance without adding inertia.
Can the same drive run both a brushed and a brushless pump motor?
Yes, and this project did exactly that while the machine builder decided which motor to standardise on. The compensation tables differ because the ripple sources differ — commutation on the brushed motor, cogging and pole count on the brushless one — so the tables are part of the configuration, not the firmware.
Is a 48 V bus appropriate for a medical pump?
For a direct-drive pump head at these speeds, yes: the safety extra-low voltage simplifies the isolation requirement and the current needed for 3.8 N·m at low speed is well within what the drive delivers continuously. It also means the drive and the pump can share an enclosure without a transformer.
What still needs work on this project?
The ripple compensation is characterised on one tube; different tube diameters will need their own tables, and a table characterised without a tube fitted does not transfer perfectly to a loaded one. That is a characterisation task per tube type, not a control problem.
You have seen the numbers for one project. Mine would be built around yours — the five stages say what I need from you at each one.
Different current step, carrier or connector layout? That is a custom build →