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 progress6,140
The Smart Hospital Bed

Things used in this project

Hardware components

Raspberry Pi 2 Model B
Raspberry Pi 2 Model B
Samsung SmartThings Multipurpose Sensor
Samsung SmartThings Multipurpose Sensor

Software apps and online services

Microsoft Azure
Microsoft Azure
Windows 10 IoT Core
Microsoft Windows 10 IoT Core


Read more


circute discription

this describe the aide function


smart bed wifi cod

this for send value to the system

# 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

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

  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


Mazen Sheikh Bashraheel

Mazen Sheikh Bashraheel

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


Add projectSign up / Login