Mazen Sheikh Bashraheel
Published © MIT

The Smart Hospital Bed

Raspberry pi and Windows 10 powered device that transmits patient data to caregivers wherever they are, instantaneously.

IntermediateWork in progress8,014
The Smart Hospital Bed

Things used in this project

Story

Read more

Schematics

circute discription

this describe the aide function

Code

smart bed wifi cod

Python
this for send value to the system
#!/usr/local/bin/python

# Reading an analogue sensor with
# a single GPIO pin

# Author : Matt Hawkins
# Distribution : Raspbian
# Python : 2.7
# GPIO   : RPi.GPIO v3.1.0a

import RPi.GPIO as GPIO, time

# Tell the GPIO library to use
# Broadcom GPIO references
GPIO.setmode(GPIO.BCM)

# Define function to measure charge time
def RCtime (PiPin):
  measurement = 0
  # Discharge capacitor
  GPIO.setup(PiPin, GPIO.OUT)
  GPIO.output(PiPin, GPIO.LOW)
  time.sleep(0.1)

  GPIO.setup(PiPin, GPIO.IN)
  # Count loops until voltage across
  # capacitor reads high on GPIO
  while (GPIO.input(PiPin) == GPIO.LOW):
    measurement += 1

  return measurement

# Main program loop
while True:
  print RCtime(4) # Measure timing using GPIO4

Credits

Mazen Sheikh Bashraheel

Mazen Sheikh Bashraheel

2 projects • 24 followers
I Bachelor Computer En Make a researcher at the University of Science and Technology in the Enterprise Development Center Creative

Comments