Open Source EMERGENCY Based Ventilator -sensor integration

Dear wayland can you please add (flowErrorSLM) input like the scale factor ?

float flow = ((float(result) - sensirion3300Offset) / scaleFactor)- flowErrorSLM

I’ve added a flow error input (FErr).

In your screenshot above the T_raw output from read-flow-temp looks like an error - I’ll check my code. The negative value from SLM indicates an expiratory flow (inspiratory flows are positive).

You asked about learning resources. If you haven’t done so already, I’d recommend working through the XOD tutorial ( and guide ( In particular, the traffic light example ( will show you how to handle different states, something that may be relevant to your project.

The following article should help you get up to speed with the pid-controller:


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.