Ultrasonic motion sensor for comatose patients

Ultrasonic motion sensor for comatose patients © GPL3+

This project is used to detect the motion of a comatose patient during his treatment. this will be a 24 hours monitoring system.

  • 635 views
  • 0 comments
  • 0 respects

Components and supplies

Necessary tools and machines

About this project

rasoni

Code

Ultrasonic motion sensor for comatose patientsJavaScript
It is used by which when the patient moves the sensor detects and the buzzer will be beeping showing the motion of the patient.
#include <Ultrasonic.h>

/*
 * Pass as a parameter the trigger and echo pin, respectively,
 * or only the signal pin (for sensors 3 pins), like:
 * Ultrasonic ultrasonic(13);
 */
Ultrasonic ultrasonic(12, 13);
int current=357; 
 int i=0;
void setup() {
  Serial.begin(9600);
  pinMode(2, OUTPUT);
 
  }

void loop() {

  //Serial.println(ultrasonic.distanceRead());
  int des=ultrasonic.distanceRead();

  Serial.println(des);
  i= des-current;
  if(i>10 || i<-10){
  digitalWrite(2,HIGH);

  //delay(3000);
  }
  else
  {
    digitalWrite(2,LOW);
    }
  current=des;
  //float y=x/350;

  delay(10000);
}

Custom parts and enclosures

Ultrasonic motion sensor for comatose patients
It is used to sense the motion of a comatose patient who is undergoing treatment.when the patient moves the ultrasonic motion sensor will detect showng the progress of the patient in the treatment.
This will be a 24 hour monitoring system. so that we need not have to stand still or to wait for the patient,to see if there is any movement done by the patient.
Img 20190228 155051 yi7ahocfgd
img_20190228_155059_3wKALQuAa6.jpg
Img 20190228 155059 3wkalquaa6

Schematics

Ultrasonic motion sensor for comatose patients
Ultrasonic motion sensor will detect the motion of the patient.
Img 20190228 155051 jebltpwmck

Comments

Similar projects you might like

Touchless Automatic Motion Sensor Trash Can

Project showcase by Will Su

  • 24,089 views
  • 20 comments
  • 40 respects

Door Alarm With Ultrasonic Sensor

Project showcase by MattG

  • 7,116 views
  • 3 comments
  • 10 respects

Ultrasonic Sensor with LCD Display Using 433MHz

Project tutorial by mcharrison500

  • 4,378 views
  • 0 comments
  • 21 respects

Touch Sensor and Sound Sensor Controlling AC/DC Lights

Project showcase by

  • 2,207 views
  • 2 comments
  • 7 respects
Add projectSign up / Login