• Latest News

    Wednesday, 17 August 2016

    Lungs Compliance Meter- Data Visualization using PyQtGraph and Python

    Lungs Compliance Meter: A simple automated device to demonstrate the measure of volume/pressure change in lungs using compliance curve.

    It is working model for teaching Dynamic Airway Compression. The concept of lung compliance is generally considered to be difficult by students and therefore, over the years, medical educators have attempted to explain it in novel ways. However, all the methods published till now pertain to “static lung compliance”. We have constructed a simple device for demonstrating “dynamic lung compliance” and generating the flow-volume loop on any screen. The device comprises a 1500 mL plastic bottle filled with water and fitted with a balloon with a long neck, an ultrasonic sensor, and a syringe for sucking water, so that it can create negative pressure inside and air through tube inflates the balloon. Ultrasonic Sensor fitted in the cap of bottle measures the water level, further volume & pressure is calculated to plot the graph. Digitized data from the pressure and volume gauges are fed to the screen, enabling students to observe and record how dynamic compliance varies with the rate of increase in pressure inside the bottle. The recorded data enabled students in understanding the mechanism and significance of dynamic airway compression that occurs in chronic obstructive pulmonary diseases.


    Language: Python
    Dependencies: PyQt4, PyQtGraph, NumPy, RPi.GPIO
    Hardware: RaspberryPi
    GitHub UI & Source Code:

    • Blogger Comments
    • Facebook Comments


    Post a Comment

    Thanks for your comment. We will try to reply as soon as possible.

    VSL Creations

    Item Reviewed: Lungs Compliance Meter- Data Visualization using PyQtGraph and Python Rating: 5 Reviewed By: Vishal Aditya
    Scroll to Top