Skip to content

Medical-Instrumentation-Fall-2023/Hemodialysis-Machine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hemodialysis Machine Project

Hemodialysis Machine

Overview

This project involves the development of a hemodialysis machine using Arduino microcontroller. The machine consists of two main circuits: the dialysate circuit and the blood circuit. Each circuit is designed to monitor and control specific aspects of the dialysis process to ensure patient safety and treatment efficacy.

Features

  • Dialysate Circuit:

    • Temperature Control: DS18B20 Waterproof Temperature Sensor monitors dialysate temperature. Heating pad activates via relay if temperature falls below a set threshold.
    • Leak Detection: Laser and LDR sensor detect blood leakage; activates alarm and stops pump upon detection.
  • Blood Circuit:

    • Flow Monitoring: YFS401 Water Flow Sensor continuously monitors blood flow rate.
    • Air Bubble Detection: Laser and LDR sensor detect air bubbles in the blood line; servo-controlled clamp closes upon detection.
  • Safety Features:

    • Alarm System: Buzzer and LED indicators for temperature alarms and circuit anomalies.

Components

  1. DS18B20 Waterproof Temperature Sensor
  2. Laser Modules
  3. LDR Sensors
  4. DC Pumps
  5. 5V Relays
  6. Servo Motors
  7. Water Flow Rate Sensor YFS401
  8. Arduino Uno 2 units
  9. Breadboard
  10. Jumper Wires
  11. 5V Buzzers
  12. Red and Yellow LEDs
  13. 5V, 5W Heating Pad
  14. 220 and 10k ohm Resistors
  15. Tubes
  16. Containers/Bottles Note: In a real-world application, the bottle used in this prototype should be replaced with a proper medical-grade dialyzer to ensure optimal performance and safety, but due to budget constraints we couldn't afford buying one.

Wiring Diagram

Dialysate Circuit

  • Temperature Sensor (DS18B20):

    • VCC to 5V
    • GND to GND
    • DATA to Digital Pin 2
  • Heating Pad (5V, 5W):

    • Connected via relay controlled by Digital Pin 8
  • LDR Sensor for Blood Leakage:

    • Anode to 5V
    • Cathode to Analog Pin A0
    • Cathode also connected to one end of a 10k ohm resistor
    • Other end of the 10k ohm resistor to GND
  • Relays:

    • Relay 1 (Dialysate Pump):

      • IN to Digital Pin 9
      • VCC to 5V
      • GND to GND
    • Relay 2 (Heating Pad):

      • IN to Digital Pin 8
      • VCC to 5V
      • GND to GND
  • LED indicators:

    • Red LED (for Blood Leakage):
      • Anode to Digital Pin 4 through a 220 ohm resistor
      • Cathode to GND
    • Yellow LED (for Temperature Below Limit):
      • Anode to Digital Pin 5 through a 220 ohm resistor
      • Cathode to GND

Blood Circuit

  • Flow Rate Sensor (YFS401):

    • VCC to 5V
    • GND to GND
    • Signal to Digital Pin 2
  • Air Bubble Detection (Laser and LDR):

    • Laser module:
      • VCC to 5V
      • GND to GND
      • Signal to Digital Pin 4
    • LDR:
      • Anode to 5V
      • Cathode to Analog Pin A0
      • Cathode also connected to one end of a 10k ohm resistor
      • Other end of the 10k ohm resistor to GND
  • Servo Motor (for Clamp):

    • Signal to Digital Pin 9
  • Buzzer:

    • VCC to Digital Pin 4
    • GND to GND
  • Relay(Blood Pump):

    • IN to Digital Pin 3
    • VCC to 5V
    • GND to GND

Power and Control

  • Arduino Power:

    • Arduino Uno powered via USB or external 5V power supply.
  • Breadboard and Jumper Wires:

    • Use for making connections between components and Arduino boards.

Installation

  1. Connect all components as per the wiring diagram provided.
  2. Upload the respective Arduino code (dialysate_circuit.ino and blood_circuit.ino) to their respective Arduino boards using the Arduino IDE.
  3. Power on the Hemodialysis Machine and monitor the system for proper operation.

Troubleshooting

  • Issue: Air bubbles detected in the blood circuit or blood detected in the dialysate circuit.
    • Solution: Adjust the LDR threshold value according to your operating environment by observing the normal LDR readings with no air bubbles and in the presence of an air bubble, as the reading is affected by background lighting. Ensure proper alignment of the air bubble detection system (Laser and LDR) , and do the same for the dialysate circuit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages