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 (https://xod.io/docs/tutorial/) and guide (https://xod.io/docs/guide/). In particular, the traffic light example (https://xod.io/docs/guide/simple-traffic-light/) 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:

2 Likes

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