Raspberry Pi-Powered Ventilator To Be Tested in Colombia (bbc.com) 86
A team in Colombia is to test a ventilator made with a Raspberry Pi computer and easy-to-source parts. From a report: The design and computer code were posted online in March by a man in California, who had no prior experience at creating medical equipment. Marco Mascorro, a robotics engineer, said he built the ventilator because knew the machines were in high demand to treat Covid-19.
His post prompted a flood of feedback from healthcare workers. He has used the advice to make improvements. "I am a true believer that technology can solve a lot of the problems we have right now specifically in this pandemic," he told the BBC.
The Colombian team said the design was important for their South American country because parts for traditional models could be hard to obtain. By contrast, Mr Mascorro's design uses only easy-to-find parts -- for example, the valves it employs can commonly be found at car and plumbing supply stores. The machine is set to be put through a fast-tracked round of tests at two institutions in Bogota -- the University Hospital of the Pontifical Xavierian University and Los Andes University.
Watchdog (Score:1, Insightful)
Re: (Score:1)
My guess is it is running Ubuntu and Python.
Re: (Score:1)
Re: (Score:3)
Basic 3D printers can be run from an ATmega2560. The firmware runs directly on the IC, no operating system required. So why would a ventilator, a much simpler machine, need a full-fledged operating system with a graphical desktop?
The interface (Score:2)
Probably here too, the motor itself is controlled by an uC.
But making the motions themselves is only a part of the story. (Saddly the whole installation is blurry in the background of TFA's photo)
You also need an array of sensors to detect whether the ventilator is actually doing what it should (these you can still connect to the uC, but now you're looking at a higher range one with more GPIO.
You also need to have some feedback algorithm that adapts the command to the motor based on the input of the sensors
Re: (Score:1)
So why would a ventilator, a much simpler machine, need a full-fledged operating system with a graphical desktop?
The article shows a screen and GUI. perhaps a touch screen interface given the size and shape of the icons.
I'm not a mind reader, I don't have to answer why the inventors went this route instead of the route you suggest.
Re: (Score:3, Insightful)
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
it is not better than labored breathing without intubation.
Laboured breathing is not the reason people are put on ventilators with COVID-19. Without that tube down your through you've effectively signed your own death certificate.
Re: (Score:2)
I'm sure you're not a doctor.
Re:Watchdog (Score:5, Interesting)
Pi's are a lot more reliable than you may think...
I have about 600 currently running in the field (for the last ~3 years), and the failure/lockup rate is about 1 system every 3-4 months. That's an MTBF (calculated, of course) of about 200 years. Of course that won't hold up over time, but it's impressive.
Basically all of the failures I've had are attributable to external events - either electrical storms/surges, or people physically shorting out GPIO pins when installing things or doing other service work.
I've designed hardware-based watchdog systems into my future control board that these plug into, but based on the data they're not really needed. But, the extra security is always a good thing.
Re: Watchdog (Score:2)
Re: Watchdog (Score:2)
Re: (Score:3)
Well, either that's poorly written software, or a poorly configured environment for what you're trying to do. Python is solid... but any language can look "bad" if you're using it wrong.
Re: (Score:2)
Re: (Score:2)
Perl reminds me of the old joke that real programmers can tell the difference between Forth and line noise
s/Forth/Perl/
Re: (Score:2)
Re: (Score:2)
I'm guessing you're not booting from an SD card? That seems to be by far the leading cause of Pis doing down, cheap flash storage failure.
Re: (Score:2)
Actually I am using SD. However, the software stack ensures that anything that's being read/written often is done on a Ramdisk instead, and only written to disk when necessary. We haven't had a single SD card failure yet... in ~4 years of systems being out there (oldest ones still running fine).
Re: (Score:2)
The brand/model/country of manufacture of the SD card plays a huge role in the failure rate.
Re: (Score:2)
In the industrial PI systems I have built (PanTilt protocol translators) the system disk (SD card) is read only. I have never had a disk failure. I do put a redundant disk taped to the underside of the chassis but it has never been used.
It takes some time to make your system read only and there are lots of little hacks here and there to accommodate logging, dhcp, fake-hwclock,etc I wish there was a more straightforward way of doing this.
Re: Watchdog (Score:2)
Re: (Score:2)
Interesting... care to share your data to support that opinion?
Re: (Score:2)
Re: (Score:2)
Honestly I'd generalise even more than that. There are safety critical PLCs and standard ones, but the standard ones are not "unsafe". A lot of effort still goes into ensuring that the output state is somewhat defined, that through redundancy the logic keeps getting run (and often checked), and inputs can be set to a pre-defined value on fault.
There's safety PLCs
Then there's safe control systems like PLCs.
And then there's completely unsafe stuff like Raspberry Pis which are not deterministic on any kind of
Re: (Score:2)
Fundamentally if you're sticking a raspberry pi in a ventilator then the question isn't "what if it fails", the question is more "what if it didn't exist at all". It's all good and fine to question if a device is safe here from our desks, I won't be applying that same level of critique when I'm laying on a hospital bed unable to breath.
Hence me saying "We could argue the point that in an emergency an RPi powered ventilator is better than nothing but there still needs to be mitigations for possible modes of failure.". It's great to have emergency ventilators but if it overpressures, or the pump fails, or a it fails to complete a cycle, or the power goes off or whatever then
Re: (Score:2)
Interesting... care to share your data to support that opinion?
Safe has a definition for industry, that is that for the many MANY failure modes in a device the action on failure is known, defined, and consistent. A Raspberry Pi is none of those things. When the software locks up on the Raspberry Pi there's no setting you can set that automatically sets all outputs to zero. When a fault occurs on an input there's no settings you can set that automatically makes that input have a pre-defined value. Hell the inputs float. The system cannot detect faults anywhere other tha
Re: (Score:2)
I don't know... my Raspberry Pi 2 had a bad habit of overheating and locking up every few days when I tried to use it as an embedded WordPress server (which it did fairly well). Maybe it would be more reliable if they underclocked it?
Re: (Score:1)
Re: (Score:2)
Pi 2 is old tech.
Did you try a heatsink ?
Ironically the Pi 4 is the one with the well documented heat problem :-)
Re: Watchdog (Score:1)
Re: (Score:2)
Other people have gone down the same route https://theface.com/life/oxven... [theface.com] and similar https://www.mercedesamgf1.com/... [mercedesamgf1.com]
Re: (Score:2)
Not only that, but "made with a Raspberry Pi" and "easy-to-source parts" usually don't go in the same sentence, especially if they're using the Raspberry Pi Zero to lower the cost.
Re: (Score:2)
Some big Med CEO's gonna be pissed (Score:2)
Re: (Score:3)
Re: (Score:3, Insightful)
When regular people are able to replace expensive equipment with off the shelf material and create the same usable product.
This is incorrect and illustrates common naiveté. The product of the commercial medical equipment industry isn't equipment. It's regulatory compliance. And current aberration aside "regular people" can't deliver regulatory compliance. Regular people don't employ the sons and daughters and sons-in-laws and daughters-in-laws of the regulatory regime in no-show non-profit chairpersonship jobs and, therefore, are incapable of obtaining the approvals necessary to sell into lucrative markets.
Re: (Score:3)
Oh please, as much as regulatory compliance sounding like some under the table conspiracy requiring an insider setup to prevent competition, the reality is quite simple: Regulator compliance costs money. Nothing more, nothing less. No need to get your family or some mythical chairperson involved.
Re: (Score:2)
Need? Almost certainly not. Does it make the regulatory process **much** easier, cheaper and faster? Almost certainly yes. The FDA amply demonstrates this again every few years.
Re: (Score:2)
Re: (Score:2)
Keep in mind they're talking about Colombia, where it's likely that many (most?) hospitals don't have **any** ventilators to start with. Is a $$$ ventilator with certifications better? Sure. Is no ventilator at all worse? Hell no.
Re: (Score:2)
what it takes to make a ventilator (Score:5, Informative)
A short video on why most amateur attempts are terribad, and what a decent ventilator has to do:
A Guide To Designing Low-Cost Ventilators for COVID-19 – Real Engineering [youtube.com]
Re: (Score:2)
Re: (Score:2)
Some good advice in that video. In looking at some of the DIY designs that claim auto supply parts* were used, I suspect that pressure feedback to the control program is not an included feature.
However, simple u-tube manometers with optical position sensors would probably suffice. And even a maximum pressure limiting valve can be fashioned from a tube immersed in a beaker of water.
*I'm assuming that they aren't using turbo blow-off valves.
Re: (Score:2)
Water evaporates. Bacteria like to live in it. And what if someone bumps the machine?
Excellent video (Score:2)
/Thread won.
Doesn't mean much. (Score:2)
Re: (Score:2)
An Arduino has lots of input and output pins, along with a watchdog timer. If the machine is designed with failsafes and the microcontroller is programmed properly, it should be safe.
Re: (Score:2)
Why would you be concerned about those? It's not like if it malfunctions it could kill somebody.
i knew techies liked to shove Raspberry Pi (Score:5, Funny)
Re: (Score:2)
Hospital PA system: Code Green! Code Green!
Doctor 1: What the hell is a code green?
Doctor 2: A Raspberry Pi Zero trapped in someone's trachea!
Bah (Score:4, Interesting)
I could do better with a few 555 timers and some potentiometers. How did they operate for decades before being microprocessor controlled?
Re: (Score:3)
You'd need bunch of 4000 series chips for the alarms and such as well, by which point it's easier to put in a microcontroller. A Pi seems like overkill, and more complexity means more that can go wrong.
Re: (Score:2)
Does your 555 config live on a circuitboard, so everything is rigid and not likely to break due to movement? Those pots are nice... are you sure you understand the problem well enough to know which variables should be adjusted and which shouldn't? How about user-friendliness: are you available to teach people which pots to adjust for what result? What about complex adjustments, such as when X goes up and Y goes down 20% of that, or whatever? Maybe a UI could improve on your wires-chips-and-knobs plan...
Re: (Score:2)
I'd look at the older models like this one from the late 1970s https://www.meenamedical.com/c... [meenamedical.com] No bullshit interfaces to wade through just clearly labeled controls.
Re: (Score:2)
and working ventilators were around decades before even that fancy-pants 1970s electronics existed, heh
Re: (Score:2)
Re: (Score:2)
Knobs, buttons and sliders are still an interface, you cretin.
Re: (Score:2)
Those obstacles/issues all sound horribly insurmountable. /sarc
Re: (Score:2)
You are full of shit and talking out of your ass. Analog electronic, relay electronic, and even fluid controlled non-electric ventillators worked fine for DECADES before whatever microprocessor & digital crap you imagine should be used existed.
Re: (Score:2)
I could do better with a few 555 timers and some potentiometers.
You could not. Unless your goal is to make something even less accurate than the already horrible designs out there (including this one). Your shitty 555 timer is a relic of the past for a reason. I mean shit it costs more than a 32bit microcontroller and requires far more external parts, will be less configurable, less accurate, less repeatable, and I'm beginning to wonder if you haven't practiced electronics since the invention of the computer.
Re: (Score:2)
How did they operate for decades before being microprocessor controlled?
Originally they were all-mechanical. Everything was done with pneumatic valves and such. The Bird Mk8 is a pretty good example of that tech: https://en.wikipedia.org/wiki/... [wikipedia.org]
Of course, they had very limited adjustability and no monitoring or alarms. They would not be considered adequate for any modern hospital use. A 555 and a few pots would essentially be an electronic reimplementation of the same thing.
The early electronic era was all analog control systems. For example, the Servo 900: https://centu [centurionservice.com]
just clone the bird mark 7 (Score:2)
This:
https://www.woodlibrarymuseum.... [woodlibrarymuseum.org]
Is what we used back in the day, no computers needed, any patents have way expired, you can probably use a 3d printer on most of it and it's been around for years.
We get so caught up in having to throw electronics at everything that we forget that we don't always need them.
This is a fun read: http://rc.rcjournal.com/conten... [rcjournal.com]
Re: (Score:1)
Re: (Score:2)
People create with what they know. I saw a ventilator prototype made by someone who builds 3D printer.
As you can imagine, his version of ventilator uses a NEMA 17 stepper motor, a GT2 belt and 8mm rails with linear bearings.
Re: (Score:2)
It's Colombia, if the patient is rich they go to a specialty clinic staffed by doctors trained in the US and Europe which use $$$$ ventilators. If the patient isn't rich they go to a general hospital staffed by doctors trained in Cuba (if they're lucky) or Bogota which may well not have a ventilator on hand at all. Only the first set of patients have the money to sue, and only the first set of doctors/clinics have enough money to be worth suing.
They are overrated (Score:2)
Not only these. 80% of patients put on them die.
https://www.businessinsider.co... [businessinsider.com]
Re: (Score:2)
Re: (Score:2)
You don't know that for sure. Who knows, without the ventilators maybe 120% of those patients would have died.
Re: (Score:2)
Saving 20% is a big deal. Losing even one life because we did not have equipment is crazy.
That said, I wish we paid more attention to ECMO machines. They can help much more but they are much harder to build and validate so their shortage is being swept under the rug. We are not even talking about the devices we actually need the most. Instead every hillbilly from the dimmest of backwoods to the brightest bulbs at MIT are going for the less important but lower hanging fruit. It is frustrating.
Re: (Score:2)
Saving 20% of the most critical patients is not overrated.
Re: (Score:2)
Oh great, so only the people who keep complaining about everything are being saved.
Beaglebone (Score:2)
Re: (Score:1)
Re: (Score:2)
Re: (Score:2)
The LEGO respirator (Score:1)
Holy shit, hast anybody reviewed the code? (Score:2)
After having seen the Arduino code on github:
Being attached to this piece of shit is the last resort. My death/permanent brain damage must be near certain before you do it.
Reason for this estimation:
* protocol between PI and Arduino is complex
* timing functions are done by a loop, not timers
* loop functions contain serial communication and synchronous reads from ADC
* i have thee feeling than some variables miss modifiers
* should use interrupts to do the separate monitoring and control functions
* should make
Re: (Score:1)