Blood Infusion Warmer using Arduino

arduino based blood infusion warmer

Required Parts:
Software:
1.Arduino IDE

Hardware:
1. Arduino Uno
2. 16x2 LCD display
3. 5V Buzzer
4. 10k POT
5. LM35 temperature sensor
6. 12v DC Heating element
7. BC547
8. 10k resistor
9. IR Pair
10. 100k POT
11. LM358
12. 330 ohm,2.7k, 1k resistor
13. 100pf capacitor

Blood Infusion Warmer using Arduino


Arduino Code:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
int inPin = 5;
int val = 0; 
int Buzzer = 13;
byte degree[8] = 
{
  0b00110,
  0b01001,
  0b01001,
  0b00110,
  0b00000,
  0b00000,
  0b00000,
  0b00000
};
void setup() {
  
 pinMode(6, OUTPUT); 
 pinMode(Buzzer, OUTPUT);     
 pinMode(inPin, INPUT);
lcd.begin(16, 2);
lcd.setCursor(3, 0);
lcd.print("NEMP Group");
delay(5000);
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("T1:");
lcd.createChar(1, degree);
lcd.setCursor(5, 0);
lcd.write(1);
lcd.setCursor(6, 0);
lcd.print("C");
lcd.setCursor(0, 1);
lcd.print("T2:");
lcd.createChar(1, degree);
lcd.setCursor(5, 1);
lcd.write(1);
lcd.setCursor(6, 1);
lcd.print("C");
lcd.setCursor(9, 0);
lcd.print("Warmer");

}

void loop() {
  
int temp1=analogRead(A0);
temp1=((4.9*temp1)*100)/1023;
lcd.setCursor(3, 0);
lcd.print(temp1);
delay(200);

int temp2=analogRead(A1);
temp2=((4.9*temp2)*100)/1023;
lcd.setCursor(3, 1);
lcd.print(temp2);
delay(200);

val = digitalRead(inPin);   
digitalWrite(Buzzer, val);

if(temp1<42)
{
  digitalWrite(6, HIGH);
  lcd.setCursor(10, 1);
lcd.print(" ON ");
  }
else if(temp1>42)
{
digitalWrite(6, LOW);
lcd.setCursor(10, 1);
lcd.print("OFF");
  }
}

2 comments: