Smart Spirometer with Android App
Cover
15 Steps
1 I Made It!
1

This Project shows you how to create a smart spirometer and how you can connect it to an Android Phone. We used materials from https://www.adafruit.com. The project consists of two main parts the spirometer and the preparation of the smart phone.

2

First we need to upload the code on the Adafruit Feather. Therefor we need to have to setup as described on Adafruit (https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le/setup and https://github.com/adafruit/Adafruit_VCNL4010).

3

Download the Arduino Code from our Github repository. https://github.com/makerhealth/Smart-Spirometer

4

Connect the Feather over a Micro-USB cable to your computer. Now open the our Arduino code and upload it to the Feather.

5
step

Prepare the breadboard by sticking the Feather and the proximity sensor on it. Next connect the following pins: SDA, SCL, GND, and SCL. After you wired everything glue or tape a frame on the breadboard, which will be the stand for the spirometer.

6
step

Open the base of the spirometer and pull the white cylinder out. Now glue aluminum foil on the bottom of cylinder.

7
step

Place the battery inside of the free space of the breadboard. You can charge the battery by plugging the powersupply into the Feather on the open side.

8
step

Place the spirometer including the cylinder on top of the breadboard. Fix the spirometer either with glue or tape. Now the spirometer is complete.

9

To prepare your Android phone download the MIT AI2 Companion from the Google Playstore.

10
11
step

Import the .aia file from our Git repository.

12
step

Build the App by clicking on the Build tab in the header and then choose the "Provide QR code" option.

13
step

Open the AI2 Companion App on your phone and scan the on your screen QR code. This will open an installation window. You might need to allow external source to be able to install the app.

14

Now open the installed app on your phone and power the spirometer. To connect the app with the spirometer you need to follow three steps. First click on the scan button. Second click "Select Device" and choose the Adafruit Device. Third click on "Start Tracking". Now you have linked your phone to the spirometer. The app will show you the movement of the spirometer as a moving ball on the screen.

15

If you have any questions feel free to contact me via max@makerhealth.co