Monitoring of Intravenous Drip Rate



Similar documents
Palaparthi.Jagadeesh Chand. Associate Professor in ECE Department, Nimra Institute of Science & Technology, Vijayawada, A.P.

Microtronics technologies Mobile:

Lesson-16: Real time clock DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK

MICROPROCESSOR. Exclusive for IACE Students iacehyd.blogspot.in Ph: /422 Page 1

8051 hardware summary

STEPPER MOTOR SPEED AND POSITION CONTROL

HANDLING SUSPEND MODE ON A USB MOUSE

DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING Question Bank Subject Name: EC Microprocessor & Microcontroller Year/Sem : II/IV

PACKAGE OUTLINE DALLAS DS2434 DS2434 GND. PR 35 PACKAGE See Mech. Drawings Section

PART B QUESTIONS AND ANSWERS UNIT I

Debouncing Switches. Mechanical switches are one of the most common interfaces to a uc.

Design of an Insulin Pump. Purpose of an Insulin Pump:

DS1621 Digital Thermometer and Thermostat

Interfacing Analog to Digital Data Converters

AVR131: Using the AVR s High-speed PWM. Introduction. Features. AVR 8-bit Microcontrollers APPLICATION NOTE

Data Acquisition Module with I2C interface «I2C-FLEXEL» User s Guide

8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA

Accurate Measurement of the Mains Electricity Frequency

WIRING HARNESS FOR AS635P4. BLUE PLUG RED, BLUE, BLACK, WHITE - Plug in dual stage sensor harness

1. Learn about the 555 timer integrated circuit and applications 2. Apply the 555 timer to build an infrared (IR) transmitter and receiver

If an occupancy of room is zero, i.e. room is empty then light source will be switched off automatically

DS1621 Digital Thermometer and Thermostat

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

8051 MICROCONTROLLER COURSE

Remote PLC system using GSM network with application to home security system

Flash Microcontroller. Memory Organization. Memory Organization

Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester

Test Driven Development of Embedded Systems Using Existing Software Test Infrastructure

How to design an insulin pump

An Introduction to MPLAB Integrated Development Environment

8-bit Microcontroller. Application Note. AVR415: RC5 IR Remote Control Transmitter. Features. Introduction. Figure 1.

Microcontroller Based Anti-theft Security System Using GSM Networks with Text Message as Feedback

3-Digit Counter and Display

8-bit Microcontroller. Application Note. AVR400: Low Cost A/D Converter

KEYWORDS: Cellphone, Braille language, Visually impaired people(vip), Microcontroller, Decoder, Latches, DC motors.

A 5 Degree Feedback Control Robotic Arm (Haptic Arm)

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

Microcontroller Code Example Explanation and Words of Wisdom For Senior Design

APPLICATION NOTE. Atmel AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Atmel AVR 8-bit Microcontroller. Introduction.

4 Character 5x7 LED Matrix Display

Chapter 1 Lesson 3 Hardware Elements in the Embedded Systems Chapter-1L03: "Embedded Systems - ", Raj Kamal, Publs.: McGraw-Hill Education

TIMING, COUNTING, AND DATA-HANDLING INSTRUCTIONS. Key Points

Real-Time Clock. * Real-Time Computing, edited by Duncan A. Mellichamp, Van Nostrand Reinhold

SMS based remote control system

Development of a GSM based Control System for Electrical Appliances

Atmel Norway XMEGA Introduction

Arbeitskreis Hardware. Prof. Dr. Michael Rohs, Dipl.-Inform. Sven Kratz MHCI Lab, LMU München

AUTOMATIC NIGHT LAMP WITH MORNING ALARM USING MICROPROCESSOR

CHAPTER 11: Flip Flops

DS Wire Digital Thermometer and Thermostat

DS1104 R&D Controller Board

Embedded Systems on ARM Cortex-M3 (4weeks/45hrs)

AXE114S BINARY CLOCK. revolution Revolution Education Ltd. Web: Version /09/08 AXE114.PMD.

Hardware and Logic Implementation of Multiple Alarm System for GSM BTS Rooms

ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering

PASSIVE INFRARED INTRUSION DETECTOR PASSIVE INFRAROOD DETECTOR DETECTEUR D INTRUSION PASSIF INFRAROUGE

UPS PIco. to be used with. Raspberry Pi B+, A+, B, and A. HAT Compliant. Raspberry Pi is a trademark of the Raspberry Pi Foundation

Tire pressure monitoring

71M6521 Energy Meter IC. Real Time Clock Compensation. The Challenge. The RTC in the 71M6521D/F. Theory of Operation APPLICATION NOTE

Timer A (0 and 1) and PWM EE3376

RF CONTROLLED VEHICLE ROBOT WITH METAL DETECTOR

MICROPROCESSOR AND MICROCOMPUTER BASICS

Wireless Home Security System

Description of High Accuracy Digital Pressure Gauge Design

Embedded Patient Monitoring System

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

COMBINATIONAL CIRCUITS

AVR134: Real Time Clock (RTC) using the Asynchronous Timer. 8-bit Microcontrollers. Application Note. Features. 1 Introduction

24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales FEATURES S8550 VFB. Analog Supply Regulator. Input MUX. 24-bit Σ ADC. PGA Gain = 32, 64, 128

Cellphone Based Device Control With Voice Acknowledgement

AT89C Bit Microcontroller with 1 Kbyte Flash. Features. Description. Pin Configuration

Wireless Sensor Network for Electric Meter Handling

Below is a diagram explaining the data packet and the timing related to the mouse clock while receiving a byte from the PS-2 mouse:

AVR Timer/Counter. Prof Prabhat Ranjan DA-IICT, Gandhinagar

Bluetooth HC-06 with serial port module Easy guide

Interfacing To Alphanumeric Displays

Construction and Application of a Computer Based Interface Card

Small Hardware Development and Prototyping Board for the SX28

INSTALLATION MANUAL 3RP / 5RP 4-BUTTON SERIES VEHICLE SECURITY SYSTEMS

AVR319: Using the USI module for SPI communication. 8-bit Microcontrollers. Application Note. Features. Introduction

How To Use A Watt Saver On A Microcontroller (Watt Saver) On A Cell Phone Or Mp3 Player

revolution Contents: Introduction Power 28-pin Project Board with input/output cables

(Refer Slide Time: 00:01:16 min)

S4000TH HART. HART Communication Manual

Automated Intelligent Power Saving System and Security System

FEATURES DESCRIPTION. PT6321 Fluorescent Display Tube Controller Driver

Project Plan. Project Plan. May Logging DC Wattmeter. Team Member: Advisor : Ailing Mei. Collin Christy. Andrew Kom. Client: Chongli Cai

DS12885, DS12885Q, DS12885T. Real Time Clock FEATURES PIN ASSIGNMENT

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

PROFORMA ACCEPTANCE / QUALITY ASSURANCE TESTS OF REMOTE AFTERLOADING BRACHYTHERAPY UNIT

ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction

ACTIVE INFRARED MOTION DETECTOR FOR HOUSE SECURITY SYSTEM MIOR MOHAMMAD HAFIIZH BIN ABD. RANI UNIVERSITI MALAYSIA PAHANG

A Digital Timer Implementation using 7 Segment Displays

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

RC2200DK Demonstration Kit User Manual

SERVICE INSTRUCTION R410A. WALL MOUNTEDtype INVERTER SPLIT TYPE ROOM AIR CONDITIONER. Models Indoor unit Outdoor unit

AC : PRACTICAL DESIGN PROJECTS UTILIZING COMPLEX PROGRAMMABLE LOGIC DEVICES (CPLD)

Design Analysis of a Security Lock System using Pass-Code and Smart-Card

RI-215A Operator s Manual. Part Number: RK Revision 0 Released: 10/3/05

Transcription:

Monitoring of Intravenous Drip Rate Vidyadhar V. Kamble, Prem C. Pandey, Chandrashekar P. Gadgil, and Dinesh S. Choudhary Abstract A drip rate meter, for monitoring intravenous infusion, is developed using minimal number of circuit components. It is designed to work for different type of fluids used in IV infusion and drip chamber walls of different optical transmittivity. It operates with varying supply voltage from the battery without needing a regulator in order to conserve power. Index Terms drip photo sensing, intravenous infusion monitor, IV drip rate meter. I. INTRODUCTION During intravenous (IV) infusion of fluid, the flow rate is obtained as the product of the drip rate (fluid drops per minute) and the drip factor of the tubing (number of drops / ml). The drip rate is set by regulator on the tubing, and it is monitored by visually counting the drops over 15 or 30 seconds to work out the rate per minute The rate set by the nurse may change due to several reasons. It is affected by dilation or contraction of the patient s veins as they warm up. Tissue forming in the needle may block the flow. As the fluid volume in the bag reduces, the pressure due to gravity decreases and it results in a decrease in the drip rate. Every 15 to 20 minutes, a drip has to be checked to make sure it is flowing at the correct rate. The drip chamber is generally transparent and a photo-sensor assembly clipped around it can sense the drops falling in it. A drip rate meter that senses the drops in the drip chamber and displays the drip rate is very useful for setting the desired drip rate as well as for monitoring. The meter may be a hand held device that the nurse uses for checking and setting the drip rate. For given tubing, each drop is of the same volume, and hence the instrument can monitor the total volume of fluid that the patient has received, or the fluid volume remaining in the bag. The instrument can be designed to give an alarm if the IV drip rate remains beyond the set limits of tolerance beyond a certain time, or when the fluid volume in the bag decreases below a set value. II. DESIGN APPROACH A drip rate meter has been developed using minimal number of circuit components, using the techniques of microcontroller based embedded system design [1]. It can be used for monitoring the drip rate of different types of fluids used in IV infusion and drip chamber walls of different optical transmittivity. It is designed to operate with varying supply voltage from the battery without needing a regulator in order to conserve power. Block diagram of a drip rate meter is shown in Fig.1. The sensor assembly clipped around the drip chamber senses the fluid drops in it. On one side of the cylindrical drip chamber, the sensor assembly has a red or infrared light source giving a light beam across to a photo-sensor on the other side. The beam is broken each time a drop falls, which results in a change in sensor output. Comparator output gives a pulse for each drop. Counter counts the number of clocks between successive pulses, as a measure of drip interval. The drip rate calculator averages the period count for a certain number of periods and converts it into drip rate, which is digitally displayed. Compared to visual counting, drip rate meter gives a much more accurate measurement, and its response time can be set to just a few drops, which is very convenient for monitoring the drip rate during its setting. Variation in transmittivity of drip chamber wall and transmittivity of different fluids make it difficult to set a fixed reference input to the comparator. Obtaining the reference from low pass filtered output of the sensor can solve the problem. This also takes care of, to a certain extent, the variations in the sensor output due to variations in the light output from the source and the photo sensor sensitivity. Department of Electrical Engineering, IIT Bombay, Powai Mumbai 400 076. India E-mail: {vkamble, pcpandey}@ee.iitb.ac.in.

Fig.1. Block diagram of a drip rate meter Fig.2. Circuit diagram of the instrument

Start: Initialize timer/counter T0 for periodic interrupts (every 6 ms) for Display. Initialize timer/counter T1 for periodic interrupts (every 50 ms) for time interval measurement in stop watch / drip rate modes. Start timer T0 for display. Mode Check: If mode input = high, clear status flag & go to Stop Watch Mode. If mode input = low, set status flag & go to Drip Rate Mode. Stop Watch Mode: Check status flag. If high go to Start else check for P1.3 (start / stop pulse) If P1.3 low, complement status of timer T1. If timer is OFF, hold display static 00. If timer is ON, reset timing register, start timer T1 and store time in s in stop watch display buffer. Poll for pin P1.3 (start / stop pulse). If low go to Stop Watch Mode else go to Mode Check. Drip Rate Mode: Poll for comparator output = low (drop in sensor voltage) for > 60 us. Turn on drop sense indicators (DP1, DP2). Store the period value in the old locations. Store the interval count as the new period value. Calculate the average of old period count and new period count. Calculate drip rate, rounded to integer in 0-99 range. Store result in rate display buffer. Wait for 200 ms. Poll for comparator output = high for > 60 us. Turn off drop sense indicators (DP1, DP2). Check status flag. If high go to Drip Rate Mode else go to Mode Check. Fig.3. Algorithmic description of the main program Display Subroutine: Check mode control pin P1.2. If low, go to Flagre. If high, clear the status flag and check overflow flag. If overflow flag = 0, convert contents of Stop watch display buffer to BCD form and send it to port P1. If overflow flag =1, display OL. Flagre: Set status flag. Check the contents of rate display buffer (3dh). If value is greater than 100, display OL else convert the contents of rate display buffer (3ch) to BCD form and then send it to port P1. Fig.4. Algorithmic description of the display routine

Timer0 (T0) Service Routine (for display): Load timer T0 with 6 ms count for display. Call display subroutine. Output the anode pattern on port P3. Output transistor base enable pattern on port P1 Compare decimal point indicator register CH3. If CH3=01, set DP1 & and clear DP2. If CH3=02, clear DP1 & set DP2. If CH3=03, clear both DP1 & DP2. Check whether multiplexing cycle is over. If multiplexing cycle is over, go to Ahead else initialize the display to 00. Ahead: Start timer T0 again. Return from the interrupt. Fig.5. Algorithmic description of timer T0 routine Timer1 (T1) Service Routine (for measuring interval): Load timer T1 with 50 ms count for measuring time interval. Start timer T1. Check for mode control pin P1.2. If pin P1.2 is low, go to Rate. If pin P1.2 is high, update the stop watch display buffer. Check for overflow of stop watch display buffer. If overflow exists, increment decimal point indicator register (CH3). If CH3 = #04h, then set overflow flag else go to Carry. Rate: Increment LSB of rate display buffer (30h). If it overflows, increment MSB of rate display buffer (31h). Carry: Return from interrupt. Fig.6. Algorithmic description of timer T1 routine

III. INSTRUMENT DESIGN By using a microcontroller with appropriate number of I/O pins, internal program and data memory, and internal timer/counter, the operations of counting, drip accumulation or low pass filtering, drip rate calculation, and displaying can be handled by a single chip. Our instrument circuit has been designed using MCS-51 family [2] 20-pin microcontroller AT89C2051 [3]. In addition to meeting the requirements for digital I/O and processing, it has an internal analog comparator. The instrument circuit is shown in Fig.2. The sensor assembly uses an infrared LED photodiode pair to sense the passage of drops through the drip chamber. Use of infrared sensor reduces the effect of ambient light and also the effect of variation in transmittivity of different fluids. Normally the light from diode D1 after passing through the chamber is incident on the reverse biased photodiode D2 resulting in voltage V a. When a drop passes through the chamber, the passage of light is interrupted, resulting in a voltage drop. Voltage V b, obtained by low-pass filtering V a using R3-C3, serves as reference input to the microcontroller s internal analog comparator. Dipping of V a below V b results in a pulse at the comparator output. Sensing of the pulse, 2-period moving average filtering, drip rate calculation, and result display are handled in software by the program loaded in the flash programmable on-chip ROM of the microcontroller. The instrument has two 7-segment LEDs with two decimal points. The drip rate in drops/min is shown as 2-digit integer. Sensing of each drop is indicated by glowing of the two decimal points. The displays are driven in scanned mode using microcontroller port pins [1], doing away with latches, decoders, and drivers. An additional feature incorporated in the instrument is that it can also be used as a stopwatch with 0-399 s range and 1 s resolution, with a single push button providing start/stop input. Sensor assembly is connected to the electronic circuit via a 6-pin connector. As shown in Fig.2, two of the pins are shorted on the sensor side. These are used by micro- controller port pin P1.2 to detect the presence of sensor assembly and provide the mode input for setting the instrument in drip rate or stop watch mode. The microcontroller used can operate over 2.7-6 V supply. The circuit is powered without a regulator to save on the battery power. The instrument can be powered by 4 pencil cells, dry or rechargeable. As the battery voltage decreases with time, the display gets fainter. No separate low battery indication is required. An algorithmic description of the main program is given in Fig.3. The display is handled by a display routine, described in Fig. 4, that is periodically invoked at intervals of approximately 6 ms, by interrupts from timer T0. An algorithmic description of timer T0 is given in Fig 5.The program senses the mode input and branches to the stopwatch or the drip rate mode. Both the modes make use of timer T1 for measuring the interval and put the number to be displayed in the display buffer. An algorithmic description of timer T1 is given in Fig. 6 The display routine takes the value, decodes, and sets the display pins by scanning the two digits alternately. IV. CONCLUSION The instrument is designed using the technique of embedded system design for achieving reliable operation with minimal number of circuit components. A prototype has been assembled, as a handheld device (with the circuit and batteries inside it) with a photosensor assembly to be clipped around the drip chamber. The instrument works satisfactorily for sensing the drops in the drip chamber and measuring the drip rate. REFERENCES [1] J.W. Valvano, Embedded Microcomputer Systems: Real Time Interfacing. Pacific Grove, Cal.: Brooks/Cole, 2000. [2] K.J. Ayala, The 8051 Microcontroller Architecture, Programming and Applications. Mumbai: Penram, 1996. [3] AT89 Series Microcontroller Data Book, San Jose, Cal.: Atmel Corp., 1997.