makers-for-life / makair-firmware

🧠 [Software] Firmware for the MakAir microcontroller. The brain of the ventilator.
Other
20 stars 11 forks source link

Blower PPM progressive ramp-up when increasing speed (reduce current peaks) #78

Closed valeriansaliou closed 3 years ago

valeriansaliou commented 3 years ago

Problem noticed on a SEB MakAir, in VC-CMV, when first starting the ventilation from a stopped state in this mode, the AC power shortly cuts and fallbacks to batteries due to too high of a current peak.

Batteries were tested to be at 46% SoC, so they were charging when the current peaked.

Fix: Whenever increasing blower speed (in any mode), apply a ramp up algorithm (eg. over 2 seconds, whichever the slope), to prevent requesting too much current at once.

valeriansaliou commented 3 years ago

This issue may cause unexpected MakAir shutdowns and reboots whenever the battery SoC is low and the MakAir is on AC power ventilating a patient in serious lung conditions requiring blower speed to randomly peak.

valeriansaliou commented 3 years ago

You can easily hear the AC converter clicking when enabling its current limit mode, just before the system falls back to battery.

valeriansaliou commented 3 years ago

Looks like it's been fixed in dev, current peak is not acceptable.