This git repo is for the code on the Ventilator (Arduino)
Heroku Cloud Server & Web Browser Repo | Raspberry Pi (Network Adapter) Repo | Ventilator (Arudino) Repo |
---|---|---|
Ruby on Rails | Flask | Arduino Board |
Javascript | Python | C++ |
Create a lightweight arduino library to run on the ventilator arduino board to send ventilator data to the raspberry pi. The raspberry pi will then in turn forward the data to the central monitoring dashboard (javascript web application) for the user to view.
This software is currently only a concept - it is neither approved nor intended to be used in any medical setting. Currently, the application only outputs random demo/sample data.
Most of the rapidly manufacturable ventilator design teams we are talking to are using Arduino boards to control their circuits. Arduino's are cheap, easy to program, available in large quantities, locally soureable, and reliable (by consumer hardware standards).
As of 3-Apr-2020: Currently, the app is in demo/testing mode only. The arduino sketch simply responds to requests from the raspberry pi over USB Serial and returns an array of 5 parameters containing random (fake) data.
- Obtain an Arduino Uno or equivalent (~$23 USD). Arduino boards are widely available so shop around for quick shipping (check out Amazon). If you're new to Arduino develpoment, you might want to grab a starter kit containing an assortment of goodies/extras for a few more dollars. Be sure to pick up a standard USB A-to-B Cable if you don't already have one.
- Download and install the Arduino IDE
- If you're new to Arduino, work through some of the Built-in tutorials to familize yourself with how Arduino works (especially those relating to Serial communication).
- Download/Clone the code from this repo and upload it to your Arduino Board using the Arduino IDE
- You can power the arduino by either plugging in a standard 9V power supply to the power plug or by plugging it into a USB port. Plugging your Arduino into a Raspberry Pi via the USB cable should give it sufficent power to run, provided that the Raspberry Pi itself is plugged in to a power supply with sufficient amperage to run both the Pi and the Arduino.