Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Team#7 #18

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
18 changes: 18 additions & 0 deletions team#7 {Healthcare and Biomedical devices}/response.c.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//reponse that company ask to the hospital for verifying whether hospital has got information or not
#include<stdio.h>
int main()
{
int respond;
do
{

printf("Have you recieved the location of the accident \n");
printf("Waiting For Respond from Hospital..Enter '1' for YES \n");
scanf("%d",&respond);

}

while(respond!=1);

}

26 changes: 26 additions & 0 deletions team#7 {Healthcare and Biomedical devices}/sensor.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Code for detecting accident using ultrasonic sensors on arduino and will send information to sim service centers
long duration=0;
const int trigpin=5;
const int echopin=6;
void setup() {
Serial.begin(9600);
pinMode(5,OUTPUT);
pinMode(6,INPUT);
pinMode(trigpin, OUTPUT);
pinMode(echopin,INPUT);
}

void loop() {
digitalWrite(trigpin,HIGH);
delayMicroseconds(10);
digitalWrite(trigpin,LOW);

duration=pulseIn(echopin,HIGH);
int distance=(duration*(0.034))/2;
// Serial.print("Distance is");
Serial.println(distance);
Serial.println(" ");

delay(0);

}
43 changes: 43 additions & 0 deletions team#7 {Healthcare and Biomedical devices}/userinput.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<html>
<head>
<title>DOM manipulations</title>
<h><font color = "red">Do you require medical help?</font></h>

<br>
<h>If not able to choose option in case of difficulty just click on click button</h>
<br>
<script type="text/javascript">
function time1()
{
alert("You requires a medical help");
}



function fun()
{

var r1 = document.getElementById("r1");
var r2 = document.getElementById("r2");
if(r1.checked==true)
alert("You want a medical help ");
else if(r2.checked== true)
alert("You do not want medical help ");
else
setTimeout(time1,1000);
}





</script>
</head>
<body>

<input id="r1" name = "grr1" type = "radio" value "YES">YES</input><br>
<input id="r2" name = "grr1" type = "radio" value "NO">NO</input>
<br>
<button onclick= "fun()" id = "btn1">Click here</button>
</body>
</html>