Right now of COVID-19 outbreak, the demand for ventilator and well being monitoring units has elevated with every passing day. To beat the scarcity of those units, we don’t have every other good answer but that may assist us in fulfilling this requirement. we are able to attempt to design personal RaspberryPi COVID -19 Ventilator.
So, right this moment we’ve got determined to make a small ventilator prototype utilizing Raspberry Pi. It would even be able to monitoring our well being and supply knowledge about our heartbeat and SPO2 ranges.
Our ventilator prototype makes use of a servo motor that applies strain on an air sack (BVM bag), thus pushing oxygen-concentrated air into the lungs. When the servo motor comes again to its earlier place, it ends in strain being launched from the air sack (BVM bag), making it retain its unique form. This helps to attract out CO2 from the lungs (much like the method of respiration out and in). Your complete ventilator mechanism of respiration needs to be in sync with a affected person’s regular respiratory price. This may be achieved by altering the velocity of the servo motor in this system. We have now additionally used the MAX30100 sensor that offers us reside knowledge concerning the rise and fall of pulse price and oxygen stage within the blood of a affected person. By implementing Raspberry Pi and any customary LCD show, we are able to observe the heartbeat price and blood oxygen share as a graph on the show display screen. (Refer Fig 2,3,4,5)
So let’s begin our venture by accumulating the next elements for RaspberryPi COVID -19 Ventilator:
Invoice Of Materials
We additionally want further cardboard and pipe for mechanical building.
NOTE:-Right here, I’m utilizing a balloon as a substitute of a check lung and a BVM bag. However for good outcomes, please use a BVM bag and customary check lung. Additionally, you will must make some mechanical adjustments to the BVM bag for it to work correctly.
Do understand that this DIY venture needs to be applied solely underneath strict medical supervision.
Now let’s start our venture with some mechanical association and building.
Building of ventilator
Right here, we’ll take any cardboard and repair the BVM bag on its flat floor. (Refer Fig 7). Now we’ll take one finish of a pipe and insert that into the opening of the BVM bag (right here I’ve used a flattened balloon). The opposite finish of the pipe will probably be hooked up to the usual check lung (right here additionally I’ve used a balloon). Now we’ll place one other cardboard piece on prime of the BVM bag in order that one facet of the BVM bag is fastened to at least one finish of the cardboard and its different facet with a servo motor shaft.(Refer Fig 7,8,9,10).
After the mechanical building, now let’s go for the digital building and codingJoin the RPi with the servo motor within the following method:-
|GPIO 17 (Gpio zero pin quantity)||SIGNAL PIN (Yellow Wire)|
The Well being Monitoring System
For coding of the well being monitoring system, open the Arduino IDE, go to Library supervisor and set up the next required libraries
After their profitable set up, we are able to begin coding.
First, we’ll initialize the libraries within the code and create two variables, val1 and val2.
Subsequent, we’ll create a setup perform that can begin the OLED show and the MAX30100 sensor. It would additionally set the graph size and breadth.
Then we’ll create a loop perform that checks knowledge from the MAX sensor, shows it on the OLED and in addition sends that to the serial port.
Subsequent, join the elements as proven within the circuit diagram.
Now for visualizing the reside graph and well being knowledge, we’ll setup the Processing 3 in Raspberry Pi. To take action, open the Raspberry Pi and run the given system in terminal.
curl https://processing.org/obtain/install-arm.sh | sudo sh
Subsequent, open the Processing 3 (Refer Fig 15). Get the code named ”rolling graph.pde” from the Arduino Library extras folder after which paste that within the Processing IDE in Raspberry Pi.
Now energy the Raspberry Pi after which join it with the show. Run the code for ventilator after which run the code for well being knowledge i.e. “rollinggraph.pde” within the Raspberry Pi Processing. Additionally, join the Arduino with MAX30100 into the Raspberry Pi USB port.
When the code for the ventilator runs, the servo motor shaft begins shifting and ends in strain being added on the BVM BAG. Therefore, oxygen goes by the pipe and flattens the lung. Then the servo motor comes again to its unique place, restoring the BVM bag to its earlier stae. This steady course of simulates the contraction (inhaling) and leisure (respiration out) of a human lung.
For well being knowledge visualization, merely put your finger on the MAX sensor. As quickly as it’ll begin to glow, the reside graph of the info well being will probably be obtained.
NOTE:- To alter the respiration price of the ventilator, add the time delay within the code .
Additionally for well being knowledge monitoring, change the port title to the port title of Arduino. Right here my Arduino port title is ttyACM0.]
Congrats, Our prototype of RaspberryPi COVID -19 Ventilator is prepared.
Obtain Supply Code