diff --git a/team#7 {Healthcare and Biomedical devices}/response.c.c b/team#7 {Healthcare and Biomedical devices}/response.c.c new file mode 100644 index 00000000..adc60684 --- /dev/null +++ b/team#7 {Healthcare and Biomedical devices}/response.c.c @@ -0,0 +1,18 @@ +//reponse that company ask to the hospital for verifying whether hospital has got information or not +#include +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); + +} + diff --git a/team#7 {Healthcare and Biomedical devices}/sensor.ino b/team#7 {Healthcare and Biomedical devices}/sensor.ino new file mode 100644 index 00000000..568dfcb3 --- /dev/null +++ b/team#7 {Healthcare and Biomedical devices}/sensor.ino @@ -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); + +} \ No newline at end of file diff --git a/team#7 {Healthcare and Biomedical devices}/userinput.html b/team#7 {Healthcare and Biomedical devices}/userinput.html new file mode 100644 index 00000000..5bcb4a6c --- /dev/null +++ b/team#7 {Healthcare and Biomedical devices}/userinput.html @@ -0,0 +1,43 @@ + + + DOM manipulations + Do you require medical help? + +
+ If not able to choose option in case of difficulty just click on click button +
+ + + + + YES
+ NO +
+ + +