diff --git a/Patient monitoring - IoT/Data sheets/AD8232.pdf b/Patient monitoring - IoT/Data sheets/AD8232.pdf new file mode 100644 index 0000000..b6fec57 Binary files /dev/null and b/Patient monitoring - IoT/Data sheets/AD8232.pdf differ diff --git a/Patient monitoring - IoT/Data sheets/lm35.pdf b/Patient monitoring - IoT/Data sheets/lm35.pdf new file mode 100644 index 0000000..120c68d Binary files /dev/null and b/Patient monitoring - IoT/Data sheets/lm35.pdf differ diff --git a/Patient monitoring - IoT/Data sheets/tcrt1000.pdf b/Patient monitoring - IoT/Data sheets/tcrt1000.pdf new file mode 100644 index 0000000..ddd9c4f Binary files /dev/null and b/Patient monitoring - IoT/Data sheets/tcrt1000.pdf differ diff --git a/Patient monitoring - IoT/Data sheets/tm4c1294ncpdt.pdf b/Patient monitoring - IoT/Data sheets/tm4c1294ncpdt.pdf new file mode 100644 index 0000000..ca6d01a Binary files /dev/null and b/Patient monitoring - IoT/Data sheets/tm4c1294ncpdt.pdf differ diff --git a/Patient monitoring - IoT/Journal Publication/ICETSE 2017.pdf b/Patient monitoring - IoT/Journal Publication/ICETSE 2017.pdf new file mode 100644 index 0000000..cb61cb3 Binary files /dev/null and b/Patient monitoring - IoT/Journal Publication/ICETSE 2017.pdf differ diff --git a/Patient monitoring - IoT/Literature survey Papers/1.pdf b/Patient monitoring - IoT/Literature survey Papers/1.pdf new file mode 100644 index 0000000..727ff61 Binary files /dev/null and b/Patient monitoring - IoT/Literature survey Papers/1.pdf differ diff --git a/Patient monitoring - IoT/Literature survey Papers/2.pdf b/Patient monitoring - IoT/Literature survey Papers/2.pdf new file mode 100644 index 0000000..f30e6e3 Binary files /dev/null and b/Patient monitoring - IoT/Literature survey Papers/2.pdf differ diff --git a/Patient monitoring - IoT/Literature survey Papers/3.pdf b/Patient monitoring - IoT/Literature survey Papers/3.pdf new file mode 100644 index 0000000..acbe178 Binary files /dev/null and b/Patient monitoring - IoT/Literature survey Papers/3.pdf differ diff --git a/Patient monitoring - IoT/Literature survey Papers/4.pdf b/Patient monitoring - IoT/Literature survey Papers/4.pdf new file mode 100644 index 0000000..4a3d9a9 Binary files /dev/null and b/Patient monitoring - IoT/Literature survey Papers/4.pdf differ diff --git a/Patient monitoring - IoT/Literature survey Papers/5.pdf b/Patient monitoring - IoT/Literature survey Papers/5.pdf new file mode 100644 index 0000000..e9b97b8 Binary files /dev/null and b/Patient monitoring - IoT/Literature survey Papers/5.pdf differ diff --git a/Patient monitoring - IoT/Literature survey Papers/6.pdf b/Patient monitoring - IoT/Literature survey Papers/6.pdf new file mode 100644 index 0000000..c201a78 Binary files /dev/null and b/Patient monitoring - IoT/Literature survey Papers/6.pdf differ diff --git a/Patient monitoring - IoT/Literature survey Papers/7.pdf b/Patient monitoring - IoT/Literature survey Papers/7.pdf new file mode 100644 index 0000000..7f2b809 Binary files /dev/null and b/Patient monitoring - IoT/Literature survey Papers/7.pdf differ diff --git a/Patient monitoring - IoT/PPT Presentations/Conference PPT.pptx b/Patient monitoring - IoT/PPT Presentations/Conference PPT.pptx new file mode 100644 index 0000000..609b909 Binary files /dev/null and b/Patient monitoring - IoT/PPT Presentations/Conference PPT.pptx differ diff --git a/Patient monitoring - IoT/PPT Presentations/Patient Monitoring System.pptx b/Patient monitoring - IoT/PPT Presentations/Patient Monitoring System.pptx new file mode 100644 index 0000000..c1dff72 Binary files /dev/null and b/Patient monitoring - IoT/PPT Presentations/Patient Monitoring System.pptx differ diff --git a/Patient monitoring - IoT/Report/Report of Batch 25.pdf b/Patient monitoring - IoT/Report/Report of Batch 25.pdf new file mode 100644 index 0000000..db273c1 Binary files /dev/null and b/Patient monitoring - IoT/Report/Report of Batch 25.pdf differ diff --git a/Patient monitoring - IoT/Source Code/main/main.ino b/Patient monitoring - IoT/Source Code/main/main.ino new file mode 100644 index 0000000..2ad3bd3 --- /dev/null +++ b/Patient monitoring - IoT/Source Code/main/main.ino @@ -0,0 +1,211 @@ + +#include +#include +#include + +byte mac[] = { 0x00, 0x1A, 0xB6, 0x03, 0x14, 0xED }; +char server[] = "shrikant.16mb.com"; + +EthernetClient client; +LiquidCrystal lcd(12, 11, 5, 4, 3, 2); + // "{\"P\":1,\"H\":120,\"T\":32,\"ECG\":[567,678,678]}"; +String data="{\"P\":"; +boolean newline=false, response=false; +String ACK; +int HR,patientID; + +const unsigned long durationHR=5000; +const int SW1=8; // Patient 1 +const int SW2=9; // Patient 2 +const int SW3=10; // Patient 3 +const int SW4=30; // OK +const int pinHR=40; // Interrupt Pin for HR + +void setup() { + delay(1000); + Serial.begin(9600); + lcd.begin(16, 2); + lcd.print("IoT HealthCare"); + delay(2000); + initIoT(); + lcd.clear(); + lcd.setCursor(0,0); + lcd.print("Select PatientID"); +} + +void loop() { + boolean P1,P2,P3; + + P1=digitalRead(SW1); + P2=digitalRead(SW2); + P3=digitalRead(SW3); + if(P1||P2||P3){ + if(P1) patientID=1; + if(P2) patientID=2; + if(P3) patientID=3; + lcd.clear(); + lcd.setCursor(0,0); + lcd.print("PatientID"); + lcd.setCursor(0,1); + lcd.print(patientID); + delay(1000); // Delete + process(); + } +} + +void initIoT(){ + pinMode(SW1,INPUT); + pinMode(SW2,INPUT); + pinMode(SW3,INPUT); + pinMode(SW4,INPUT); + pinMode(pinHR,INPUT_PULLDOWN); + initializeEthernet(); +} + +void process(){ + data+=String(patientID)+",\"T\":"; + lcd.clear(); + lcd.setCursor(0,0); + lcd.print("Take Temperature.?"); + while(!(digitalRead(SW4))); + lcd.setCursor(0,1); + lcd.print("Wait..."); + delay(1000); + takeTemperature(); + lcd.clear(); + lcd.setCursor(0,0); + lcd.print("Take Heart Rate.?"); + while(!(digitalRead(SW4))); + lcd.setCursor(0,1); + lcd.print("Wait..."); + delay(1000); + takeHR(); + lcd.clear(); + lcd.setCursor(0,0); + lcd.print("Take ECG.?"); + while(!(digitalRead(SW4))); + lcd.setCursor(0,1); + lcd.print("Wait..."); + delay(1000); + takeECG(); + lcd.clear(); + lcd.setCursor(0,0); + lcd.print("Send to Server.?"); + while(!(digitalRead(SW4))); + lcd.setCursor(0,1); + lcd.print("Wait..."); + delay(1000); + connectServer(); + ackServer(); +} + +void takeTemperature(){ + int tempC; + tempC=analogRead(A3); + tempC/=12.41; + data+=String(tempC)+",\"H\":"; + lcd.print(tempC); + delay(2000); +} + +void takeHR(){ + unsigned long startTime; + HR=0; + startTime=millis(); + attachInterrupt(pinHR,readHR,RISING); + while((millis()-startTime)